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

reload recompiled controller src with kill and spawn command

asked 2011-03-19 03:48:23 -0500

sam gravatar image

Hi, I found that I can use kill and spawn command to restart the same controller. That was great command to use. But how to reload new compiled controller without restart gazebo pr2 simulator? Thank you~

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-03-24 06:02:15 -0500

sglaser gravatar image

Hi sam,

The pr2_controller_manager program has a reload-libraries command. Running it will bring down all of the controllers, reload the libraries (and hence, the newly compiled code), and, if given the --restore option, it will reload your controllers.

Run: $ rosrun pr2_controller_manager pr2_controller_manager reload-libraries --restore

edit flag offensive delete link more


why I only reload the arm controller,but the head will move sometimes (not everytime) when I reload-libraries --restore? Thank you~
sam gravatar image sam  ( 2011-03-25 23:51:36 -0500 )edit
reload-libraries reloads ALL controllers.
sglaser gravatar image sglaser  ( 2011-03-28 14:38:32 -0500 )edit
how to only reload one controller on recompiled src?
sam gravatar image sam  ( 2011-03-31 03:03:11 -0500 )edit
The current system cannot reload only a single controller. It must reload all of them.
sglaser gravatar image sglaser  ( 2011-04-04 16:19:44 -0500 )edit

Question Tools


Asked: 2011-03-19 03:48:23 -0500

Seen: 447 times

Last updated: Mar 24 '11