Google Classroom
GeoGebraGeoGebra Classroom

Moving the robot

Author:
Raphael
Topic:
Geometry
In the previous exercice we were drawing the outline of the robot based on the pair . Now we are going to build a a simple script to animate the robot. The robot uses differential steering, which means the left motor runs at speed and the right motor at speed . From this we can calculate the forward speed and also the differential speed In order to animate the robot we add 3 buttons: - Reset, which sets and - Start, which starts the animation (StartAnimation[true]) - Stop, which stops the animation (StartAnimation[false]) We also add an animation script to the (invisible) time slider: A=A+v*v_f*dt θ=θ+ω dt Set two motor speeds and press the Start button. Observe the trajectory of the two wheels.