Changeset 1090
- Timestamp:
- 02/20/21 13:34:03 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
framspy/FramsticksLib.py
r1087 r1090 13 13 You can even design and use in evolution your own genetic representation implemented entirely in python, 14 14 or access and control the simulation and simulated creatures step by step. 15 16 Should you want to modify or extend this class, first see and test the examples in frams-test.py. 15 17 16 18 You need to provide one or two parameters when you run this class: the path to Framsticks where .dll/.so resides … … 69 71 frams.Simulator.init() 70 72 frams.Simulator.start() 71 step = frams.Simulator.step # cache reference to avoid repeated lookup in the loop 73 step = frams.Simulator.step # cache reference to avoid repeated lookup in the loop (just for performance) 72 74 while frams.Simulator.running._int(): # standard-eval.expdef sets running to 0 when the evaluation is complete 73 75 step()
Note: See TracChangeset
for help on using the changeset viewer.