An api::Segment implementation.
#include <src/maliput_multilane/segment.h>
◆ Segment()
Constructs a new Segment.
The Segment is not fully initialized until NewLane() is called at least once. junction
must remain valid for the lifetime of this class.
- Parameters
-
id | Segment's ID. |
junction | Parent junction. |
register_lane | will be called on any new Lane instance created as a child of the Segment. |
road_curve | A curve that defines the reference trajectory over the segment. A child Lane object will be constructed from an offset of the road_curve's reference curve. |
r_min | Lateral distance to the minimum extent of road_curve's curve from where Segment's surface starts. It must be smaller or equal than r_max . |
r_max | Lateral distance to the maximum extent of road_curve's curve from where Segment's surface ends. It should be greater or equal than r_min . |
elevation_bounds | The height bounds over the segment' surface. |
◆ ~Segment()
◆ MALIPUT_NO_COPY_NO_MOVE_NO_ASSIGN()
MALIPUT_NO_COPY_NO_MOVE_NO_ASSIGN |
( |
Segment |
| ) |
|
◆ NewLane()
Creates a new Lane object.
Driveable bounds of the lane will be derived based on the lateral offset of it so as to reach r_min
and r_max
distances (see class constructor for more details).
- Parameters
-
id | Lane's ID. |
r0 | Lateral displacement of the Lane with respect to segment RoadCurve's reference curve. It must be greater than r_min and smaller than r_max , and be greater than the last lane's r0 displacement (if any). |
lane_bounds | Nominal bounds of the lane, uniform along the entire reference path. It must fit inside segments bounds when those are translated to r0 offset distance. |
- Returns
- A Lane object.
The documentation for this class was generated from the following files: