CARLA
 
载入中...
搜索中...
未找到
VehicleLightStage.h
浏览该文件的文档.
1
2#pragma once
3
9
10namespace carla {
11namespace 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.
16private:
17 const std::vector<ActorId> &vehicle_id_list;
22 /// All vehicle light states
24 /// Current weather parameters
26
27public:
28 VehicleLightStage(const std::vector<ActorId> &vehicle_id_list,
29 const BufferMap &buffer_map,
31 const cc::World &world,
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
Stage type interface.
Definition Stage.h:12
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
rpc::WeatherParameters weather
Current weather parameters
VehicleLightStage(const std::vector< ActorId > &vehicle_id_list, const BufferMap &buffer_map, const Parameters &parameters, const cc::World &world, ControlFrame &control_frame)
const std::vector< ActorId > & vehicle_id_list
void Update(const unsigned long index) override
std::vector< std::pair< ActorId, VehicleLightState::flag_type > > VehicleLightStateList
std::vector< carla::rpc::Command > ControlFrame
std::unordered_map< carla::ActorId, Buffer > BufferMap
This file contains definitions of common data structures used in traffic manager.
Definition Carla.cpp:133