maliput_malidrive
RoadType::Speed Struct Reference

Detailed Description

Speed description.

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

Public Member Functions

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

Public Attributes

std::optional< double > max {std::nullopt}
 Maximum allowed speed. More...
 
Unit unit {Unit::kMs}
 Unit of the max attribute. More...
 

Static Public Attributes

static constexpr const char * kSpeedTag = "speed"
 Holds the tag name in the XODR Speed description. More...
 
static constexpr const char * kMax = "max"
 
static constexpr const char * kUnit = "unit"
 
static constexpr std::array< const char *, 2 > kUnlimitedSpeedStrings {"no limit", "undefined"}
 Holds possible string values for max attribute. More...
 

Member Function Documentation

◆ operator!=()

bool operator!= ( const Speed other) const

Inequality operator.

◆ operator==()

bool operator== ( const Speed other) const

Equality operator.

Member Data Documentation

◆ kMax

constexpr const char* kMax = "max"
staticconstexpr

◆ kSpeedTag

constexpr const char* kSpeedTag = "speed"
staticconstexpr

Holds the tag name in the XODR Speed description.

◆ kUnit

constexpr const char* kUnit = "unit"
staticconstexpr

◆ kUnlimitedSpeedStrings

constexpr std::array<const char*, 2> kUnlimitedSpeedStrings {"no limit", "undefined"}
staticconstexpr

Holds possible string values for max attribute.

◆ max

std::optional<double> max {std::nullopt}

Maximum allowed speed.

It contains std::nullopt when there is no limit.

◆ unit

Unit unit {Unit::kMs}

Unit of the max attribute.


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