Skip to content

Running

Peter Corke edited this page Jul 6, 2020 · 9 revisions

Python code within your script

Standalone Python script

 .
 .
bd.run(10)
bd.done()

The first line runs the simulation for the specified amount of time. Graphics behaviour is controlled by command line switches:

Switch Behaviour
-g disable graphics, simulation runs quickly, returns numerical result only
-a enable animation, simulation runs more slowly

The second line blocks until either the figures are all closed, or a SIGINT is received. Without this the program "falls of the end" and the graphics are not seen.

Jupyter