Drake
LanePosition Class Reference

A 3-dimensional position in a Lane-frame, consisting of three components: More...

#include <drake/automotive/maliput/api/lane_data.h>

Public Member Functions

 LanePosition ()
 Default constructor, initializing all components to zero. More...
 
 LanePosition (double s, double r, double h)
 Fully parameterized constructor. More...
 
const Vector3< double > & srh () const
 Returns all components as 3-vector [s, r, h]. More...
 
void set_srh (const Vector3< double > &srh)
 Sets all components from 3-vector [s, r, h]. More...
 
Implements CopyConstructible, CopyAssignable, MoveConstructible, MoveAssignable
 LanePosition (const LanePosition &)=default
 
LanePositionoperator= (const LanePosition &)=default
 
 LanePosition (LanePosition &&)=default
 
LanePositionoperator= (LanePosition &&)=default
 
Getters and Setters
double s () const
 Gets s value. More...
 
void set_s (double s)
 Sets s value. More...
 
double r () const
 Gets r value. More...
 
void set_r (double r)
 Sets r value. More...
 
double h () const
 Gets h value. More...
 
void set_h (double h)
 Sets h value. More...
 

Static Public Member Functions

static LanePosition FromSrh (const Vector3< double > &srh)
 Constructs a LanePosition from a 3-vector srh of the form [s, r, h]. More...
 

Detailed Description

A 3-dimensional position in a Lane-frame, consisting of three components:

  • s is longitudinal position, as arc-length along a Lane's reference line.
  • r is lateral position, perpendicular to the reference line at s.
  • h is height above the road surface.

Constructor & Destructor Documentation

LanePosition ( const LanePosition )
default
LanePosition ( LanePosition &&  )
default
LanePosition ( )
inline

Default constructor, initializing all components to zero.

LanePosition ( double  s,
double  r,
double  h 
)
inline

Fully parameterized constructor.

Member Function Documentation

static LanePosition FromSrh ( const Vector3< double > &  srh)
inlinestatic

Constructs a LanePosition from a 3-vector srh of the form [s, r, h].

double h ( ) const
inline

Gets h value.

Here is the caller graph for this function:

LanePosition& operator= ( LanePosition &&  )
default
LanePosition& operator= ( const LanePosition )
default
double r ( ) const
inline

Gets r value.

Here is the caller graph for this function:

double s ( ) const
inline

Gets s value.

Here is the caller graph for this function:

void set_h ( double  h)
inline

Sets h value.

Here is the call graph for this function:

void set_r ( double  r)
inline

Sets r value.

void set_s ( double  s)
inline

Sets s value.

void set_srh ( const Vector3< double > &  srh)
inline

Sets all components from 3-vector [s, r, h].

Here is the caller graph for this function:

const Vector3<double>& srh ( ) const
inline

Returns all components as 3-vector [s, r, h].

Here is the caller graph for this function:


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