CARLA
VehicleLightStage.h
Go to the documentation of this file.
1 
2 #pragma once
3 
9 
10 namespace carla {
11 namespace traffic_manager {
12 
13 /// This class has functionality for turning on/off the vehicle lights
14 /// according to the current vehicle state and its surrounding environment.
16 private:
17  const std::vector<ActorId> &vehicle_id_list;
20  const cc::World &world;
22  /// All vehicle light states
24  /// Current weather parameters
26 
27 public:
28  VehicleLightStage(const std::vector<ActorId> &vehicle_id_list,
29  const BufferMap &buffer_map,
30  const Parameters &parameters,
31  const cc::World &world,
32  ControlFrame& control_frame);
33 
34  void UpdateWorldInfo();
35 
36  void Update(const unsigned long index) override;
37 
38  void RemoveActor(const ActorId actor_id) override;
39 
40  void Reset() override;
41 };
42 
43 } // namespace traffic_manager
44 } // namespace carla
std::vector< carla::rpc::Command > ControlFrame
rpc::VehicleLightStateList all_light_states
All vehicle light states.
std::vector< std::pair< ActorId, VehicleLightState::flag_type > > VehicleLightStateList
This file contains definitions of common data structures used in traffic manager. ...
Definition: Carla.cpp:133
std::unordered_map< carla::ActorId, Buffer > BufferMap
const std::vector< ActorId > & vehicle_id_list
VehicleLightStage(const std::vector< ActorId > &vehicle_id_list, const BufferMap &buffer_map, const Parameters &parameters, const cc::World &world, ControlFrame &control_frame)
void Update(const unsigned long index) override
carla::ActorId ActorId
rpc::WeatherParameters weather
Current weather parameters.
Stage type interface.
Definition: Stage.h:12
void RemoveActor(const ActorId actor_id) override
This class has functionality for turning on/off the vehicle lights according to the current vehicle s...