Introduce a rail car in the road.
def __init__ |
( |
|
self, |
|
|
|
lane_id, |
|
|
|
direction_of_travel = True , |
|
|
|
longitudinal_position = 0. , |
|
|
|
lateral_offset = 0. , |
|
|
|
speed = 1. , |
|
|
|
nominal_speed = 20. , |
|
|
|
name = py_trees.common.Name.AUTO_GENERATED |
|
) |
| |
:param lane_id: ID of the lane to drive on, either as a string or
as a callable expression that takes a road geometry and returns
a string.
:param direction_of_travel: with or against the lane s-direction.
:param longitudinal_position: initial s-coordinate of the car in the
lane frame, either as a float or as a callable expression that
takes a road geometry and a lane and returns a float.
:param lateral_offset: initial r-coordinate in the lane frame.
:param speed: speed of the car as measured in the world frame, in m/s.
:param nominal_speed: nominal speed (as in, maximum most likely speed) of
the agent as measured in the world frame, in m/s.
:param name: a name for the car.