ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Are there any other signal interrupts with roscpp besides the default ctrl+c sigint handler

asked 2011-04-08 07:39:55 -0600

yeasir gravatar image

updated 2014-01-28 17:09:30 -0600

ngrennan gravatar image

I have a ROS server that uses TCP/IP to communicate data. While the server is listening for connections, the program is in somewhat of a sleep mode and so I cannot use the ros::ok command to check if the process has been killed. Are there are any other signal interrupts that come with roscpp that can deal with this?


edit retag flag offensive close merge delete


Can you explain your use case a little more fully as to why ros::ok() does not work in your use case?
tfoote gravatar image tfoote  ( 2011-04-12 13:44:52 -0600 )edit

1 Answer

Sort by » oldest newest most voted

answered 2011-06-17 12:12:32 -0600

Straszheim gravatar image

There can be only one handler for any given signal at a time. ROS does install a handler for SIGINT. It is not possible to catch and handle SIGKILL.

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


Asked: 2011-04-08 07:39:55 -0600

Seen: 748 times

Last updated: Jun 17 '11