Skip to content

Deprecate all spin_xxx functions in rclcpp namespace instead of spin. #2675

Open
@fujitatomoya

Description

@fujitatomoya

Description

Comes from the discussion with Client WG, see meeting note for https://discourse.ros.org/t/next-client-library-wg-meeting-friday-8th-november-2024/40457/2

these functions promote a very bad pattern and have terrible performance, which may not be obvious without knowing their internal details.
In the implementation, any rclcpp::spin_xxx functions are called, it internally creates the Executor and destroys it every single time. this would be really performance issue for user application unless user does understand what they are doing with those functions.

Give deprecation warning and period those functions, and eventually removed from after next release.

in addition to this, we could also add a template to rclcpp::spin to take in the executor type.

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