maliput_malidrive
LaneWidth Struct Reference

Detailed Description

Holds the values of a XODR Lane Width.

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

<OpenDRIVE>
...
<road>
<lanes>
<laneSection>
<right>
<lane>
<width sOffset="0.0" a="3.5" b="0.0" c="0.0" d="0.0"/>
</lane>
</right>
</laneSection>
</lanes>
<road>
...
</OpenDRIVE>

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

Public Member Functions

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

Public Attributes

double s_0 {}
 Start position (s-coordinate) relative to the position of the preceding laneSection. 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 * kLaneWidthTag = "width"
 Convenient constants that hold the tag names in the XODR width description. More...
 
static constexpr const char * kOffset = "sOffset"
 
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 LaneWidth other) const

Inequality operator.

◆ operator==()

bool operator== ( const LaneWidth 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

◆ kLaneWidthTag

constexpr const char* kLaneWidthTag = "width"
staticconstexpr

Convenient constants that hold the tag names in the XODR width description.

◆ kOffset

constexpr const char* kOffset = "sOffset"
staticconstexpr

◆ s_0

double s_0 {}

Start position (s-coordinate) relative to the position of the preceding laneSection.


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