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

#include <traffic_lights.hpp>

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

Public Member Functions

template<typename NodeTypePointer >
 ConventionalTrafficLights (const NodeTypePointer &node_ptr, const std::shared_ptr< hdmap_utils::HdMapUtils > &hdmap_utils)
 
 ~ConventionalTrafficLights () 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

◆ ConventionalTrafficLights()

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

◆ ~ConventionalTrafficLights()

traffic_simulator::ConventionalTrafficLights::~ConventionalTrafficLights ( )
overridedefault

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