Drake

Representation of a reference path connecting two endpoints. More...
#include <drake/automotive/maliput/monolane/builder.h>
Public Types  
enum  Type { kLine, kArc } 
Possible connection geometries: line or arcsegment. More...  
Public Member Functions  
Connection (const std::string &id, const Endpoint &start, const Endpoint &end)  
Constructs a linesegment connection joining start to end . More...  
Connection (const std::string &id, const Endpoint &start, const Endpoint &end, double cx, double cy, double radius, double d_theta)  
Constructs an arcsegment connection joining start to end . More...  
Type  type () const 
Returns the geometric type of the path. More...  
const std::string &  id () const 
Returns the ID string. More...  
const Endpoint &  start () const 
Returns the parameters of the start point. More...  
const Endpoint &  end () const 
Returns the parameters of the endpoint. More...  
double  cx () const 
Returns the xcomponent of the arc center (for arc connections only). More...  
double  cy () const 
Returns the ycomponent of the arc center (for arc connections only). More...  
double  radius () const 
Returns the radius of the arc (for arc connections only). More...  
double  d_theta () const 
Returns the angle of the arc (for arc connections only). More...  
Does not allow copy, move, or assignment  
Connection (const Connection &)=delete  
Connection &  operator= (const Connection &)=delete 
Connection (Connection &&)=delete  
Connection &  operator= (Connection &&)=delete 
Representation of a reference path connecting two endpoints.
Upon building the RoadGeometry, a Connection yields a Segment bearing a single Lane with the specified reference path. The Segment will belong to its own Junction, unless the Connection was grouped with other Connections into a Group.
Two connection geometries are supported: line and arc. These primitives determine the projection of the reference path onto the (locallyflat) plane of the earth. The outofplane shape of the path will be determined by the EndpointZ (elevation) parameters of the endpoints.
enum Type 

delete 

delete 

inline 
Constructs a linesegment connection joining start
to end
.

inline 
Constructs an arcsegment connection joining start
to end
.
cx
, cy
specify the center of the arc. radius
is the radius, and d_theta
is the angle of arc.
radius
must be nonnegative. d_theta
> 0 indicates a counterclockwise arc from start to end.

inline 
Returns the xcomponent of the arc center (for arc connections only).

inline 
Returns the ycomponent of the arc center (for arc connections only).

inline 
Returns the angle of the arc (for arc connections only).

inline 
Returns the parameters of the endpoint.

inline 
Returns the ID string.

delete 

delete 

inline 
Returns the radius of the arc (for arc connections only).

inline 
Returns the parameters of the start point.

inline 
Returns the geometric type of the path.