scenario_simulator_v2 C++ API
Public Member Functions | Protected Types | Protected Attributes | List of all members
traffic_simulator::TrafficLightManager Class Reference

#include <traffic_light_manager.hpp>

Public Member Functions

 TrafficLightManager (const std::shared_ptr< hdmap_utils::HdMapUtils > &hdmap)
 
auto getTrafficLight (const lanelet::Id traffic_light_id) -> TrafficLight &
 
auto getTrafficLightIds () const -> const lanelet::Ids
 
auto getTrafficLights () const -> const TrafficLightMap &
 
auto getTrafficLights () -> TrafficLightMap &
 
auto getTrafficLights (const lanelet::Id lanelet_id) -> std::vector< std::reference_wrapper< TrafficLight >>
 
auto hasAnyLightChanged () -> bool
 
auto generateUpdateTrafficLightsRequest () -> simulation_api_schema::UpdateTrafficLightsRequest
 

Protected Types

using TrafficLightMap = std::unordered_map< lanelet::Id, TrafficLight >
 

Protected Attributes

TrafficLightMap traffic_lights_
 
const std::shared_ptr< hdmap_utils::HdMapUtilshdmap_
 

Member Typedef Documentation

◆ TrafficLightMap

using traffic_simulator::TrafficLightManager::TrafficLightMap = std::unordered_map<lanelet::Id, TrafficLight>
protected

Constructor & Destructor Documentation

◆ TrafficLightManager()

traffic_simulator::TrafficLightManager::TrafficLightManager ( const std::shared_ptr< hdmap_utils::HdMapUtils > &  hdmap)
explicit

Member Function Documentation

◆ generateUpdateTrafficLightsRequest()

auto traffic_simulator::TrafficLightManager::generateUpdateTrafficLightsRequest ( ) -> simulation_api_schema::UpdateTrafficLightsRequest

◆ getTrafficLight()

auto traffic_simulator::TrafficLightManager::getTrafficLight ( const lanelet::Id  traffic_light_id) -> TrafficLight &

◆ getTrafficLightIds()

auto traffic_simulator::TrafficLightManager::getTrafficLightIds ( ) const -> const lanelet::Ids

◆ getTrafficLights() [1/3]

auto traffic_simulator::TrafficLightManager::getTrafficLights ( ) -> TrafficLightMap &

◆ getTrafficLights() [2/3]

auto traffic_simulator::TrafficLightManager::getTrafficLights ( ) const -> const TrafficLightMap &

◆ getTrafficLights() [3/3]

auto traffic_simulator::TrafficLightManager::getTrafficLights ( const lanelet::Id  lanelet_id) -> std::vector<std::reference_wrapper<TrafficLight>>

◆ hasAnyLightChanged()

auto traffic_simulator::TrafficLightManager::hasAnyLightChanged ( ) -> bool

Member Data Documentation

◆ hdmap_

const std::shared_ptr<hdmap_utils::HdMapUtils> traffic_simulator::TrafficLightManager::hdmap_
protected

◆ traffic_lights_

TrafficLightMap traffic_simulator::TrafficLightManager::traffic_lights_
protected

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