Ask Your Question
0

Start/Stop node at runtime?

asked 2012-03-01 08:44:21 -0500

Cav gravatar image Cav
190 9 11 18

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.)?

edit retag flag offensive close delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2012-03-01 11:36:53 -0500

dornhege gravatar image dornhege flag of Germany
15850 44 149 309

updated 2012-03-01 11:37:49 -0500

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.

Slave API

edit flag offensive delete publish link more
1

answered 2012-03-01 10:51:28 -0500

joq gravatar image joq
15404 89 167 292
http://www.austinrobot.co...

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.

edit flag offensive delete publish link more

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

subscribe to rss feed

Stats

Asked: 2012-03-01 08:44:21 -0500

Seen: 397 times

Last updated: Mar 01 '12