rclcpp
master
C++ ROS Client Library API
|
Go to the documentation of this file.
15 #ifndef RCLCPP__EXECUTORS__STATIC_SINGLE_THREADED_EXECUTOR_HPP_
16 #define RCLCPP__EXECUTORS__STATIC_SINGLE_THREADED_EXECUTOR_HPP_
125 rclcpp::CallbackGroup::SharedPtr group_ptr,
126 rclcpp::node_interfaces::NodeBaseInterface::SharedPtr node_ptr,
127 bool notify =
true)
override;
136 rclcpp::CallbackGroup::SharedPtr group_ptr,
137 bool notify =
true)
override;
146 rclcpp::node_interfaces::NodeBaseInterface::SharedPtr node_ptr,
147 bool notify =
true)
override;
164 rclcpp::node_interfaces::NodeBaseInterface::SharedPtr node_ptr,
165 bool notify =
true)
override;
216 StaticExecutorEntitiesCollector::SharedPtr entities_collector_;
222 #endif // RCLCPP__EXECUTORS__STATIC_SINGLE_THREADED_EXECUTOR_HPP_
bool execute_ready_executables(bool spin_once=false)
Executes ready executables from wait set.
void add_node(rclcpp::node_interfaces::NodeBaseInterface::SharedPtr node_ptr, bool notify=true) override
Add a node to the executor.
#define RCLCPP_DISABLE_COPY(...)
Definition: macros.hpp:26
std::vector< rclcpp::CallbackGroup::WeakPtr > get_all_callback_groups() override
Get callback groups that belong to executor.
virtual void spin_once(std::chrono::nanoseconds timeout=std::chrono::nanoseconds(-1))
void add_callback_group(rclcpp::CallbackGroup::SharedPtr group_ptr, rclcpp::node_interfaces::NodeBaseInterface::SharedPtr node_ptr, bool notify=true) override
Add a callback group to an executor.
void spin_some_impl(std::chrono::nanoseconds max_duration, bool exhaustive)
virtual ~StaticSingleThreadedExecutor()
Default destrcutor.
void spin_some(std::chrono::nanoseconds max_duration=std::chrono::nanoseconds(0)) override
Static executor implementation of spin some.
Coordinate the order and timing of available communication tasks.
Definition: executor.hpp:65
std::vector< rclcpp::CallbackGroup::WeakPtr > get_automatically_added_callback_groups_from_nodes() override
Get callback groups that belong to executor.
This header provides the get_node_base_interface() template function.
Definition: allocator_common.hpp:24
#define RCLCPP_PUBLIC
Definition: visibility_control.hpp:50
void remove_callback_group(rclcpp::CallbackGroup::SharedPtr group_ptr, bool notify=true) override
Remove callback group from the executor.
Static executor implementation.
Definition: static_single_threaded_executor.hpp:58
#define RCLCPP_SMART_PTR_DEFINITIONS(...)
Definition: macros.hpp:36
Options to be passed to the executor constructor.
Definition: executor_options.hpp:28
void remove_node(rclcpp::node_interfaces::NodeBaseInterface::SharedPtr node_ptr, bool notify=true) override
Remove a node from the executor.
void spin() override
Static executor implementation of spin.
void spin_once_impl(std::chrono::nanoseconds timeout) override
StaticSingleThreadedExecutor(const rclcpp::ExecutorOptions &options=rclcpp::ExecutorOptions())
Default constructor. See the default constructor for Executor.
void spin_all(std::chrono::nanoseconds max_duration) override
Static executor implementation of spin all.
std::vector< rclcpp::CallbackGroup::WeakPtr > get_manually_added_callback_groups() override
Get callback groups that belong to executor.