Robotics StackExchange | Archived questions

can we dynamically turn off respawn attribute?

we have a node has respawn being true in the launch file, for debugging purpose, when the node dies, instead of shut down the whole stack, we would like to only turn off this attribute, like setting it to false dynamically, then use gdb to launch this node? do we have a command could help do so? Thanks in advance!

Asked by golden_retriever on 2018-10-21 23:37:08 UTC

Comments

Answers

No, I don't believe this is supported by the out-of-the-box roslaunch binary.

It evaluates the launch file (structure) once, sets parameters and then starts nodes.

If you need something like this you might want to take a look at the roslaunch Python library.


Edit: just noticed that you tagged your question with boxturtle. That ROS version has been EOL since .. forever. Are you sure that's the correct tag for your question?

Asked by gvdhoorn on 2018-10-22 02:00:48 UTC

Comments

Thanks gvdhoorn! I was required to choose one of these tags, actually i didn't know what do they mean, so just picked the first one. Sorry.

Asked by golden_retriever on 2018-10-22 02:14:03 UTC

Those tags are the names of the ROS releases that exist.

Which version of ROS are you using? Then use that tag.

Asked by gvdhoorn on 2018-10-22 02:26:34 UTC