delphyne
RailCar Class Reference

Detailed Description

Introduce a rail car in the road.
Inheritance diagram for RailCar:
[legend]

Public Member Functions

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)
 
def setup (self, *builder)
 

Public Attributes

 lane_id
 
 direction_of_travel
 
 longitudinal_position
 
 lateral_offset
 
 speed
 
 nominal_speed
 

Constructor & Destructor Documentation

◆ __init__()

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.

Member Function Documentation

◆ setup()

def setup (   self,
builder 
)

Member Data Documentation

◆ direction_of_travel

direction_of_travel

◆ lane_id

lane_id

◆ lateral_offset

lateral_offset

◆ longitudinal_position

longitudinal_position

◆ nominal_speed

nominal_speed

◆ speed

speed

The documentation for this class was generated from the following file: