implemented perform_command_mode_switch override in Ros2ControlSystem#846
implemented perform_command_mode_switch override in Ros2ControlSystem#846ralphieraccoon wants to merge 9 commits into
Conversation
|
I'm not sure if discovering which command interfaces are claimed inside |
|
I would prefer that you test and eventually solve the problem in this PR, rather than committing something which is unfinished or buggy. |
That's fair, though at the moment I'm not sure the issue is fixable without alterations to |
ea27318 to
4b2aa16
Compare
Description
Reusing the solution from here for Gazebo to allow for multiple command interfaces. Implements the
perform_command_mode_switchmethod override to set joint control methods when controllers are activated/deactivated. Can't work out how to detect if a command interface is claimed insideRos2ControlSystem::init()so you either have to runswitch_controllersonce to call the function or start with a position controller.Related Issues
This pull request references the discussion #845 I started earlier.
Affected Packages
Tasks
Ros2ControlSystem::init()so it's all set up properly at the beginning without having to runswitch_controller.Additional context
Credit to @ksotebeer for the original PR for
gazebo_ros2_control.