CARLA
Loading...
Searching...
No Matches
carla::rpc::LightState Class Reference

#include <LightState.h>

Public Types

using flag_type = uint8_t
enum class  LightGroup : flag_type {
  None = 0 , Vehicle , Street , Building ,
  Other
}

Public Member Functions

 LightState ()
 LightState (geom::Location location, float intensity, LightGroup group, Color color, bool active)
 MSGPACK_DEFINE_ARRAY (_id, _location, _intensity, _group, _color, _active)

Public Attributes

bool _active = false
Color _color
flag_type _group = static_cast<flag_type>(LightGroup::None)
LightId _id
float _intensity = 0.0f
geom::Location _location

Detailed Description

Definition at line 18 of file rpc/LightState.h.

Member Typedef Documentation

◆ flag_type

Definition at line 21 of file rpc/LightState.h.

Member Enumeration Documentation

◆ LightGroup

Enumerator
None 
Vehicle 
Street 
Building 
Other 

Definition at line 23 of file rpc/LightState.h.

Constructor & Destructor Documentation

◆ LightState() [1/2]

carla::rpc::LightState::LightState ( )
inline

Definition at line 31 of file rpc/LightState.h.

◆ LightState() [2/2]

carla::rpc::LightState::LightState ( geom::Location location,
float intensity,
LightGroup group,
Color color,
bool active )
inline

Definition at line 33 of file rpc/LightState.h.

References _active, _color, _group, _intensity, and _location.

Member Function Documentation

◆ MSGPACK_DEFINE_ARRAY()

carla::rpc::LightState::MSGPACK_DEFINE_ARRAY ( _id ,
_location ,
_intensity ,
_group ,
_color ,
_active  )

References _active, _color, _group, _id, _intensity, and _location.

Member Data Documentation

◆ _active

bool carla::rpc::LightState::_active = false

Definition at line 50 of file rpc/LightState.h.

Referenced by LightState(), and MSGPACK_DEFINE_ARRAY().

◆ _color

Color carla::rpc::LightState::_color

Definition at line 49 of file rpc/LightState.h.

Referenced by LightState(), and MSGPACK_DEFINE_ARRAY().

◆ _group

flag_type carla::rpc::LightState::_group = static_cast<flag_type>(LightGroup::None)

Definition at line 48 of file rpc/LightState.h.

Referenced by LightState(), and MSGPACK_DEFINE_ARRAY().

◆ _id

LightId carla::rpc::LightState::_id

◆ _intensity

float carla::rpc::LightState::_intensity = 0.0f

Definition at line 46 of file rpc/LightState.h.

Referenced by LightState(), and MSGPACK_DEFINE_ARRAY().

◆ _location

geom::Location carla::rpc::LightState::_location

Definition at line 45 of file rpc/LightState.h.

Referenced by LightState(), and MSGPACK_DEFINE_ARRAY().


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