maliput
|
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 InertialPosition.
The Segments need not be directly connected to one another in the network topology.
Junctions are grouped by RoadGeometry.
#include <include/maliput/api/junction.h>
Public Member Functions | |
virtual | ~Junction ()=default |
JunctionId | id () const |
Returns the persistent identifier. More... | |
const RoadGeometry * | road_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 Segment * | segment (int index) const |
Returns the Segment indexed by index . More... | |
Protected Member Functions | |
Junction ()=default | |
|
protecteddefault |
JunctionId id | ( | ) | const |
Returns the persistent identifier.
int num_segments | ( | ) | const |
Returns the number of Segments in the Junction.
Return value is non-negative.
const RoadGeometry* road_geometry | ( | ) | const |
Returns the RoadGeometry to which this Junction belongs.
const Segment* segment | ( | int | index | ) | const |
Returns the Segment indexed by index
.
index
must be >= 0 and < num_segments().