maliput_malidrive
|
Hold the travel direction of a lane obtained from parsing a userData XML node.
An userData node example:
#include <src/maliput_malidrive/builder/builder_tools.h>
Public Types | |
enum | Direction { kUndirected = 0, kForward, kBackward, kBidirectional, kUndefined } |
Possible directions obtained from the XODR. More... | |
Public Member Functions | |
LaneTravelDirection ()=delete | |
LaneTravelDirection (const std::optional< std::string > &user_data) | |
Constructs a LaneTravelDirection. More... | |
Direction | GetXodrTravelDir () const |
std::string | GetMaliputTravelDir () const |
Matches the travel direction with Maliput's standard. More... | |
|
strong |
|
delete |
|
explicit |
Constructs a LaneTravelDirection.
user_data | Contains a UserData XMLNode that holds information about the direction of the lane. |
maliput::common::assertion_error | When the travel direction information is not compatible. |
std::string GetMaliputTravelDir | ( | ) | const |
Matches the travel direction with Maliput's standard.
Direction GetXodrTravelDir | ( | ) | const |