Skip to content

StaticSingleThreadedExecutor's spin_some, spin_all and spin_once cannot use the base class implementation #1219

Closed

Description

@brawner

I've been expanding the unit tests of the executors for all three classes, and these methods in StaticSingleThreadedExecutor should not be using the base class implementation in rclcpp::Executor. Because StaticSingleThreadedExecutor derives and implements its own add_node and remove_node, the collection of nodes in rclcpp::Executor is not updated and so these spin variants won't do any work. Either add_node and remove_node need to call the base class implementations as well, which would currently throw an "This node already has an executor" exception or these variants need to be derived specifically for StaticSingleThreadedExecutor.

Activity

  1. dirk-thomas commented on Jul 30, 2020

    @dirk-thomas
    Member

    @brawner Can you comment what you think should happen on this ticket: assign it to you, assign it to someone else, enhancement for backlog, ...?

  2. self-assigned this
    on Jul 30, 2020
  3. added
    bug
    on Jul 30, 2020
  4. brawner commented on Jul 30, 2020

    @brawner
    ContributorAuthor

    It's not exactly an enhancement, after dealing with the backport in #1229, I'll assign it to someone else.

    Edit: for now assigned to me

  5. fujitatomoya commented on Nov 4, 2024

    @fujitatomoya
    Collaborator

    i think we can close this by #1338. CC: @mauropasse

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions