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

can we dynamically turn off respawn attribute?

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

golden_retriever gravatar image

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

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
0

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

gvdhoorn gravatar image

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

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

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.

golden_retriever gravatar image golden_retriever  ( 2018-10-22 02:14:03 -0500 )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 image gvdhoorn  ( 2018-10-22 02:26:34 -0500 )edit

Question Tools

Stats

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

Seen: 283 times

Last updated: Oct 22 '18