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.)?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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.
Asked: 2012-03-01 02:44:21 -0600
Seen: 4,876 times
Last updated: Mar 01 '12
Programmatically get node's Namespace
how to spawn a model with c++ with different joint angles
How can I react to node/nodelet shutdown?
remove outliers in 2d point cloud
Change publishing rate in source code
Callback for a Ardrone Navdata Subscriber doesn't work
Multiple Arguments of a subscriber ROS indigo, arduino, C++
createTimer() replacement in eloquent