|
scenario_simulator_v2 C++ API
|
#include <traffic_lights.hpp>


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 |
| auto | getTrafficLight (const lanelet::Id traffic_light_id) -> TrafficLight & |
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 | 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::HdMapUtils > | hdmap_utils_ |
| const rclcpp::Clock::SharedPtr | clock_ptr_ |
| std::unordered_map< lanelet::Id, TrafficLight > | traffic_lights_map_ |
| const std::unique_ptr< TrafficLightMarkerPublisher > | marker_publisher_ptr_ |
| ConfigurableRateUpdater | rate_updater_ |
|
inlineexplicit |
|
overridedefault |