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

Load controller service does not exist

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

ros_newbie96 gravatar image

Hello,

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
0

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

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

Comments

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 -0500 )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 -0500 )edit

Question Tools

3 followers

Stats

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

Seen: 342 times

Last updated: Mar 12 '21