CARLA
Public Types | Public Member Functions | Public Attributes | List of all members
carla::rpc::LightState Class Reference

#include <LightState.h>

+ Collaboration diagram for carla::rpc::LightState:

Public Types

using flag_type = uint8_t
 
enum  LightGroup : flag_type {
  LightGroup::None = 0, LightGroup::Vehicle, LightGroup::Street, LightGroup::Building,
  LightGroup::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.

Member Function Documentation

◆ MSGPACK_DEFINE_ARRAY()

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

Member Data Documentation

◆ _active

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

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

◆ _color

Color carla::rpc::LightState::_color

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

◆ _group

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

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

◆ _id

LightId carla::rpc::LightState::_id

◆ _intensity

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

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

◆ _location

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

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


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