Skip to content

StaticSingleThreadedExecutor uses spin_once in spin #2470

Open
@jmachowinski

Description

@jmachowinski

This change seems to have been made in #2142

https://github.com/ros2/rclcpp/blob/c5bc4b65284c71a86fc1758cc7eeb22204aa2bdd/rclcpp/src/rclcpp/executors/static_single_threaded_executor.cpp#L41C1-L43C4

  while (rclcpp::ok(this->context_) && spinning.load()) {
    this->spin_once_impl(std::chrono::nanoseconds(-1));
  }

I guess it should be

  while (rclcpp::ok(this->context_) && spinning.load()) {
    this->spin_all(std::chrono::nanoseconds(0));
  }

@mjcarroll @wjwwood

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions