maliput_viz
TrafficLightManager Class Referencefinal

Detailed Description

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...
 

Constructor & Destructor Documentation

◆ TrafficLightManager()

TrafficLightManager ( ignition::rendering::ScenePtr  _scene)

◆ ~TrafficLightManager()

~TrafficLightManager ( )
default

Destructor. All mesh destruction will be in charge of the scene's destructor.

Member Function Documentation

◆ Clear()

void Clear ( )

Destroy all meshes created by the manager explictly.

◆ CreateTrafficLights()

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.

Parameters
[in]_trafficLightsVector containing all the required traffic lights to render.

◆ SetBulbStates()

void SetBulbStates ( const maliput::api::rules::BulbStates &  _bulbStates)

Set the state of all the bulbs.

Parameters
[in]_bulbStatesUnordered map containing the new state of each bulb.

◆ Tick()

void Tick ( )

Change the material of the bulbs when a blink ocurrs.


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