Ejemplo n.º 1
0
# Variables (see Documentation for description)
view = True
# To turn on/off the use of SAP, go to Helpers/helpers.py and change the
# global variable "SAP_PHYSICS" (defined after the import statements) to True/False.
seed = "r@nd0M2"
robot_number = 1
maxsteps = 10000
debug = 0 # begin debugging AFTER this timestep. 0 turns off debugging, change to 1 to debug w/ PDB
comment = seed

# seeding the simulation: turn this on to remove randomness in brain (for debugging)
# behavior between runs will be identical.
random.seed(seed)

# Run the Simulation, input is the random seed
Sim = Simulation()
Sim.start(view, robot_number)

# wrapped in a try/except block to catch errors and immediately begin
# pdb at exception's location
try:
  Sim.run_simulation(view,maxsteps,debug,comment)
except:
  _, _, tb = sys.exc_info()
  traceback.print_exc()
  pdb.post_mortem(tb)

# Display the simulation
Sim.run_visualization()
#SAP 2000 templates.sdb
Ejemplo n.º 2
0
# Variables (see Documentation for description)
view = True
# To turn on/off the use of SAP, go to Helpers/helpers.py and change the
# global variable "SAP_PHYSICS" (defined after the import statements) to True/False.
seed = "r@nd0M2"
robot_number = 1
maxsteps = 10000
debug = 0  # begin debugging AFTER this timestep. 0 turns off debugging, change to 1 to debug w/ PDB
comment = seed

# seeding the simulation: turn this on to remove randomness in brain (for debugging)
# behavior between runs will be identical.
random.seed(seed)

# Run the Simulation, input is the random seed
Sim = Simulation()
Sim.start(view, robot_number)

# wrapped in a try/except block to catch errors and immediately begin
# pdb at exception's location
try:
    Sim.run_simulation(view, maxsteps, debug, comment)
except:
    _, _, tb = sys.exc_info()
    traceback.print_exc()
    pdb.post_mortem(tb)

# Display the simulation
Sim.run_visualization()
#SAP 2000 templates.sdb
Ejemplo n.º 3
0
# TEMP FILE - NOT USED
from main import Simulation
from visualization import Visualization

# Variables (see Documentation for description)
view = True
seed = "F@st1#lAn3-test"
robot_number = 1
maxsteps = 10000

# Run the Simulation, input is the random seed
sim = Simulation()
sim.start(view, robot_number)
sim.run_simulation(view, maxsteps)

# Display the simulation
sim.run_visualization()
Ejemplo n.º 4
0
from main import Simulation
from visualization import Visualization

# Variables
view = True

# Run the Simulation
sim = Simulation("Papyrus")
sim.start(view,1)
sim.run_simulation(view,10000)

# Display the simulation
sim.run_visualization()
Ejemplo n.º 5
0
# TEMP FILE - NOT USED
from main import Simulation
from visualization import Visualization

# Variables (see Documentation for description)
view = True
seed = "F@st1#lAn3-test"
robot_number = 1
maxsteps = 10000

# Run the Simulation, input is the random seed
sim = Simulation()
sim.start(view,robot_number)
sim.run_simulation(view,maxsteps)

# Display the simulation
sim.run_visualization()