15 #ifndef RCLCPP__EXECUTORS__STATIC_SINGLE_THREADED_EXECUTOR_HPP_
16 #define RCLCPP__EXECUTORS__STATIC_SINGLE_THREADED_EXECUTOR_HPP_
22 #include "rclcpp/executor.hpp"
23 #include "rclcpp/executors/executor_entities_collection.hpp"
24 #include "rclcpp/executors/single_threaded_executor.hpp"
87 spin_some(std::chrono::nanoseconds max_duration = std::chrono::nanoseconds(0))
override;
106 spin_all(std::chrono::nanoseconds max_duration)
override;
123 spin_some_impl(std::chrono::nanoseconds max_duration,
bool exhaustive);
126 spin_once_impl(std::chrono::nanoseconds timeout)
override;
128 std::optional<rclcpp::WaitResult<rclcpp::WaitSet>>
129 collect_and_wait(std::chrono::nanoseconds timeout);
Coordinate the order and timing of available communication tasks.
virtual RCLCPP_PUBLIC void spin_once(std::chrono::nanoseconds timeout=std::chrono::nanoseconds(-1))
Collect work once and execute the next available work, optionally within a duration.
Interface for introspecting a wait set after waiting on it.
Static executor implementation.
RCLCPP_PUBLIC void spin_some(std::chrono::nanoseconds max_duration=std::chrono::nanoseconds(0)) override
Static executor implementation of spin some.
RCLCPP_PUBLIC void spin() override
Static executor implementation of spin.
virtual RCLCPP_PUBLIC ~StaticSingleThreadedExecutor()
Default destructor.
RCLCPP_PUBLIC void spin_all(std::chrono::nanoseconds max_duration) override
Static executor implementation of spin all.
bool execute_ready_executables(const rclcpp::executors::ExecutorEntitiesCollection &collection, rclcpp::WaitResult< rclcpp::WaitSet > &wait_result, bool spin_once)
Executes ready executables from wait set.
RCLCPP_PUBLIC StaticSingleThreadedExecutor(const rclcpp::ExecutorOptions &options=rclcpp::ExecutorOptions())
Default constructor. See the default constructor for Executor.
Versions of rosidl_typesupport_cpp::get_message_type_support_handle that handle adapted types.
Options to be passed to the executor constructor.
Represent the total set of entities for a single executor.