maliput_multilane
|
A simple api::RoadGeometry implementation that only supports a single lane per segment.
Use the Builder interface to actually assemble a sensible road network.
#include <src/maliput_multilane/road_geometry.h>
Public Member Functions | |
RoadGeometry (const api::RoadGeometryId &id, double linear_tolerance, double angular_tolerance, double scale_length) | |
Constructs an empty RoadGeometry with the specified tolerances and scale-length. More... | |
Junction * | NewJunction (api::JunctionId id) |
Creates and adds a new Junction with the specified id . More... | |
BranchPoint * | NewBranchPoint (api::BranchPointId id) |
Creates and adds a new BranchPoint with the specified id . More... | |
~RoadGeometry () override=default | |
Public Member Functions inherited from RoadGeometry | |
RoadGeometryId | id () const |
int | num_junctions () const |
const Junction * | junction (int index) const |
int | num_branch_points () const |
const BranchPoint * | branch_point (int index) const |
const IdIndex & | ById () const |
RoadPositionResult | ToRoadPosition (const InertialPosition &inertial_position, const std::optional< RoadPosition > &hint=std::nullopt) const |
std::vector< RoadPositionResult > | FindRoadPositions (const InertialPosition &inertial_position, double radius) const |
double | linear_tolerance () const |
double | angular_tolerance () const |
double | scale_length () const |
std::vector< std::string > | CheckInvariants () const |
std::vector< InertialPosition > | SampleAheadWaypoints (const LaneSRoute &lane_s_route, double path_length_sampling_rate) const |
math::Vector3 | inertial_to_backend_frame_translation () const |
Additional Inherited Members | |
Protected Member Functions inherited from RoadGeometry | |
RoadGeometry ()=default | |
RoadGeometry | ( | const api::RoadGeometryId & | id, |
double | linear_tolerance, | ||
double | angular_tolerance, | ||
double | scale_length | ||
) |
Constructs an empty RoadGeometry with the specified tolerances and scale-length.
|
overridevirtualdefault |
Reimplemented from RoadGeometry.
BranchPoint * NewBranchPoint | ( | api::BranchPointId | id | ) |
Creates and adds a new BranchPoint with the specified id
.
Junction * NewJunction | ( | api::JunctionId | id | ) |
Creates and adds a new Junction with the specified id
.