Function rclcpp::executors::ready_executables

Function Documentation

size_t rclcpp::executors::ready_executables(const ExecutorEntitiesCollection &collection, rclcpp::WaitResult<rclcpp::WaitSet> &wait_result, std::deque<rclcpp::AnyExecutable> &executables)

Build a queue of executables ready to be executed.

Iterates a list of entities and adds them to a queue if they are ready.

Parameters:
  • collection[in] Collection of entities corresponding to the current wait set.

  • wait_result[in] Result of rclcpp::WaitSet::wait corresponding to the collection.

  • queue[inout] of executables to append new ready executables to

Returns:

number of new ready executables