maliput_malidrive
|
Holds the values of a XODR description's geometry header.
For example, a XML node describing a XODR's geometry:
#include <src/maliput_malidrive/xodr/geometry.h>
Classes | |
struct | Arc |
Arc geometry description. More... | |
struct | Line |
Line geometry description. More... | |
struct | Spiral |
Spiral geometry description. More... | |
Public Types | |
enum | Type { kLine = 0, kArc, kSpiral } |
Contains the types of geometric elements. More... | |
Public Member Functions | |
bool | operator== (const Geometry &other) const |
Equality operator. More... | |
bool | operator!= (const Geometry &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... | |
maliput::math::Vector2 | start_point {} |
Start position (X-Y inertial). More... | |
double | orientation {} |
Start orientation (inertial heading). More... | |
double | length {} |
Length of the element's reference line. More... | |
Type | type {Type::kLine} |
Type of geometric element. More... | |
std::variant< Line, Arc, Spiral > | description |
Description of the geometric type. More... | |
Static Public Attributes | |
static constexpr const char * | kGeometryTag = "geometry" |
Convenient constants that hold the tag names in the XODR Geometry header description. More... | |
static constexpr const char * | kS0 = "s" |
static constexpr const char * | kStartPointX = "x" |
static constexpr const char * | kStartPointY = "y" |
static constexpr const char * | kOrientation = "hdg" |
static constexpr const char * | kLength = "length" |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &os, const Geometry &geometry) |
Streams a string representation of geometry into os . More... | |
|
strong |
bool operator!= | ( | const Geometry & | other | ) | const |
Inequality operator.
bool operator== | ( | const Geometry & | 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
.
|
related |
Streams a string representation of geometry
into os
.
Returns os
.
|
staticconstexpr |
Convenient constants that hold the tag names in the XODR Geometry header description.
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
double length {} |
Length of the element's reference line.
double orientation {} |
Start orientation (inertial heading).
double s_0 {} |
Start position (s-coordinate).
maliput::math::Vector2 start_point {} |
Start position (X-Y inertial).
Type type {Type::kLine} |
Type of geometric element.