maliput_malidrive
|
Holds a junction description of a XODR road.
For example:
#include <src/maliput_malidrive/xodr/junction.h>
Public Types | |
enum | Type { kDefault = 0, kVirtual } |
Enum junction types. More... | |
using | Id = maliput::api::TypeSpecificIdentifier< struct Junction > |
Public Member Functions | |
bool | operator== (const Junction &other) const |
Equality operator. More... | |
bool | operator!= (const Junction &other) const |
Inequality operator. More... | |
Static Public Member Functions | |
static Type | str_to_type (const std::string &type) |
Matches Type with a string. More... | |
static std::string | type_to_str (Type type) |
Matches string with a Type. More... | |
Public Attributes | |
Id | id {"None"} |
Junction's id. More... | |
std::optional< std::string > | name {std::nullopt} |
Junction's name. More... | |
std::optional< Type > | type {Type::kDefault} |
Type of the junction, required for "virtual" junctions only. More... | |
std::unordered_map< Connection::Id, Connection > | connections {} |
Connections within the junction. More... | |
Static Public Attributes | |
static constexpr const char * | kJunctionTag = "junction" |
Convenient constants that hold the tag names in the XODR junction description. More... | |
static constexpr const char * | kId = "id" |
static constexpr const char * | kName = "name" |
static constexpr const char * | kType = "type" |
using Id = maliput::api::TypeSpecificIdentifier<struct Junction> |
enum Type |
bool operator!= | ( | const Junction & | other | ) | const |
Inequality operator.
bool operator== | ( | const Junction & | 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::unordered_map<Connection::Id, Connection> connections {} |
Connections within the junction.
|
staticconstexpr |
|
staticconstexpr |
Convenient constants that hold the tag names in the XODR junction description.
|
staticconstexpr |
|
staticconstexpr |
std::optional<std::string> name {std::nullopt} |
Junction's name.
std::optional<Type> type {Type::kDefault} |
Type of the junction, required for "virtual" junctions only.