maliput
LanePosition Class Reference

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. +r is to to the left when traveling in the direction of +s.
  • h is height above the road surface.

#include <include/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 math::Vector3srh () const
 Returns all components as 3-vector [s, r, h]. More...
 
void set_srh (const math::Vector3 &srh)
 Sets all components from 3-vector [s, r, h]. More...
 

Static Public Member Functions

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

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...
 

Constructor & Destructor Documentation

◆ LanePosition() [1/2]

Default constructor, initializing all components to zero.

◆ LanePosition() [2/2]

LanePosition ( double  s,
double  r,
double  h 
)

Fully parameterized constructor.

Member Function Documentation

◆ FromSrh()

static LanePosition FromSrh ( const math::Vector3 srh)
static

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

◆ h()

double h ( ) const

Gets h value.

◆ r()

double r ( ) const

Gets r value.

◆ s()

double s ( ) const

Gets s value.

◆ set_h()

void set_h ( double  h)

Sets h value.

◆ set_r()

void set_r ( double  r)

Sets r value.

◆ set_s()

void set_s ( double  s)

Sets s value.

◆ set_srh()

void set_srh ( const math::Vector3 srh)

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

◆ srh()

const math::Vector3& srh ( ) const

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


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