Robot Moving by Button Control

Robot Moving by Button Control
Loading the math board and drawing, please wait…
2015-04-27 05:54
In collections LEGO MINDSTORMS robotics
① This example demonstrates a robot graphic moving in a plane through interactive control by five buttons (forward, backward, pivot left, pivot right, and a central button), showing combined translation and rotation. ② Core math concepts include planar coordinates, position and orientation, vectors (unit orthogonal vectors), angle rotation, and kinematics controlled by speed and time. ③ Construction highlights: uses the GeoGebra command UnitOrthogonalVector to create unit normal vectors, defines points P, vector v, angle α, and uses buttons (button1 to button6) to trigger scripts that modify speed and time, with image pic1 as the robot sprite and sliders for continuous animation. ④ Suitable for middle/high school mathematics or computer science classes to learn vectors, coordinate transformations, and interactive geometric construction, as well as event-driven programming basics.

GeoGebra Commands & Parameters

  1. UnitOrthogonalVector(v) → u