maliput_malidrive
LaneSection Struct Reference

Detailed Description

Holds the values of a XODR LaneSection.

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

<OpenDRIVE>
...
<road>
<lanes>
<laneSection s="0.0000000000000000e+0" singleSide="true">
<left>
<lane>
...
</lane>
</left>
<center>
<lane>
...
</lane>
</center>
<right>
<lane>
...
</lane>
</right>
</laneSection>
</lanes>
<road>
...
</OpenDRIVE>

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

Public Member Functions

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

Public Attributes

double s_0 {}
 Start position (s-coordinate). More...
 
std::optional< bool > single_side {std::nullopt}
 Lane section entry is valid for one side only. More...
 
std::vector< Laneleft_lanes {}
 Lanes in the left side of the road. More...
 
Lane center_lane {}
 Center lane of the road. More...
 
std::vector< Laneright_lanes {}
 Lanes in the right side of the road. More...
 

Static Public Attributes

static constexpr const char * kLaneSectionTag = "laneSection"
 Convenient constants that hold the tag names in the XODR lane section node. More...
 
static constexpr const char * kS0 = "s"
 
static constexpr const char * kSingleSide = "singleSide"
 
static constexpr const char * kLeft = "left"
 
static constexpr const char * kCenter = "center"
 
static constexpr const char * kRight = "right"
 

Member Function Documentation

◆ operator!=()

bool operator!= ( const LaneSection other) const

Inequality operator.

◆ operator==()

bool operator== ( const LaneSection other) const

Equality operator.

Member Data Documentation

◆ center_lane

Lane center_lane {}

Center lane of the road.

◆ kCenter

constexpr const char* kCenter = "center"
staticconstexpr

◆ kLaneSectionTag

constexpr const char* kLaneSectionTag = "laneSection"
staticconstexpr

Convenient constants that hold the tag names in the XODR lane section node.

◆ kLeft

constexpr const char* kLeft = "left"
staticconstexpr

◆ kRight

constexpr const char* kRight = "right"
staticconstexpr

◆ kS0

constexpr const char* kS0 = "s"
staticconstexpr

◆ kSingleSide

constexpr const char* kSingleSide = "singleSide"
staticconstexpr

◆ left_lanes

std::vector<Lane> left_lanes {}

Lanes in the left side of the road.

◆ right_lanes

std::vector<Lane> right_lanes {}

Lanes in the right side of the road.

◆ s_0

double s_0 {}

Start position (s-coordinate).

◆ single_side

std::optional<bool> single_side {std::nullopt}

Lane section entry is valid for one side only.


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