15 #ifndef RCLCPP__CALLBACK_GROUP_HPP_ 16 #define RCLCPP__CALLBACK_GROUP_HPP_ 33 namespace node_interfaces
40 namespace callback_group
90 add_subscription(
const rclcpp::SubscriptionBase::SharedPtr subscription_ptr);
94 add_timer(
const rclcpp::TimerBase::SharedPtr timer_ptr);
98 add_service(
const rclcpp::ServiceBase::SharedPtr service_ptr);
102 add_client(
const rclcpp::ClientBase::SharedPtr client_ptr);
117 #endif // RCLCPP__CALLBACK_GROUP_HPP_
Implementation of the NodeTimers part of the Node API.
Definition: node_timers.hpp:31
#define RCLCPP_DISABLE_COPY(...)
Definition: macros.hpp:26
void add_service(const rclcpp::ServiceBase::SharedPtr service_ptr)
const CallbackGroupType & type() const
std::vector< rclcpp::SubscriptionBase::WeakPtr > subscription_ptrs_
Definition: callback_group.hpp:107
CallbackGroupType
Definition: callback_group.hpp:43
std::mutex mutex_
Definition: callback_group.hpp:106
Definition: allocator_common.hpp:24
std::vector< rclcpp::ServiceBase::WeakPtr > service_ptrs_
Definition: callback_group.hpp:109
Implementation of the NodeServices part of the Node API.
Definition: node_services.hpp:32
Definition: callback_group.hpp:49
void add_subscription(const rclcpp::SubscriptionBase::SharedPtr subscription_ptr)
#define RCLCPP_SMART_PTR_DEFINITIONS(...)
Definition: macros.hpp:36
const std::vector< rclcpp::ServiceBase::WeakPtr > & get_service_ptrs() const
std::vector< rclcpp::TimerBase::WeakPtr > timer_ptrs_
Definition: callback_group.hpp:108
CallbackGroupType type_
Definition: callback_group.hpp:104
CallbackGroup(CallbackGroupType group_type)
void add_timer(const rclcpp::TimerBase::SharedPtr timer_ptr)
const std::vector< rclcpp::TimerBase::WeakPtr > & get_timer_ptrs() const
Implementation of the NodeTopics part of the Node API.
Definition: node_topics.hpp:36
std::vector< rclcpp::ClientBase::WeakPtr > client_ptrs_
Definition: callback_group.hpp:110
#define RCLCPP_PUBLIC
Definition: visibility_control.hpp:50
std::atomic_bool & can_be_taken_from()
const std::vector< rclcpp::ClientBase::WeakPtr > & get_client_ptrs() const
void add_client(const rclcpp::ClientBase::SharedPtr client_ptr)
std::atomic_bool can_be_taken_from_
Definition: callback_group.hpp:111
const std::vector< rclcpp::SubscriptionBase::WeakPtr > & get_subscription_ptrs() const