5#include <unordered_set>
14namespace traffic_manager {
49 void UpdateWorldInfo(
const double current_time,
const bool synchronous_mode);
51 void Update(
const unsigned long index)
override;
55 void Reset()
override;
This class has functionality for turning on/off the vehicle lights according to the current vehicle s...
rpc::VehicleLightStateList all_light_states
All vehicle light states.
void RemoveActor(const ActorId actor_id) override
void SetCachedLightState(const ActorId actor_id, const rpc::VehicleLightState::flag_type light_state)
bool light_states_refreshed
double last_weather_update
double last_light_states_update
Simulation time of the last refresh of each cached world query.
rpc::WeatherParameters weather
Current weather parameters.
ControlFrame & control_frame
const Parameters & parameters
const BufferMap & buffer_map
std::unordered_set< ActorId > missing_from_last_refresh
Vehicles the server left out of the list it last returned.
const std::vector< ActorId > & vehicle_id_list
void UpdateWorldInfo(const double current_time, const bool synchronous_mode)
Synchronous mode refreshes every step.
void Update(const unsigned long index) override
bool is_weather_enabled
Weather enabled.
std::vector< std::pair< ActorId, VehicleLightState::flag_type > > VehicleLightStateList
std::unordered_map< carla::ActorId, Buffer > BufferMap
std::vector< carla::rpc::Command > ControlFrame
This file contains definitions of common data structures used in traffic manager.