scenario_simulator_v2 C++ API
Public Member Functions | List of all members
traffic_simulator::V2ITrafficLights Class Reference

#include <traffic_lights.hpp>

Inheritance diagram for traffic_simulator::V2ITrafficLights:
Inheritance graph
[legend]
Collaboration diagram for traffic_simulator::V2ITrafficLights:
Collaboration graph
[legend]

Public Member Functions

template<typename NodeTypePointer >
 V2ITrafficLights (const NodeTypePointer &node_ptr, const std::shared_ptr< hdmap_utils::HdMapUtils > &hdmap_utils, const std::string &architecture_type)
 
 ~V2ITrafficLights () override=default
 
- Public Member Functions inherited from traffic_simulator::TrafficLightsBase
template<typename NodeTypePointer >
 TrafficLightsBase (const NodeTypePointer &node_ptr, const std::shared_ptr< hdmap_utils::HdMapUtils > &hdmap_utils)
 
virtual ~TrafficLightsBase ()=default
 
auto startUpdate (const double update_rate) -> void
 
auto resetUpdate (const double update_rate) -> void
 
auto isAnyTrafficLightChanged () const -> bool
 
auto isRequiredStopTrafficLightState (const lanelet::Id traffic_light_id) -> bool
 
auto compareTrafficLightsState (const lanelet::Id lanelet_id, const std::string &state) -> bool
 
auto setTrafficLightsColor (const lanelet::Id lanelet_id, const traffic_simulator::TrafficLight::Color &color) -> void
 
auto setTrafficLightsState (const lanelet::Id lanelet_id, const std::string &state) -> void
 
auto setTrafficLightsConfidence (const lanelet::Id lanelet_id, const double confidence) -> void
 
auto getTrafficLightsComposedState (const lanelet::Id lanelet_id) -> std::string
 
auto generateUpdateTrafficLightsRequest () const -> simulation_api_schema::UpdateTrafficLightsRequest
 

Additional Inherited Members

- Protected Member Functions inherited from traffic_simulator::TrafficLightsBase
auto isTrafficLightAdded (const lanelet::Id traffic_light_id) const -> bool
 
auto addTrafficLight (const lanelet::Id traffic_light_id) -> void
 
auto getTrafficLight (const lanelet::Id traffic_light_id) -> TrafficLight &
 
auto getTrafficLights (const lanelet::Id lanelet_id) -> std::vector< std::reference_wrapper< TrafficLight >>
 
- Protected Attributes inherited from traffic_simulator::TrafficLightsBase
const std::shared_ptr< hdmap_utils::HdMapUtilshdmap_utils_
 
const rclcpp::Clock::SharedPtr clock_ptr_
 
std::unordered_map< lanelet::Id, TrafficLighttraffic_lights_map_
 
const std::unique_ptr< TrafficLightMarkerPublishermarker_publisher_ptr_
 
ConfigurableRateUpdater rate_updater_
 

Constructor & Destructor Documentation

◆ V2ITrafficLights()

template<typename NodeTypePointer >
traffic_simulator::V2ITrafficLights::V2ITrafficLights ( const NodeTypePointer &  node_ptr,
const std::shared_ptr< hdmap_utils::HdMapUtils > &  hdmap_utils,
const std::string &  architecture_type 
)
inlineexplicit

◆ ~V2ITrafficLights()

traffic_simulator::V2ITrafficLights::~V2ITrafficLights ( )
overridedefault

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