maliput
LaneMarkingLine Struct Reference

Detailed Description

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:
  • Both 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:

  • length = 3.0 m (painted segment)
  • space = 9.0 m (gap)
  • width = 0.15 m

#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...
 

Member Function Documentation

◆ operator!=()

bool operator!= ( const LaneMarkingLine other) const

Compares two LaneMarkingLine instances for inequality.

◆ operator==()

bool operator== ( const LaneMarkingLine other) const

Compares two LaneMarkingLine instances for equality.

Member Data Documentation

◆ color

Color of this specific line.

If set to kUnknown, the parent LaneMarking's color should be used.

◆ length

double length {0.}

Length of the visible (painted) part of each dash [m].

For solid lines, this should be 0 (value is ignored).

◆ r_offset

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.

◆ space

double space {0.}

Length of the gap between visible parts [m].

For solid lines, this should be 0.

◆ width

double width {0.}

Width of this line [m].


The documentation for this struct was generated from the following file: