maliput_malidrive
|
Holds the road link description of a XODR road.
For example:
#include <src/maliput_malidrive/xodr/road_link.h>
Classes | |
struct | LinkAttributes |
Contains the information about the predecessor/successor road. More... | |
Public Types | |
enum | ContactPoint { kStart = 0, kEnd } |
Enum the contact points. More... | |
enum | ElementType { kRoad = 0, kJunction } |
Enum the types of the link's element. More... | |
Public Member Functions | |
bool | operator== (const RoadLink &other) const |
Equality operator. More... | |
bool | operator!= (const RoadLink &other) const |
Inequality operator. More... | |
Static Public Member Functions | |
static ElementType | str_to_element_type (const std::string &type) |
Matches ElementType with a string. More... | |
static std::string | element_type_to_str (ElementType type) |
Matches string with a ElementType. 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 | |
std::optional< LinkAttributes > | predecessor {std::nullopt} |
Road's predecessor. More... | |
std::optional< LinkAttributes > | successor {std::nullopt} |
Road's successor. More... | |
Static Public Attributes | |
static constexpr const char * | kRoadLinkTag = "link" |
Convenient constants that hold the tag names in the XODR road header description. More... | |
static constexpr const char * | kPredecessorTag = "predecessor" |
static constexpr const char * | kSuccessorTag = "successor" |
enum ContactPoint |
enum ElementType |
|
static |
Matches string with a ContactPoint.
contact_point | Is a ContactPoint. |
contact_point
.
|
static |
Matches string with a ElementType.
type | Is a ElementType. |
type
. bool operator!= | ( | const RoadLink & | other | ) | const |
Inequality operator.
bool operator== | ( | const RoadLink & | 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 ElementType with a string.
type | Is a string. |
type
. maliput::common::assertion_error | When type doesn't match with a ElementType. |
|
staticconstexpr |
|
staticconstexpr |
Convenient constants that hold the tag names in the XODR road header description.
|
staticconstexpr |
std::optional<LinkAttributes> predecessor {std::nullopt} |
Road's predecessor.
std::optional<LinkAttributes> successor {std::nullopt} |
Road's successor.