Drake
RoadGeometry Class Reference

A simple api::RoadGeometry implementation that only supports a single lane per segment. More...

#include <drake/automotive/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...
 
JunctionNewJunction (api::JunctionId id)
 Creates and adds a new Junction with the specified id. More...
 
BranchPointNewBranchPoint (api::BranchPointId id)
 Creates and adds a new BranchPoint with the specified id. More...
 
 ~RoadGeometry () override=default
 
Does not allow copy, move, or assignment
 RoadGeometry (const RoadGeometry &)=delete
 
RoadGeometryoperator= (const RoadGeometry &)=delete
 
 RoadGeometry (RoadGeometry &&)=delete
 
RoadGeometryoperator= (RoadGeometry &&)=delete
 
- Public Member Functions inherited from RoadGeometry
const 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...
 
RoadPosition ToRoadPosition (const GeoPosition &geo_position, const RoadPosition *hint, GeoPosition *nearest_position, double *distance) const
 Determines the RoadPosition corresponding to GeoPosition geo_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...
 
 RoadGeometry (const RoadGeometry &)=delete
 
RoadGeometryoperator= (const RoadGeometry &)=delete
 
 RoadGeometry (RoadGeometry &&)=delete
 
RoadGeometryoperator= (RoadGeometry &&)=delete
 

Additional Inherited Members

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

Detailed Description

A simple api::RoadGeometry implementation that only supports a single lane per segment.

Use the Builder interface to actually assemble a sensible road network.

Constructor & Destructor Documentation

◆ RoadGeometry() [1/3]

RoadGeometry ( const RoadGeometry )
delete

◆ RoadGeometry() [2/3]

RoadGeometry ( RoadGeometry &&  )
delete

◆ RoadGeometry() [3/3]

RoadGeometry ( const api::RoadGeometryId id,
double  linear_tolerance,
double  angular_tolerance,
double  scale_length 
)
inline

Constructs an empty RoadGeometry with the specified tolerances and scale-length.

◆ ~RoadGeometry()

~RoadGeometry ( )
overridevirtualdefault

Reimplemented from RoadGeometry.

Member Function Documentation

◆ NewBranchPoint()

BranchPoint * NewBranchPoint ( api::BranchPointId  id)

Creates and adds a new BranchPoint with the specified id.

◆ NewJunction()

Junction * NewJunction ( api::JunctionId  id)

Creates and adds a new Junction with the specified id.

◆ operator=() [1/2]

RoadGeometry& operator= ( const RoadGeometry )
delete

◆ operator=() [2/2]

RoadGeometry& operator= ( RoadGeometry &&  )
delete

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