15 #ifndef SIMPLE_SENSOR_SIMULATOR__SENSOR_SIMULATION__TRAFFIC_LIGHTS__TRAFFIC_LIGHTS_DETECTOR_HPP_
16 #define SIMPLE_SENSOR_SIMULATOR__SENSOR_SIMULATION__TRAFFIC_LIGHTS__TRAFFIC_LIGHTS_DETECTOR_HPP_
18 #include <rclcpp/rclcpp.hpp>
26 namespace traffic_lights
35 const std::shared_ptr<traffic_simulator::TrafficLightPublisherBase> publisher_;
39 const std::shared_ptr<traffic_simulator::TrafficLightPublisherBase> & publisher)
40 : publisher_(publisher)
45 const rclcpp::Time & current_ros_time,
46 const simulation_api_schema::UpdateTrafficLightsRequest & request) ->
void
48 publisher_->publish(current_ros_time, request);
Implements traffic lights detector mechanism simulation Currently it only allows to set traffic light...
Definition: traffic_lights_detector.hpp:34
TrafficLightsDetector(const std::shared_ptr< traffic_simulator::TrafficLightPublisherBase > &publisher)
Definition: traffic_lights_detector.hpp:38
auto updateFrame(const rclcpp::Time ¤t_ros_time, const simulation_api_schema::UpdateTrafficLightsRequest &request) -> void
Definition: traffic_lights_detector.hpp:44
Definition: constants.hpp:19