maliput
|
#include <include/maliput/test_utilities/mock.h>
Public Member Functions | |
MockRoadGeometry (const RoadGeometryId &id) | |
MockRoadGeometry (const RoadGeometryId &id, const double &linear_tolerance, const double &angular_tolerance, const math::Vector3 &inertial_to_backend_frame_translation) | |
void | add_junction (std::unique_ptr< MockJunction > junction) |
void | set_start_bp (std::unique_ptr< MockBranchPoint > start_bp) |
void | set_end_bp (std::unique_ptr< MockBranchPoint > end_bp) |
MockBranchPoint * | start_bp () |
MockBranchPoint * | end_bp () |
MockIdIndex * | GetIdIndex () |
![]() | |
virtual | ~RoadGeometry ()=default |
RoadGeometryId | id () const |
Returns the persistent identifier. More... | |
int | num_junctions () const |
Returns the number of Junctions in the RoadGeometry. More... | |
const Junction * | junction (int index) const |
Returns the Junction indexed by index . More... | |
int | num_branch_points () const |
Returns the number of BranchPoints in the RoadGeometry. More... | |
const BranchPoint * | branch_point (int index) const |
Returns the BranchPoint indexed by index . More... | |
const IdIndex & | ById () const |
Accesses the IdIndex interface, which allows getting elements of the RoadGeometry's object graph by their unique id's. More... | |
RoadPositionResult | ToRoadPosition (const InertialPosition &inertial_position, const std::optional< RoadPosition > &hint=std::nullopt) const |
Determines the RoadPosition corresponding to InertialPosition inertial_position . More... | |
std::vector< RoadPositionResult > | FindRoadPositions (const InertialPosition &inertial_position, double radius) const |
Obtains all RoadPositions within radius of inertial_position . More... | |
double | linear_tolerance () const |
Returns the tolerance guaranteed for linear measurements (positions). More... | |
double | angular_tolerance () const |
Returns the tolerance guaranteed for angular measurements (orientations). More... | |
double | scale_length () const |
Returns the characteristic scale length expressed by this RoadGeometry. More... | |
std::vector< std::string > | CheckInvariants () const |
Verifies certain invariants guaranteed by the API. More... | |
std::vector< InertialPosition > | SampleAheadWaypoints (const LaneSRoute &lane_s_route, double path_length_sampling_rate) const |
Samples lane_s_route at path_length_sampling_rate and converts those LanePositions into InertialPositions. More... | |
math::Vector3 | inertial_to_backend_frame_translation () const |
The Backend Frame is an inertial frame similar to the Inertial Frame that differ one from another by an isometric transformation. More... | |
Additional Inherited Members | |
![]() | |
RoadGeometry ()=default | |
MockRoadGeometry | ( | const RoadGeometryId & | id | ) |
MockRoadGeometry | ( | const RoadGeometryId & | id, |
const double & | linear_tolerance, | ||
const double & | angular_tolerance, | ||
const math::Vector3 & | inertial_to_backend_frame_translation | ||
) |
void add_junction | ( | std::unique_ptr< MockJunction > | junction | ) |
MockBranchPoint* end_bp | ( | ) |
MockIdIndex* GetIdIndex | ( | ) |
void set_end_bp | ( | std::unique_ptr< MockBranchPoint > | end_bp | ) |
void set_start_bp | ( | std::unique_ptr< MockBranchPoint > | start_bp | ) |
MockBranchPoint* start_bp | ( | ) |