|
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... | |
| std::optional< bool > | is_intersection () const |
| Returns whether this junction is an intersection. More... | |
Protected Member Functions | |
| Junction ()=default | |
|
protecteddefault |
| JunctionId id | ( | ) | const |
Returns the persistent identifier.
| std::optional<bool> is_intersection | ( | ) | const |
Returns whether this junction is an intersection.
true when junction is an intersection. false when junction is not an intersection. std::nullopt when intersection information is unavailable. | 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().