Drake
Segment Class Reference

An api::Segment implementation. More...

#include <drake/automotive/maliput/multilane/segment.h>

Inheritance diagram for Segment:
[legend]
Collaboration diagram for Segment:
[legend]

Public Member Functions

 Segment (const api::SegmentId &id, api::Junction *junction, std::unique_ptr< RoadCurve > road_curve)
 Constructs a new Segment. More...
 
LaneNewLane (api::LaneId id, const api::RBounds &lane_bounds, const api::RBounds &driveable_bounds, const api::HBounds &elevation_bounds)
 Creates a new Lane object. More...
 
 ~Segment () override=default
 
Does not allow copy, move, or assignment
 Segment (const Segment &)=delete
 
Segmentoperator= (const Segment &)=delete
 
 Segment (Segment &&)=delete
 
Segmentoperator= (Segment &&)=delete
 
- Public Member Functions inherited from Segment
const SegmentId id () const
 Returns the persistent identifier. More...
 
const Junctionjunction () const
 Returns the Junction to which this Segment belongs. More...
 
int num_lanes () const
 Returns the number of Lanes contained in this Segment. More...
 
const Lanelane (int index) const
 Returns the Lane indexed by index. More...
 
 Segment (const Segment &)=delete
 
Segmentoperator= (const Segment &)=delete
 
 Segment (Segment &&)=delete
 
Segmentoperator= (Segment &&)=delete
 

Additional Inherited Members

- Protected Member Functions inherited from Segment
 Segment ()=default
 

Detailed Description

An api::Segment implementation.

Constructor & Destructor Documentation

Segment ( const Segment )
delete
Segment ( Segment &&  )
delete
Segment ( const api::SegmentId id,
api::Junction junction,
std::unique_ptr< RoadCurve road_curve 
)
inline

Constructs a new Segment.

The Segment is not fully initialized until NewLane() is called exactly once. junction must remain valid for the lifetime of this class.

Parameters
idID of the segment.
junctionParent junction.
road_curveA curve that defines the reference trajectory over the segment. A child Lane object will be constructed from an offset of the road_curve. Offset distance is set to zero as the segment is able to create only one Lane.
~Segment ( )
overridevirtualdefault

Reimplemented from Segment.

Member Function Documentation

Lane * NewLane ( api::LaneId  id,
const api::RBounds lane_bounds,
const api::RBounds driveable_bounds,
const api::HBounds elevation_bounds 
)

Creates a new Lane object.

This method should be called only once in the lifespan of the object. The Segment class only supports one Lane.

Parameters
idLane's ID.
lane_boundsLateral extents of the Lane's frame in which the car is supposed to be inside the lane.
driveable_boundsLateral extents of the Lane's frame in which the car is supposed to be inside the segment.
elevation_boundsHeight extents of the Lane's frame.

Here is the call graph for this function:

Here is the caller graph for this function:

Segment& operator= ( const Segment )
delete
Segment& operator= ( Segment &&  )
delete

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