rclcpp
master
C++ ROS Client Library API
|
Go to the documentation of this file.
15 #ifndef RCLCPP__NODE_INTERFACES__NODE_BASE_INTERFACE_HPP_
16 #define RCLCPP__NODE_INTERFACES__NODE_BASE_INTERFACE_HPP_
32 namespace node_interfaces
70 rclcpp::Context::SharedPtr
108 rclcpp::CallbackGroup::SharedPtr
111 bool automatically_add_to_executor_with_node =
true) = 0;
116 rclcpp::CallbackGroup::SharedPtr
172 const std::string & name,
bool is_service,
bool only_expand =
false)
const = 0;
178 #endif // RCLCPP__NODE_INTERFACES__NODE_BASE_INTERFACE_HPP_
virtual bool callback_group_in_node(rclcpp::CallbackGroup::SharedPtr group)=0
Return true if the given callback group is associated with this node.
virtual rclcpp::Context::SharedPtr get_context()=0
Return the context of the node.
#define RCLCPP_SMART_PTR_ALIASES_ONLY(...)
Definition: macros.hpp:66
virtual std::shared_ptr< rcl_node_t > get_shared_rcl_node_handle()=0
Return the rcl_node_t node handle in a std::shared_ptr.
virtual const std::vector< rclcpp::CallbackGroup::WeakPtr > & get_callback_groups() const =0
Return list of callback groups associated with this node.
virtual const char * get_name() const =0
Return the name of the node.
virtual rclcpp::CallbackGroup::SharedPtr get_default_callback_group()=0
Return the default callback group.
CallbackGroupType
Definition: callback_group.hpp:43
This header provides the get_node_base_interface() template function.
Definition: allocator_common.hpp:24
#define RCLCPP_PUBLIC
Definition: visibility_control.hpp:50
Pure virtual interface class for the NodeBase part of the Node API.
Definition: node_base_interface.hpp:36
virtual std::string resolve_topic_or_service_name(const std::string &name, bool is_service, bool only_expand=false) const =0
Expand and remap a given topic or service name.
virtual bool get_use_intra_process_default() const =0
Return the default preference for using intra process communication.
virtual rclcpp::CallbackGroup::SharedPtr create_callback_group(rclcpp::CallbackGroupType group_type, bool automatically_add_to_executor_with_node=true)=0
Create and return a callback group.
virtual bool get_enable_topic_statistics_default() const =0
Return the default preference for enabling topic statistics collection.
virtual rcl_guard_condition_t * get_notify_guard_condition()=0
Return guard condition that should be notified when the internal node state changes.
virtual std::unique_lock< std::recursive_mutex > acquire_notify_guard_condition_lock() const =0
Acquire and return a scoped lock that protects the notify guard condition.
virtual rcl_node_t * get_rcl_node_handle()=0
Return the rcl_node_t node handle (non-const version).
virtual ~NodeBaseInterface()=default
virtual std::atomic_bool & get_associated_with_executor_atomic()=0
Return the atomic bool which is used to ensure only one executor is used.
virtual const char * get_fully_qualified_name() const =0
Return the fully qualified name of the node.
virtual const char * get_namespace() const =0
Return the namespace of the node.