-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
32 lines (24 loc) · 900 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# local packages
import util.os_calls as os_calls
from simulation import Simulation
from timeit import default_timer as timer
def main():
start = timer()
# clear the screen of the previous output
os_calls.clear_screen()
# create an instance of the simulation class
sim = Simulation(shouldSavePlots=True, basePlotDir='figures')
# simulation runner handles all class interfaces for each type of sim
# sim.run(simType='polygonalRobot')
# sim.run(simType='gradient')
# sim.run(simType='wavefront')
# sim.run(simType='manipulator')
# sim.run(simType='graphSearch')
sim.run(simType='prmPointRobot')
# sim.run(simType='prmPointRobotBenchmark')
finish = timer()
computationTime = finish - start
print('-------------------')
print('Took', computationTime, 'seconds to complete all simulations')
if __name__ == '__main__':
main()