Drake
Junction Class Referenceabstract

A Junction is a closed set of Segments which have physically coplanar road surfaces, in the sense that RoadPositions with the same h value (height above surface) in the domains of two Segments map to the same GeoPosition. More...

#include <drake/automotive/maliput/api/junction.h>

Public Member Functions

virtual ~Junction ()=default
 
const JunctionId id () const
 Returns the persistent identifier. More...
 
const RoadGeometryroad_geometry () const
 Returns the RoadGeometry to which this Junction belongs. More...
 
int num_segments () const
 Returns the number of Segments in the Junction. More...
 
const Segmentsegment (int index) const
 Returns the Segment indexed by index. More...
 
Does not allow copy, move, or assignment
 Junction (const Junction &)=delete
 
Junctionoperator= (const Junction &)=delete
 
 Junction (Junction &&)=delete
 
Junctionoperator= (Junction &&)=delete
 

Protected Member Functions

 Junction ()=default
 

Detailed Description

A Junction is a closed set of Segments which have physically coplanar road surfaces, in the sense that RoadPositions with the same h value (height above surface) in the domains of two Segments map to the same GeoPosition.

The Segments need not be directly connected to one another in the network topology.

Junctions are grouped by RoadGeometry.

Constructor & Destructor Documentation

◆ Junction() [1/3]

Junction ( const Junction )
delete

◆ Junction() [2/3]

Junction ( Junction &&  )
delete

◆ ~Junction()

virtual ~Junction ( )
virtualdefault

Reimplemented in Junction, Junction, Junction, and Junction.

◆ Junction() [3/3]

Junction ( )
protecteddefault

Member Function Documentation

◆ id()

const JunctionId id ( ) const
inline

Returns the persistent identifier.

◆ num_segments()

int num_segments ( ) const
inline

Returns the number of Segments in the Junction.

Return value is non-negative.

◆ operator=() [1/2]

Junction& operator= ( Junction &&  )
delete

◆ operator=() [2/2]

Junction& operator= ( const Junction )
delete

◆ road_geometry()

const RoadGeometry* road_geometry ( ) const
inline

Returns the RoadGeometry to which this Junction belongs.

◆ segment()

const Segment* segment ( int  index) const
inline

Returns the Segment indexed by index.

Precondition
index must be >= 0 and < num_segments().

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