scenario_simulator_v2 C++ API
Public Member Functions | List of all members
simple_sensor_simulator::traffic_lights::TrafficLightsDetector Class Reference

Implements traffic lights detector mechanism simulation Currently it only allows to set traffic lights state and publish them on predefined topic Future implementations might, for example, publish only traffic lights that are in a specific FoV of a camera sensor Further refactoring would be required, however, to achieve this. More...

#include <traffic_lights_detector.hpp>

Public Member Functions

 TrafficLightsDetector (const std::shared_ptr< traffic_simulator::TrafficLightPublisherBase > &publisher)
 
auto updateFrame (const rclcpp::Time &current_ros_time, const simulation_api_schema::UpdateTrafficLightsRequest &request) -> void
 

Detailed Description

Implements traffic lights detector mechanism simulation Currently it only allows to set traffic lights state and publish them on predefined topic Future implementations might, for example, publish only traffic lights that are in a specific FoV of a camera sensor Further refactoring would be required, however, to achieve this.

Constructor & Destructor Documentation

◆ TrafficLightsDetector()

simple_sensor_simulator::traffic_lights::TrafficLightsDetector::TrafficLightsDetector ( const std::shared_ptr< traffic_simulator::TrafficLightPublisherBase > &  publisher)
inlineexplicit

Member Function Documentation

◆ updateFrame()

auto simple_sensor_simulator::traffic_lights::TrafficLightsDetector::updateFrame ( const rclcpp::Time &  current_ros_time,
const simulation_api_schema::UpdateTrafficLightsRequest &  request 
) -> void
inline

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