15 #ifndef CONCEALER__PUBLISHER_WRAPPER_HPP_
16 #define CONCEALER__PUBLISHER_WRAPPER_HPP_
19 #include <rclcpp/rclcpp.hpp>
23 template <
typename MessageType>
27 typename rclcpp::Publisher<MessageType>::SharedPtr publisher;
30 auto operator()(
const MessageType & message)
const -> decltype(
auto)
32 return publisher->publish(message);
35 template <
typename NodeInterface>
38 autoware_interface.template create_publisher<MessageType>(topic, rclcpp::QoS(1).reliable()))
Definition: publisher_wrapper.hpp:25
auto operator()(const MessageType &message) const -> decltype(auto)
Definition: publisher_wrapper.hpp:30
PublisherWrapper(std::string topic, NodeInterface &autoware_interface)
Definition: publisher_wrapper.hpp:36
Definition: autoware.hpp:30
std::string string
Definition: junit5.hpp:26