Ask Your Question
0

Shutdown rosout

asked 2013-06-26 09:40:57 -0500

kaoao gravatar image

updated 2014-04-20 14:06:45 -0500

ngrennan gravatar image

Hey, I have a ros application that has a GUI on top of it. When I close the window from the GUI, I call ros::shutdown() in all of my nodes. I checked to make sure I was killing all my nodes by using rosnode list. All my nodes are shutdown but rosout is still alive. Is there a way to get rosout to shutdown without SIGINT? I would like my program to exit cleanly when the GUI window closes.

Thanks!!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2013-06-26 10:01:55 -0500

tbh gravatar image

I think rosout is kept alive by the roscore process. If you didn't want to send a SIGINT, you could try the answer on this question and add required="true" to one of your nodes that shuts down. That's if the core was launched with the launch file, of course.

edit flag offensive delete link more

Comments

thanks, that works :D

kaoao gravatar image kaoao  ( 2013-06-27 03:46:19 -0500 )edit
1

answered 2013-06-26 09:57:50 -0500

updated 2013-06-26 09:58:25 -0500

rosout is started and stopped by roscore. You do not need to shut it down manually. In fact, if you did shut it down, roscore would restart it.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-06-26 09:40:57 -0500

Seen: 654 times

Last updated: Jun 26 '13