Run a node from another node
Hello,
I think I have a bug on one of my nodes, responsible for parsing msgs from a serial port. While I don't find the bug I have a node that wait from the msgs and if the msgs doesn't arrive within a time-out I want to kill and relaunch the node.
How I can achieve this?
I'm using c++.
Thank you
Asked by metRo_ on 2015-09-24 11:29:22 UTC
Answers
You can either kill the binary with the usual system tools or do rosnode kill <node name>
.
The obvious solution for this problem would be to fix the actual bug.
Asked by dornhege on 2015-09-24 12:23:09 UTC
Comments
If you also start the node in launch-file with respawn="true", the node will automatically be restarted after you killed it. http://wiki.ros.org/roslaunch/XML/node
Asked by NEngelhard on 2015-09-24 13:27:04 UTC
Comments
Do you mean "kill" by "run" in the title?
Asked by NEngelhard on 2015-09-24 13:29:23 UTC
I mean run
Asked by metRo_ on 2015-10-01 07:01:51 UTC