Closed Ericsii closed 1 year ago
From the document for ros2_control, set_state
can only be configured
, active
https://control.ros.org/master/doc/ros2_control/ros2controlcli/doc/userdoc.html#load-controller
hi @Ericsii are you launching it directly or from a config package?
I just launched it directly. However, I think this error is just due to the CLI argument set_state
being changed in ros2_control
.
It doesn't seem to affect normal function in the simulation, just an error
I solve this error by updating this line to cmd=['ros2', 'control', 'load_controller', '--set-state', 'activte',
I think that's the part I forgot to fix in my pull request #109 . :cry: https://github.com/chvmp/champ/pull/109/files#diff-c5d4e542a85ef638ec11e688a2338ffad349a9f34e52c9279962e03e4fa5c70a
Changing champ/champ_gazebo/launch/gazebo.launch.py like this seems reasonable.
load_joint_state_controller = ExecuteProcess(
- cmd=['ros2', 'control', 'load_controller', '--set-state', 'start',
+ cmd=['ros2', 'control', 'load_controller', '--set-state', 'active',
'joint_states_controller'],
output='screen',
)
hey @Tiryoh . Do you mind sending a PR, please?
@grassjelly Sure!
https://github.com/chvmp/champ/pull/112 Could you have a look, @grassjelly?
thanks @Ericsii . Fixed here: https://github.com/chvmp/champ/pull/112 . Closing this for now. Thanks @Tiryoh for the PR
Thank you.
Error when launch
gazebo.launch.py