maliput_viz
|
Class that creates a representation for traffic light and controls them.
#include <src/maliput_viz/plugins/traffic_light_manager.hh>
Public Member Functions | |
TrafficLightManager (ignition::rendering::ScenePtr _scene) | |
~TrafficLightManager ()=default | |
Destructor. All mesh destruction will be in charge of the scene's destructor. More... | |
void | CreateTrafficLights (const std::vector< const maliput::api::rules::TrafficLight * > &_trafficLights) |
Renders all bulbs and box covering them passed by parameter with their corresponding colors. More... | |
void | Clear () |
Destroy all meshes created by the manager explictly. More... | |
void | Tick () |
Change the material of the bulbs when a blink ocurrs. More... | |
void | SetBulbStates (const maliput::api::rules::BulbStates &_bulbStates) |
Set the state of all the bulbs. More... | |
TrafficLightManager | ( | ignition::rendering::ScenePtr | _scene | ) |
|
default |
Destructor. All mesh destruction will be in charge of the scene's destructor.
void Clear | ( | ) |
Destroy all meshes created by the manager explictly.
void CreateTrafficLights | ( | const std::vector< const maliput::api::rules::TrafficLight * > & | _trafficLights | ) |
Renders all bulbs and box covering them passed by parameter with their corresponding colors.
[in] | _trafficLights | Vector containing all the required traffic lights to render. |
void SetBulbStates | ( | const maliput::api::rules::BulbStates & | _bulbStates | ) |
Set the state of all the bulbs.
[in] | _bulbStates | Unordered map containing the new state of each bulb. |
void Tick | ( | ) |
Change the material of the bulbs when a blink ocurrs.