15 #ifndef RCLCPP__NODE_INTERFACES__NODE_TOPICS_INTERFACE_HPP_
16 #define RCLCPP__NODE_INTERFACES__NODE_TOPICS_INTERFACE_HPP_
23 #include "rclcpp/callback_group.hpp"
24 #include "rclcpp/macros.hpp"
25 #include "rclcpp/node_interfaces/detail/node_interfaces_helpers.hpp"
26 #include "rclcpp/node_interfaces/node_base_interface.hpp"
27 #include "rclcpp/node_interfaces/node_timers_interface.hpp"
28 #include "rclcpp/publisher.hpp"
29 #include "rclcpp/publisher_factory.hpp"
30 #include "rclcpp/subscription.hpp"
31 #include "rclcpp/subscription_factory.hpp"
32 #include "rclcpp/visibility_control.hpp"
36 namespace node_interfaces
51 rclcpp::PublisherBase::SharedPtr
53 const std::string & topic_name,
61 rclcpp::PublisherBase::SharedPtr publisher,
62 rclcpp::CallbackGroup::SharedPtr callback_group) = 0;
66 rclcpp::SubscriptionBase::SharedPtr
68 const std::string & topic_name,
76 rclcpp::SubscriptionBase::SharedPtr subscription,
77 rclcpp::CallbackGroup::SharedPtr callback_group) = 0;
82 get_node_base_interface()
const = 0;
87 get_node_timers_interface()
const = 0;
Encapsulation of Quality of Service settings.
Pure virtual interface class for the NodeBase part of the Node API.
Pure virtual interface class for the NodeTimers part of the Node API.
Pure virtual interface class for the NodeTopics part of the Node API.
virtual RCLCPP_PUBLIC std::string resolve_topic_name(const std::string &name, bool only_expand=false) const =0
Get a remapped and expanded topic name given an input name.
Versions of rosidl_typesupport_cpp::get_message_type_support_handle that handle adapted types.
Factory with functions used to create a MessageT specific PublisherT.
Factory containing a function used to create a Subscription<MessageT>.