Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controller Spawner couldn't find the expected controller_manager ROS interface #61

Open
Menginventor opened this issue Mar 13, 2022 · 4 comments

Comments

@Menginventor
Copy link

[WARN] [1647201164.026832, 0.000000]: Controller Spawner couldn't find the expected controller_manager ROS interface.
I using ROS Noetic
I check for "rosservice list | grep controller_manager" and got
/controller_manager/list_controller_types
/controller_manager/list_controllers
/controller_manager/load_controller
/controller_manager/reload_controller_libraries
/controller_manager/switch_controller
/controller_manager/unload_controller

Maybe something wrong about namespace. I don't know what to do.

@SuhrudhSarathy
Copy link

Hey!
Has this issue been solved? Some of the resources I referred to seem to suggest installation of additional packages (effort-controller, joint-state-controller) etc. I have installed all of them. These threads seemed quite relevant but does not solve the issue for me.
ros-simulation/gazebo_ros_demos#30
https://answers.ros.org/question/214712/gazebo-controller-spawner-warning/

Thanks

@ZZWang21
Copy link

SAME HERE.

@srrcanpolat
Copy link

I have been able to run the controller with changing few things.

To my knowledge, these two packages are required for the controller.

sudo apt install ros-<distro>-ros-control
sudo apt install ros-<distro>-ros-controllers

After installing the packages I made the following changes

first line in launch/controller.yaml file

(your_robot_name)_controller:

Changed to

(your_robot_name):

In urdf/(your_robot_name).gazebo file

<gazebo>
  <plugin name="control" filename="libgazebo_ros_control.so"/>
</gazebo>

Changed to

<gazebo>
  <plugin name="control" filename="libgazebo_ros_control.so">
    <robotNamespace>/(your_robot_name)</robotNamespace>
  </plugin>
</gazebo>

I hope it helps.

@iceikking888
Copy link

Yes, that change worked for me perfectly. The error went away!
As a check, I ran

rostopic list

and saw

/(your_robot_name)/(controller_name)/command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants