Path Control Competition
For this competition, each team must demonstrate their velocity controller's performance. The geometry of this path will be provided at the beginning of the competition and will consist of a number of straight line and constant curvature segments. The figure below demonstrates three such paths, (a)-(c), consisting of three segments each. Note: these are not necessarily the paths to be used in the competition.
At the beginning of the competition, two parameters, the longitudinal
distance (d) for a straight line segment, or the radius (R) and angle
of rotation (theta) for a curved segment will be provided (as seen in
the figure. the curve has theta=180 degrees). From this information,
the two velocity parameters (vlong,vtheta) can be computed. Your code
should be set up to handle the quick paramaterization of an
n-segment path (where n is no greater than 5).
At the beginning of the competition we will give you a path in a data structure of the form:
| segment | type | p1 | p2 |
|---|---|---|---|
| 1 | 0 | 10 | |
| 2 | 1 | 5 | -180 |
| 3 | 1 | 5 | 180 |
| segment | type | p1 | p2 |
|---|---|---|---|
| 1 | 0 | 10 | |
| 2 | 1 | 5 | -180 |
| 3 | 0 | 10 |
| segment | type | p1 | p2 |
|---|---|---|---|
| 1 | 1 | 5 | -180 |
| 2 | 0 | 10 | |
| 3 | 1 | 5 | 180 |