ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A answers.ros.org
Ask Your Question
1

How to run controller_manager

asked 2014-12-06 23:15:32 -0600

Sendoh gravatar image

Hi All,

I use a launch file to load a controller:

 <node name="controller_spawner" pkg="controller_manager" type="spawner" respawn="false" output="screen" args="controller/twist"/>

When I run the launch file, the system said waiting for service controller_manager/load_controller.

But when I type rosservice call controller_manager/load_controller it told me that service is not available.

Do I need to run controller_manager first before calling that service? If yes, how I run controller_manager?

Thanks in advanced.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2014-12-09 06:34:48 -0600

Adolfo Rodriguez T gravatar image

The spawner script is one of the command-line tools offered by the controller_manager ROS package (doc), and it does _not_ start a controller_manager instance.

The controller_manageris typically instantiated inside your robot hardware abstraction (hardware_interface::RobotHW specialization). If using gazebo_ros_control, this is already done by the existing plugins (Tutorial), but if using on a custom abstraction, you have to do the setup yourself.

edit flag offensive delete link more

Comments

lucasw gravatar imagelucasw ( 2014-12-09 14:00:46 -0600 )edit

Can you reproduce the results of this tutorial? http://gazebosim.org/tutorials?tut=ro... If in indigo, you'll have to specify the <hardware_interface> element as a child of <joint>, not <actuator>, in your URDF transmissions.

Adolfo Rodriguez T gravatar imageAdolfo Rodriguez T ( 2014-12-10 01:42:24 -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

1 follower

Stats

Asked: 2014-12-06 23:15:32 -0600

Seen: 1,407 times

Last updated: Dec 09 '14