Ask Your Question

can we dynamically turn off respawn attribute?

asked 2018-10-21 23:37:08 -0600

updated 2018-10-22 02:16:54 -0600

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!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-10-22 02:00:48 -0600

gvdhoorn gravatar image

updated 2018-10-22 02:02:03 -0600

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?

edit flag offensive delete link more


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.

golden_retriever gravatar imagegolden_retriever ( 2018-10-22 02:14:03 -0600 )edit

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

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

gvdhoorn gravatar imagegvdhoorn ( 2018-10-22 02:26:34 -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


Asked: 2018-10-21 23:37:08 -0600

Seen: 33 times

Last updated: Oct 22 '18