41 template <
typename MessageType>
49 RCLCPP_ERROR(
getLogger(),
"topic publisher with no topic name set. Skipping advertising.");
56 rclcpp::SensorDataQoS qos;
62 getLogger(),
"[" << this->
getName() <<
"] Client Publisher to topic: " << topicName);
69 template <
typename MessageType>
73 std::dynamic_pointer_cast<rclcpp::Publisher<MessageType>>(
pub_)->
publish(msg);
76 rclcpp::PublisherBase::SharedPtr
pub_;
rclcpp::Node::SharedPtr getNode()
virtual std::string getName() const
rclcpp::Logger getLogger()
std::optional< int > queueSize
virtual ~SmaccPublisherClient()
std::optional< rmw_qos_reliability_policy_t > reliability
void publish(const MessageType &msg)
std::optional< rmw_qos_durability_policy_t > durability
std::optional< std::string > topicName
rclcpp::PublisherBase::SharedPtr pub_
void configure(std::string topicName)