8000 [BUG]: `MultiThreadedExecutor` in the driver where a single-threaded one would do · Issue #31 · waterlinked/waterlinked_dvl · GitHub
[go: up one dir, main page]

Skip to content

[BUG]: MultiThreadedExecutor in the driver where a single-threaded one would do #31

Open

Description

@advaypakhale

Issue Description

main() in waterlinked_dvl_driver.cpp uses MultiThreadedExecutor, but as written it does not seem to do anything over a single-threaded one. More of a simplification than a bug?

rclcpp::executors::MultiThreadedExecutor executor;

  • All the node callbacks are created without a callback group (L232-L284), so they share the node's default mutually-exclusive group. A MultiThreadedExecutor will not run them concurrently anyway.
  • By default all LifecycleNode callbacks are registered under the default callback group too.

So I believe a SingleThreadedExecutor would behave the same here and possibly provide some performance gains over a MultiThreadedExecutor.

Steps to Reproduce

N/A

Expected Behavior

Either use SingleThreadedExecutor since it is equivalent here, or, if concurrent in-flight commands were intended, set up reentrant or separate callback groups so the multithreading actually does something.

Error Message

Runtime Environment

Not environment specific

Additional Context

No response

Activity

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0