ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
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 -0500

yeasir gravatar image

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

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 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

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

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

Question Tools


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

Seen: 872 times

Last updated: Jun 17 '11