Robotics StackExchange | Archived questions

respawn controllers

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.

Thanks,

Antoine

Asked by arennuit on 2015-06-25 06:06:24 UTC

Comments

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.

Asked by gvdhoorn on 2015-06-25 09:24:30 UTC

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

Asked by arennuit on 2015-06-25 10:11:02 UTC

Answers