maliput
MockRoadGeometry Class Reference

Detailed Description

Mock api::RoadGeometry implementation; see mock_geometry.h.

#include <include/maliput/test_utilities/mock_geometry.h>

Inheritance diagram for MockRoadGeometry:
[legend]

Public Member Functions

 MALIPUT_NO_COPY_NO_MOVE_NO_ASSIGN (MockRoadGeometry)
 
 MockRoadGeometry (const api::RoadGeometryId &id, double linear_tolerance, double angular_tolerance, double scale_length, const math::Vector3 &inertial_to_backend_frame_translation)
 Constructs an empty MockRoadGeometry with the specified tolerances. More...
 
- Public Member Functions inherited from RoadGeometry
 MALIPUT_NO_COPY_NO_MOVE_NO_ASSIGN (RoadGeometry)
 
 RoadGeometry (const api::RoadGeometryId &id, double linear_tolerance, double angular_tolerance, double scale_length, const math::Vector3 &inertial_to_backend_frame_translation)
 Constructs an empty RoadGeometry with the specified tolerances. More...
 
template<class T >
T * AddJunction (std::unique_ptr< T > junction)
 Adds junction to this RoadGeometry. More...
 
template<class T >
T * AddBranchPoint (std::unique_ptr< T > branch_point)
 Adds branch_point to this RoadGeometry. More...
 
template<class StrategyT = KDTreeStrategy, class... Args>
void InitializeStrategy (Args &&... args)
 
 ~RoadGeometry () override=default
 
- Public Member Functions inherited from RoadGeometry
RoadGeometryId id () const
 Returns the persistent identifier. More...
 
int num_junctions () const
 Returns the number of Junctions in the RoadGeometry. More...
 
const Junctionjunction (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 BranchPointbranch_point (int index) const
 Returns the BranchPoint indexed by index. More...
 
const IdIndexById () 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< RoadPositionResultFindRoadPositions (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< InertialPositionSampleAheadWaypoints (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

- Protected Member Functions inherited from RoadGeometry
 RoadGeometry ()=default
 

Constructor & Destructor Documentation

◆ MockRoadGeometry()

MockRoadGeometry ( const api::RoadGeometryId id,
double  linear_tolerance,
double  angular_tolerance,
double  scale_length,
const math::Vector3 inertial_to_backend_frame_translation 
)

Constructs an empty MockRoadGeometry with the specified tolerances.

Parameters
idthe ID of the RoadGeometry
linear_tolerancethe linear tolerance
angular_tolerancethe angular tolerance
scale_lengththe scale length
inertial_to_backend_frame_translationthe Inertial to Backend Frame translation
Exceptions
std::exceptionif either linear_tolerance or angular_tolerance or scale_length is non-positive.

Member Function Documentation

◆ MALIPUT_NO_COPY_NO_MOVE_NO_ASSIGN()

MALIPUT_NO_COPY_NO_MOVE_NO_ASSIGN ( MockRoadGeometry  )

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