maliput_malidrive
LaneOffset Struct Reference

Detailed Description

Holds the values of a XODR Lane Offset.

For example, a XML node describing a XODR's lane offset:

<OpenDRIVE>
...
<road>
<lanes>
<laneOffset s="0.000e+0" a="0.000e+0" b="0.000e+0" c="0.000e+0" d="0.000e+0"/>
...
</lanes>
<road>
...
</OpenDRIVE>

#include <src/maliput_malidrive/xodr/lane_offset.h>

Public Member Functions

bool operator== (const LaneOffset &other) const
 Equality operator. More...
 
bool operator!= (const LaneOffset &other) const
 Inequality operator. More...
 

Public Attributes

double s_0 {}
 Start position (s-coordinate). More...
 
double a {}
 Coefficients of a cubic polynomial: \(a + b * p + c * p^2 + d * p^3\). More...
 
double b {}
 
double c {}
 
double d {}
 

Static Public Attributes

static constexpr const char * kLaneOffsetTag = "laneOffset"
 Convenient constants that hold the tag names in the XODR lane offset description. More...
 
static constexpr const char * kS0 = "s"
 
static constexpr const char * kA = "a"
 
static constexpr const char * kB = "b"
 
static constexpr const char * kC = "c"
 
static constexpr const char * kD = "d"
 

Member Function Documentation

◆ operator!=()

bool operator!= ( const LaneOffset other) const

Inequality operator.

◆ operator==()

bool operator== ( const LaneOffset other) const

Equality operator.

Member Data Documentation

◆ a

double a {}

Coefficients of a cubic polynomial: \(a + b * p + c * p^2 + d * p^3\).

◆ b

double b {}

◆ c

double c {}

◆ d

double d {}

◆ kA

constexpr const char* kA = "a"
staticconstexpr

◆ kB

constexpr const char* kB = "b"
staticconstexpr

◆ kC

constexpr const char* kC = "c"
staticconstexpr

◆ kD

constexpr const char* kD = "d"
staticconstexpr

◆ kLaneOffsetTag

constexpr const char* kLaneOffsetTag = "laneOffset"
staticconstexpr

Convenient constants that hold the tag names in the XODR lane offset description.

◆ kS0

constexpr const char* kS0 = "s"
staticconstexpr

◆ s_0

double s_0 {}

Start position (s-coordinate).


The documentation for this struct was generated from the following files: