Track#
- class Track#
Represents a track
- name#
An optional name for the tracl
- Type
Optional[str]
- description#
An optional description for the track
- Type
Optional[str]
- reset()#
Reset the track
- add_waypoint(waypoint)#
Add a waypoint to the end of the track
- Parameters
waypoint (Waypoint) – The waypoint to add
- remove_waypoint(waypoint)#
Remove a waypoint from the track and return it
- get_edges()#
Get the edges between each waypoint
- edge_distances_m()#
Get the distance between each point in a track
- Returns
A list of the distances between each waypoint in a track in metres
- Return type
List[float]
- track_distance_m()#
Get the distance of the track in metres
- Returns
The overall distance of the track in metres
- Return type
float