|
| MultiThreadedExecutor (const executor::ExecutorArgs &args=rclcpp::executor::create_default_executor_arguments()) |
|
virtual | ~MultiThreadedExecutor () |
|
void | spin () |
| Do work periodically as it becomes available to us. Blocking call, may block indefinitely. More...
|
|
size_t | get_number_of_threads () |
|
| Executor (const ExecutorArgs &args=create_default_executor_arguments()) |
| Default constructor. More...
|
|
virtual | ~Executor () |
| Default destructor. More...
|
|
virtual void | add_node (rclcpp::node_interfaces::NodeBaseInterface::SharedPtr node_ptr, bool notify=true) |
| Add a node to the executor. More...
|
|
virtual void | add_node (std::shared_ptr< rclcpp::Node > node_ptr, bool notify=true) |
| Convenience function which takes Node and forwards NodeBaseInterface. More...
|
|
virtual void | remove_node (rclcpp::node_interfaces::NodeBaseInterface::SharedPtr node_ptr, bool notify=true) |
| Remove a node from the executor. More...
|
|
virtual void | remove_node (std::shared_ptr< rclcpp::Node > node_ptr, bool notify=true) |
| Convenience function which takes Node and forwards NodeBaseInterface. More...
|
|
template<typename T = std::milli> |
void | spin_node_once (rclcpp::node_interfaces::NodeBaseInterface::SharedPtr node, std::chrono::duration< int64_t, T > timeout=std::chrono::duration< int64_t, T >(-1)) |
| Add a node to executor, execute the next available unit of work, and remove the node. More...
|
|
template<typename NodeT = rclcpp::Node, typename T = std::milli> |
void | spin_node_once (std::shared_ptr< NodeT > node, std::chrono::duration< int64_t, T > timeout=std::chrono::duration< int64_t, T >(-1)) |
| Convenience function which takes Node and forwards NodeBaseInterface. More...
|
|
void | spin_node_some (rclcpp::node_interfaces::NodeBaseInterface::SharedPtr node) |
| Add a node, complete all immediately available work, and remove the node. More...
|
|
void | spin_node_some (std::shared_ptr< rclcpp::Node > node) |
| Convenience function which takes Node and forwards NodeBaseInterface. More...
|
|
virtual void | spin_some () |
| Complete all available queued work without blocking. More...
|
|
virtual void | spin_once (std::chrono::nanoseconds timeout=std::chrono::nanoseconds(-1)) |
|
template<typename ResponseT , typename TimeT = std::milli> |
FutureReturnCode | spin_until_future_complete (std::shared_future< ResponseT > &future, std::chrono::duration< int64_t, TimeT > timeout=std::chrono::duration< int64_t, TimeT >(-1)) |
| Spin (blocking) until the future is complete, it times out waiting, or rclcpp is interrupted. More...
|
|
void | cancel () |
| Cancel any running spin* function, causing it to return. More...
|
|
void | set_memory_strategy (memory_strategy::MemoryStrategy::SharedPtr memory_strategy) |
| Support dynamic switching of the memory strategy. More...
|
|