Drake
LanePositionT< T > Class Template 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

 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...
 
LanePositionT< doubleMakeDouble () const
 Constructs a LanePositionT<double> from other types, producing a clone if already double. More...
 
Implements CopyConstructible, CopyAssignable, MoveConstructible, MoveAssignable
 LanePositionT (const LanePositionT &)=default
 
LanePositionToperator= (const LanePositionT &)=default
 
 LanePositionT (LanePositionT &&)=default
 
LanePositionToperator= (LanePositionT &&)=default
 
Getters and Setters
T s () const
 Gets s value. More...
 
void set_s (const T &s)
 Sets s value. More...
 
T r () const
 Gets r value. More...
 
void set_r (const T &r)
 Sets r value. More...
 
T h () const
 Gets h value. More...
 
void set_h (const T &h)
 Sets h value. More...
 

Static Public Member Functions

static LanePositionT< TFromSrh (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() [1/4]

LanePositionT ( const LanePositionT< T > &  )
default

◆ LanePositionT() [2/4]

LanePositionT ( LanePositionT< T > &&  )
default

◆ LanePositionT() [3/4]

LanePositionT ( )
inline

Default constructor, initializing all components to zero.

◆ LanePositionT() [4/4]

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

Fully parameterized constructor.

Member Function Documentation

◆ FromSrh()

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

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

◆ h()

T h ( ) const
inline

Gets h value.

◆ MakeDouble()

LanePositionT<double> MakeDouble ( ) const
inline

Constructs a LanePositionT<double> from other types, producing a clone if already double.

◆ operator=() [1/2]

LanePositionT& operator= ( LanePositionT< T > &&  )
default

◆ operator=() [2/2]

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

◆ r()

T r ( ) const
inline

Gets r value.

◆ s()

T s ( ) const
inline

Gets s value.

◆ set_h()

void set_h ( const T h)
inline

Sets h value.

◆ set_r()

void set_r ( const T r)
inline

Sets r value.

◆ set_s()

void set_s ( const T s)
inline

Sets s value.

◆ set_srh()

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

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

◆ srh()

const Vector3<T>& srh ( ) const
inline

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


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