Ask Your Question

Load controller service does not exist

asked 2021-03-12 04:53:40 -0600

ros_newbie96 gravatar image


I would like to load a controller. I wanted to ask what kind of executables i need to run before i can load a controller. Because someone needs to provide the load_controller service. I know that Gazebo does this, but is there a way to do this without using Gazebo?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-03-12 06:34:42 -0600

You should use ControllerManager class which provides this services. Other then that, if you want to use ros_control framework you probably need to implement your RobotHW Class (usually implements also ControllerManager). You can use FakeJoint implementation to fake the hardware. This is often used with MoveIt for off-line testing without simulation, i.e., with very rudimentary "simulation".

Let me know if you need additional information.

edit flag offensive delete link more


Thank you very much for your help, but I still have some troubles. I thought maybe there is an executable that I can just include in my roslaunch file. So far what I do in my roslaunch file is:

load the robot description and corrresponding semantic description start the robot state publisher load the arm_controller.yml (for ur5) start my can_driver node which connect to the real hardware and start the spawner to load and start the arm_controller

But the problem is that the spawner cannot spawn my arm_controller because the service does not exist. So what am I missing?

Thanks in advance.

ros_newbie96 gravatar image ros_newbie96  ( 2021-03-19 02:44:35 -0600 )edit

Do you have the code somewhere in a repository with public access? I don't see in your description where are you staring the controller manager. Which can-driver are you using? Is there a controller manager implementation?

destogl gravatar image destogl  ( 2021-03-25 07:32:55 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2021-03-12 04:53:40 -0600

Seen: 47 times

Last updated: Mar 12