ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

[ROS2 Humble, Gazebo, ROS2 Control]: Can't activate controller. Command interface with does not exist

asked 2022-07-22 16:26:39 -0500

Avi gravatar image

We recently migrated to Humble and started noticing that our gazebo classic sim has started throwing this error:

[gzserver-1] [ERROR] [1658521442.995648735] [controller_manager]: Can't activate controller 'steering_front_right': Command interface with 'steering_front_right_joint/position' does not exist

I'm posting snippets from various files to build context. (Can add more if needed.)

A has the following piece:

load_front_right_steering_controller = ExecuteProcess(

A gazebo_controllers.yaml file has the controller config:

    update_rate: 100

      type: joint_state_broadcaster/JointStateBroadcaster

      type: position_controllers/JointGroupPositionController

Some debugging steps with ROS2 Control CLI:

  1. Checking HW interfaces:

ros2 control list_hardware_interfaces

command interfaces
  steering_front_right_joint/position [unavailable] [unclaimed]

on running ros2 control list_hardware_interfaces, all simulated HW interfaces show up as [unclaimed] and [unavailable].

  1. Checking controllers :

ros2 control list_controllers

joint_state_broadcaster[joint_state_broadcaster/JointStateBroadcaster] inactive  
steering_front_right[position_controllers/JointGroupPositionController] inactive

All controllers show up as inactive even though while launching the gazebo sim, I see this message (it loads successfully) [ros2-8] Sucessfully loaded controller steering_front_right into state active

  1. Manually setting controller_state: ros2 control set_controller_state <controller-name> active.

This throws the error: [gzserver-1] [ERROR] [1658521442.995648735] [controller_manager]: Can't activate controller 'steering_front_right': Command interface with 'steering_front_right_joint/position' does not exist

I've checked and double checked URDF files, ros2_control tags in the xacro files and the config files too. This same config works in Galactic (with ros2 control load_controller --set_state syntax changed to 'start').

Anyone else seeing this? Any help with this?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2022-08-10 19:30:11 -0500

Avi gravatar image

Something broke during ROS2 humble migration. I fixed this issue by

  1. Removing gazebo_ros2_control apt pkg
  2. Cloning gazebo_ros2_control and building from source.
edit flag offensive delete link more

answered 2022-09-07 16:24:23 -0500

Rufus gravatar image

updated 2022-09-07 16:32:36 -0500

To be precise, for gazebo classic, this commit and maybe this commit is needed, and for gz/ign gazebo, this commit and maybe this commit is needed. Not sure what the cause was.

edit flag offensive delete link more

Question Tools



Asked: 2022-07-22 16:09:31 -0500

Seen: 817 times

Last updated: Sep 07 '22