|
bitsim
Model, simulate, estimate and control robots in C++
|
Functions | |
| draw (row, title) | |
| main () | |
Variables | |
| WIDTH | |
| HEIGHT | |
| float | SCALE = 100.0 |
| float | TRACK = 2.4 |
| float | POLE = 1.0 |
| int | GROUND = 210 |
| float | MAX_FORCE = 10.0 |
Make a GIF of a cart-pole episode that an example wrote. es_cart_pole_swing_up writes swing_up.csv, a row per step: t,x,theta,force, with theta the angle of the pole from upright [rad] and force the push on the cart [N]. The GIF shows the cart on its track, the pole, and the force as an arrow, in real time. Usage: python cart_pole_gif.py swing_up.csv --out swing_up.gif [--title "..."] [--every 2] Needs imageio and Pillow.
| cart_pole_gif.draw | ( | row, | |
| title ) |
| cart_pole_gif.main | ( | ) |
| int cart_pole_gif.GROUND = 210 |
| cart_pole_gif.HEIGHT |
| float cart_pole_gif.MAX_FORCE = 10.0 |
| float cart_pole_gif.POLE = 1.0 |
| float cart_pole_gif.SCALE = 100.0 |
| float cart_pole_gif.TRACK = 2.4 |
| cart_pole_gif.WIDTH |