Drake
LanePositionT< T > Class Template Reference

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

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

Public Member Functions

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

Static Public Member Functions

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

Detailed Description

template<typename T>
class drake::maliput::api::LanePositionT< T >

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.

Instantiated templates for the following kinds of T's are provided:

They are already available to link against in the containing library.

Constructor & Destructor Documentation

LanePositionT ( const LanePositionT< T > &  )
default
LanePositionT ( LanePositionT< T > &&  )
default
LanePositionT ( )
inline

Default constructor, initializing all components to zero.

LanePositionT ( const T &  s,
const T &  r,
const T &  h 
)
inline

Fully parameterized constructor.

Member Function Documentation

static LanePositionT<T> FromSrh ( const Vector3< T > &  srh)
inlinestatic

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

T h ( ) const
inline

Gets h value.

Here is the caller graph for this function:

LanePositionT& operator= ( LanePositionT< T > &&  )
default
LanePositionT& operator= ( const LanePositionT< T > &  )
default
T r ( ) const
inline

Gets r value.

Here is the caller graph for this function:

T s ( ) const
inline

Gets s value.

Here is the caller graph for this function:

void set_h ( const T &  h)
inline

Sets h value.

void set_r ( const T &  r)
inline

Sets r value.

void set_s ( const T &  s)
inline

Sets s value.

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

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

Here is the caller graph for this function:

const Vector3<T>& 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: