smarts.core.waypoints module¶
-
class
smarts.core.waypoints.
LinkedWaypoint
(wp, is_shape_wp, nexts)[source]¶ -
property
is_shape_wp
¶ Alias for field number 1
-
property
nexts
¶ Alias for field number 2
-
property
wp
¶ Alias for field number 0
-
property
-
class
smarts.core.waypoints.
Waypoint
(pos: ‘np.ndarray’, heading: ‘Heading’, lane_width: ‘float’, speed_limit: ‘float’, lane_id: ‘str’, lane_index: ‘int’)[source]¶ -
-
heading
: smarts.core.coordinates.Heading¶
-
lane_id
: str¶
-
lane_index
: int¶
-
lane_width
: float¶
-
pos
: numpy.ndarray¶
-
property
pose
¶
-
relative_heading
(h: smarts.core.coordinates.Heading)[source]¶ Computes relative heading between the given angle and the waypoint heading
- Returns
[-pi..pi]
- Return type
relative_heading
-
signed_lateral_error
(p)[source]¶ Returns the signed lateral distance from the given point to the line formed by the waypoint position and the waypoints heading.
Negative signals right of line and Positive left of line
-
speed_limit
: float¶
-