ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
5

how to delay escalation to sig-term after sending sig-int to roslaunch

asked 2011-09-28 19:01:46 -0600

hsu gravatar image

updated 2011-09-29 05:21:38 -0600

kwc gravatar image

When I control-c a roslaunch command, each node is terminated first with sig-ints. If the node fails to die after 10 seconds, sig-int is escalated to sig-term. Is there a way to stop or delay this escalation from happening?

This is useful when debugging examples like this one.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
3

answered 2011-09-29 05:22:17 -0600

kwc gravatar image

Right now this delay is not configurable, so changing this behavior means editing pmon.py in roslaunch directly. It would be a good future enhancement to make roslaunch more configurable.

edit flag offensive delete link more

Comments

pmon.py will work for now. Thanks.
hsu gravatar image hsu  ( 2011-09-30 11:42:36 -0600 )edit
looks like that's nodeprocess.py rather than pymon.py.
Asomerville gravatar image Asomerville  ( 2011-10-11 13:55:33 -0600 )edit
4

answered 2016-10-18 05:58:05 -0600

gijsje170 gravatar image

For kinetic this can be found in:

/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch

In the file nodeprocess.py there will be 2 variables on line 57 and 58.

_TIMEOUT_SIGINT = 15.0 #seconds

_TIMEOUT_SIGTERM = 2.0 #seconds

change these if needed

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-09-28 19:01:46 -0600

Seen: 2,956 times

Last updated: Oct 18 '16