maliput_malidrive
|
Holds a Connection description of a XODR junction.
Provides information about a single connection within a junction. For example:
#include <src/maliput_malidrive/xodr/connection.h>
Classes | |
struct | LaneLink |
Holds a LaneLink description of a XODR junction. More... | |
Public Types | |
enum | ContactPoint { kStart = 0, kEnd } |
Enum the contact points. More... | |
enum | Type { kDefault = 0, kVirtual } |
Enum junction types. More... | |
using | Id = maliput::api::TypeSpecificIdentifier< struct Connection > |
Public Member Functions | |
bool | operator== (const Connection &other) const |
Equality operator. More... | |
bool | operator!= (const Connection &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... | |
static ContactPoint | str_to_contact_point (const std::string &contact_point) |
Matches ContactPoint with a string. More... | |
static std::string | contact_point_to_str (ContactPoint contact_point) |
Matches string with a ContactPoint. More... | |
Public Attributes | |
Id | id {"None"} |
Connetion's id. More... | |
std::string | incoming_road {} |
ID of the incoming road. More... | |
std::string | connecting_road {} |
ID of the connecting path. More... | |
ContactPoint | contact_point {ContactPoint::kStart} |
Contact point on the connecting road. More... | |
std::optional< Id > | connection_master {std::nullopt} |
ID of the connection which will act as master. More... | |
std::optional< Type > | type {Type::kDefault} |
Type of the connection, required for virtual connections only. More... | |
std::vector< LaneLink > | lane_links {} |
Links between lanes. More... | |
Static Public Attributes | |
static constexpr const char * | kConnectionTag = "connection" |
Convenient constants that hold the tag names in the XODR connection description. More... | |
static constexpr const char * | kId = "id" |
static constexpr const char * | kIncomingRoad = "incomingRoad" |
static constexpr const char * | kConnectingRoad = "connectingRoad" |
static constexpr const char * | kContactPoint = "contactPoint" |
static constexpr const char * | kConnectionMaster = "connectionMaster" |
static constexpr const char * | kType = "type" |
using Id = maliput::api::TypeSpecificIdentifier<struct Connection> |
enum ContactPoint |
enum Type |
|
static |
Matches string with a ContactPoint.
contact_point | Is a ContactPoint. |
contact_point
. bool operator!= | ( | const Connection & | other | ) | const |
Inequality operator.
bool operator== | ( | const Connection & | other | ) | const |
Equality operator.
|
static |
Matches ContactPoint with a string.
contact_point | Is a string. |
contact_point
. maliput::common::assertion_error | When contact_point doesn't match with a ContactPoint. |
|
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::string connecting_road {} |
ID of the connecting path.
std::optional<Id> connection_master {std::nullopt} |
ID of the connection which will act as master.
ContactPoint contact_point {ContactPoint::kStart} |
Contact point on the connecting road.
Id id {"None"} |
Connetion's id.
std::string incoming_road {} |
ID of the incoming road.
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
Convenient constants that hold the tag names in the XODR connection description.
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
std::vector<LaneLink> lane_links {} |
Links between lanes.
std::optional<Type> type {Type::kDefault} |
Type of the connection, required for virtual connections only.