respawn controllers

asked 2015-06-25 06:06:24 -0500

arennuit gravatar image

updated 2015-06-25 06:07:04 -0500

Hi all,

My setup uses ros_control together with VRep for simulation. In order to start the demo I have a launch file which starts a node spawning the controllers I use (node spawner from package controller_manager) and I then start vrep manually.

This work fine but every time I close Vrep and reopen it I need to kill roslaunch and relaunch my launch file. This is because the spawner node has done its job once and then disappeared so it no longer can spawn the controllers again.

Is there a way to have my controllers respawned when I close and reopen Vrep without needing to call the launch file. I have tried the respawn="true" option but it does not work.



edit retag flag offensive close merge delete


Dumb suggestion perhaps: take the controller spawning out of the main launch file? Then you can restart it as often as you want without having to take down the rest of your graph. Right, that is what you do. Nm.

gvdhoorn gravatar image gvdhoorn  ( 2015-06-25 09:24:30 -0500 )edit

@gvdhoorn: you are right, this is already roughly my current workaround.

arennuit gravatar image arennuit  ( 2015-06-25 10:11:02 -0500 )edit