Skip to content

Return code of perform_command_mode_switch is discarded #2733

@domire8

Description

@domire8

RCLCPP_ERROR(get_logger(), "Error while performing mode switch.");

I have a design question for the controller manager. Why is it not doing something with the return value of perform_command_mode_switch? I think from a user perspective, it is already hard to differentiate between prepare_command_mode_switch and perform_command_mode_switch and the fact that one return value does something and not the other is a bit confusing.

Could you give an example of how different tasks should be distributed between prepare and perform? What if something goes wrong with the real hardware on perform_command_mode_switch, it seems there is no way to stop the switch anymore?

Thanks a lot for your expertise

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpersistentIssue won't get marked as stale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions