CARLA
Public Types | Public Member Functions | Public Attributes | List of all members
carla::road::element::LaneMarking Struct Reference

#include <LaneMarking.h>

+ Collaboration diagram for carla::road::element::LaneMarking:

Public Types

enum  Color : uint8_t {
  Color::Standard = 0u, Color::Blue = 1u, Color::Green = 2u, Color::Red = 3u,
  Color::White = Standard, Color::Yellow = 4u, Color::Other = 5u
}
 
enum  LaneChange : uint8_t { LaneChange::None = 0x00, LaneChange::Right = 0x01, LaneChange::Left = 0x02, LaneChange::Both = 0x03 }
 Can be used as flags. More...
 
enum  Type {
  Type::Other, Type::Broken, Type::Solid, Type::SolidSolid,
  Type::SolidBroken, Type::BrokenSolid, Type::BrokenBroken, Type::BottsDots,
  Type::Grass, Type::Curb, Type::None
}
 

Public Member Functions

std::string GetColorInfoAsString ()
 
 LaneMarking (const RoadInfoMarkRecord &info)
 

Public Attributes

Color color = Color::Standard
 
LaneChange lane_change = LaneChange::None
 
Type type = Type::None
 
double width = 0.0
 

Detailed Description

Definition at line 18 of file LaneMarking.h.

Member Enumeration Documentation

◆ Color

Enumerator
Standard 
Blue 
Green 
Red 
White 
Yellow 
Other 

Definition at line 39 of file LaneMarking.h.

◆ LaneChange

Can be used as flags.

Enumerator
None 
Right 
Left 
Both 

Definition at line 50 of file LaneMarking.h.

◆ Type

Enumerator
Other 
Broken 
Solid 
SolidSolid 
SolidBroken 
BrokenSolid 
BrokenBroken 
BottsDots 
Grass 
Curb 
None 

Definition at line 20 of file LaneMarking.h.

Constructor & Destructor Documentation

◆ LaneMarking()

carla::road::element::LaneMarking::LaneMarking ( const RoadInfoMarkRecord info)
explicit

Definition at line 76 of file LaneMarking.cpp.

Member Function Documentation

◆ GetColorInfoAsString()

std::string carla::road::element::LaneMarking::GetColorInfoAsString ( )
inline

Definition at line 67 of file LaneMarking.h.

References Standard, and Yellow.

Member Data Documentation

◆ color

Color carla::road::element::LaneMarking::color = Color::Standard

Definition at line 61 of file LaneMarking.h.

◆ lane_change

LaneChange carla::road::element::LaneMarking::lane_change = LaneChange::None

Definition at line 63 of file LaneMarking.h.

◆ type

Type carla::road::element::LaneMarking::type = Type::None

◆ width

double carla::road::element::LaneMarking::width = 0.0

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