maliput_malidrive
|
Holds the values of a XODR description of a type header.
For example, a XML node describing a XODR's type:
#include <src/maliput_malidrive/xodr/road_type.h>
Classes | |
struct | Speed |
Speed description. More... | |
Public Types | |
enum | Type { kUnknown = 0, kRural, kMotorway, kTown, kLowSpeed, kPedestrian, kBicycle, kTownExpressway, kTownCollector, kTownArterial, kTownPrivate, kTownLocal, kTownPlayStreet } |
Contains the types of road. More... | |
Public Member Functions | |
bool | operator== (const RoadType &other) const |
Equality operator. More... | |
bool | operator!= (const RoadType &other) const |
Inequality operator. More... | |
Static Public Member Functions | |
static std::string | type_to_str (Type type) |
Matches string with a Type. More... | |
static Type | str_to_type (const std::string &type) |
Matches Type with a string. More... | |
Public Attributes | |
double | s_0 {} |
Start position (s-coordinate). More... | |
Type | type {Type::kUnknown} |
Type of the road. More... | |
std::optional< std::string > | country {std::nullopt} |
Country code of the road. More... | |
Speed | speed {} |
Maximum speed allowed. More... | |
Static Public Attributes | |
static constexpr const char * | kRoadTypeTag = "type" |
Convenient constants that hold the tag names in the XODR Type header description. More... | |
static constexpr const char * | kS0 = "s" |
static constexpr const char * | kType = "type" |
static constexpr const char * | kCountry = "country" |
|
strong |
bool operator!= | ( | const RoadType & | other | ) | const |
Inequality operator.
bool operator== | ( | const RoadType & | other | ) | const |
Equality operator.
|
static |
Matches Type with a string.
type | Is a string. |
type
. maliput::common::assertion_error | When type doesn't match with a Type. |
|
static |
Matches string with a Type.
type | Is a Type. |
type
. std::optional<std::string> country {std::nullopt} |
Country code of the road.
|
staticconstexpr |
|
staticconstexpr |
Convenient constants that hold the tag names in the XODR Type header description.
|
staticconstexpr |
|
staticconstexpr |
double s_0 {} |
Start position (s-coordinate).
Speed speed {} |
Maximum speed allowed.
Type type {Type::kUnknown} |
Type of the road.