scenario_simulator_v2 C++ API
Public Member Functions | Static Public Member Functions | List of all members
traffic_simulator::TrafficLightPublisher< MessageType > Class Template Reference

#include <traffic_light_publisher.hpp>

Inheritance diagram for traffic_simulator::TrafficLightPublisher< MessageType >:
Inheritance graph
[legend]
Collaboration diagram for traffic_simulator::TrafficLightPublisher< MessageType >:
Collaboration graph
[legend]

Public Member Functions

template<typename NodeTypePointer >
 TrafficLightPublisher (const NodeTypePointer &node_ptr, const std::string &topic_name, const std::string &frame="camera_link")
 
 ~TrafficLightPublisher () override=default
 
auto publish (const rclcpp::Time &current_ros_time, const simulation_api_schema::UpdateTrafficLightsRequest &request) const -> void override
 
auto generateMessage (const rclcpp::Time &, const simulation_api_schema::UpdateTrafficLightsRequest &request, const std::string &) -> std::unique_ptr< traffic_simulator_msgs::msg::TrafficLightArrayV1 >
 
- Public Member Functions inherited from traffic_simulator::TrafficLightPublisherBase
virtual ~TrafficLightPublisherBase ()=default
 

Static Public Member Functions

static auto generateMessage (const rclcpp::Time &, const simulation_api_schema::UpdateTrafficLightsRequest &request, const std::string &frame="") -> std::unique_ptr< MessageType >
 

Constructor & Destructor Documentation

◆ TrafficLightPublisher()

template<typename MessageType >
template<typename NodeTypePointer >
traffic_simulator::TrafficLightPublisher< MessageType >::TrafficLightPublisher ( const NodeTypePointer &  node_ptr,
const std::string &  topic_name,
const std::string &  frame = "camera_link" 
)
inlineexplicit

◆ ~TrafficLightPublisher()

template<typename MessageType >
traffic_simulator::TrafficLightPublisher< MessageType >::~TrafficLightPublisher ( )
overridedefault

Member Function Documentation

◆ generateMessage() [1/2]

auto traffic_simulator::TrafficLightPublisher< traffic_simulator_msgs::msg::TrafficLightArrayV1 >::generateMessage ( const rclcpp::Time &  ,
const simulation_api_schema::UpdateTrafficLightsRequest &  request,
const std::string &   
) -> std::unique_ptr<traffic_simulator_msgs::msg::TrafficLightArrayV1>

◆ generateMessage() [2/2]

template<typename MessageType >
static auto traffic_simulator::TrafficLightPublisher< MessageType >::generateMessage ( const rclcpp::Time &  ,
const simulation_api_schema::UpdateTrafficLightsRequest &  request,
const std::string &  frame = "" 
) -> std::unique_ptr< MessageType >
static

◆ publish()

template<typename MessageType >
auto traffic_simulator::TrafficLightPublisher< MessageType >::publish ( const rclcpp::Time &  current_ros_time,
const simulation_api_schema::UpdateTrafficLightsRequest &  request 
) const -> void
inlineoverridevirtual

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