|
maliput
|
Describes a single line within a lane marking.
Complex markings (like double lines) can be composed of multiple lines. Each line has its own pattern, width, and optional color.
For broken/dashed lines:
length is the length of the visible (painted) segment.space is the length of the gap between painted segments. For solid lines:length and space should be 0 (their values are ignored).The line type (solid vs. broken) is inferred from these fields:
space == 0 indicates a solid line.space > 0 indicates a broken/dashed line.Example: A standard broken white line might have:
#include <include/maliput/api/lane_marking.h>
Public Member Functions | |
| bool | operator== (const LaneMarkingLine &other) const |
| Compares two LaneMarkingLine instances for equality. More... | |
| bool | operator!= (const LaneMarkingLine &other) const |
| Compares two LaneMarkingLine instances for inequality. More... | |
Public Attributes | |
| double | length {0.} |
| Length of the visible (painted) part of each dash [m]. More... | |
| double | space {0.} |
| Length of the gap between visible parts [m]. More... | |
| double | width {0.} |
| Width of this line [m]. More... | |
| double | r_offset {0.} |
| Lateral offset from the lane boundary [m]. More... | |
| LaneMarkingColor | color {LaneMarkingColor::kUnknown} |
| Color of this specific line. More... | |
| bool operator!= | ( | const LaneMarkingLine & | other | ) | const |
Compares two LaneMarkingLine instances for inequality.
| bool operator== | ( | const LaneMarkingLine & | other | ) | const |
Compares two LaneMarkingLine instances for equality.
Color of this specific line.
If set to kUnknown, the parent LaneMarking's color should be used.
| double length {0.} |
Length of the visible (painted) part of each dash [m].
For solid lines, this should be 0 (value is ignored).
| double r_offset {0.} |
Lateral offset from the lane boundary [m].
Positive values offset in the positive r-direction (towards the lane's left edge when facing the positive s-direction). This allows positioning multiple lines relative to each other.
| double space {0.} |
Length of the gap between visible parts [m].
For solid lines, this should be 0.
| double width {0.} |
Width of this line [m].