Start/Stop node at runtime?
Hi,
is there a nice ROS-way to start a node at runtime (using C++) and after some time stop it again (without using system() etc.)?
Hi,
is there a nice ROS-way to start a node at runtime (using C++) and after some time stop it again (without using system() etc.)?
At least for killing there is an xmlrpc shutdown call, which is what rosnode kill
uses. That is probably the ROS'iest way to do it. Sending SIGINT would also be OK as ROS installs a SIGINT handler.
I don't think so.
The ROS-way is for all nodes to run continuously until shutdown. If a node crashes, roslaunch
can respawn it for you.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2012-03-01 02:44:21 -0500
Seen: 4,626 times
Last updated: Mar 01 '12
Node created at runtime will not start
GUI with QT in Catkin [closed]
About listener.cpp tutorial. disobey cpp grammar?
default message handling [closed]
Time synchronized callback doesn't seem to work
Problem while running C++ and Python node together in ROS
import rospy when calling a python script from a c++ executable