Graphics Reference
In-Depth Information
Activating the Path item should allow the user to define a new path in the xy-plane by select-
ing points that correspond to the vertices of a polygonal curve. After the new path has been
defined the robot should be placed at the beginning of the path looking in the direction defined
by the first edge.
Walking along paths entails some slight changes to the “Walk” and “Reset” operations.
Walk :
Now when the robot moves along points on its path it should always be looking in the
direction that is tangent to the curve. In those few instances where the robot lands on
a vertex, assume that the tangent at the vertex is the average of the tangent vectors for
the segments meeting in that vertex.
Reset :
If the robot has a path associated to it, place it at the beginning of the path looking
in the direction defined by the first edge. If there is no path, reset the robot to some
initial configuration as before.
Search WWH ::




Custom Search