roboball2d.demos package¶
Submodules¶
roboball2d.demos.balls module¶
-
roboball2d.demos.balls.
run
(rendering=True)¶ Runs the balls demo, in which the robot moves according to random torques as 10 balls bounces around. You may run the executable roboball2d_balls_demo after install.
- rendering :
- renders the environment if True
roboball2d.demos.mirroring module¶
-
roboball2d.demos.mirroring.
run
(rendering=True)¶ Runs the mirroring demo, in which a robot moves according to random torques input, while the other robot, running in another process, mirrors it. You may run roboball2d_mirror_demo after install to see it in action.
- rendering :
- renders the environment if True
roboball2d.demos.rendering module¶
-
class
roboball2d.demos.rendering.
BouncePlaces
(ball_config, visual_height, color=[0, 1, 1])¶ Bases:
object
-
__init__
(ball_config, visual_height, color=[0, 1, 1])¶ Initialize self. See help(type(self)) for accurate signature.
-
reset
()¶
-
-
roboball2d.demos.rendering.
run
(rendering=True)¶
roboball2d.demos.rendering_callback module¶
-
roboball2d.demos.rendering_callback.
run
(rendering=True)¶ Runs the balls demo, in which the robot moves according to random torques as 1 ball bounce around. A rendering callback is used to display the position the ball touched the ground. You may run the executable roboball2d_rendering_demo after install to see it in action.
- rendering :
- renders the environment if True
roboball2d.demos.simple module¶
-
roboball2d.demos.simple.
run
(rendering=True)¶ Runs the balls demo, in which the robot moves using a PD controller as a ball bounces around. You may run the executable roboball2d_demo after install to see it in action.
- rendering :
- renders the environment if True