CARLA
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
carla::road::element::LaneMarking Struct Reference

#include <LaneMarking.h>

Public Types

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

enum class carla::road::element::LaneMarking::Color : uint8_t
strong
Enumerator
Standard 
Blue 
Green 
Red 
White 
Yellow 
Other 

Definition at line 39 of file LaneMarking.h.

◆ LaneChange

enum class carla::road::element::LaneMarking::LaneChange : uint8_t
strong

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 color, Standard, and Yellow.

Member Data Documentation

◆ color

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

Definition at line 61 of file LaneMarking.h.

Referenced by GetColorInfoAsString().

◆ 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: