delphyne
|
LaneDirection holds the lane that a MaliputRailcar is traversing and the direction in which it is moving.
A MaliputRailcar can either travel in the increasing-s
direction or in the decreasing-s
direction.
#include <src/systems/lane_direction.h>
Public Member Functions | |
LaneDirection () | |
Default constructor. More... | |
LaneDirection (const maliput::api::Lane *lane_input) | |
A constructor that sets with_s to be true . More... | |
LaneDirection (const maliput::api::Lane *lane_input, bool with_s_input) | |
Fully parameterized constructor. More... | |
Public Attributes | |
const maliput::api::Lane * | lane {nullptr} |
bool | with_s {true} |
True means that the MaliputRailcar's s coordinate increases when the vehicle has positive speed. More... | |
LaneDirection | ( | ) |
Default constructor.
|
explicit |
A constructor that sets with_s
to be true
.
LaneDirection | ( | const maliput::api::Lane * | lane_input, |
bool | with_s_input | ||
) |
Fully parameterized constructor.
const maliput::api::Lane* lane {nullptr} |
bool with_s {true} |
True means that the MaliputRailcar's s
coordinate increases when the vehicle has positive speed.
False means the opposite.