Ask Your Question
3

SimpleActionState behaviour if action server crashes

asked 2011-06-01 04:33:07 -0500

ju gravatar image

updated 2011-06-01 19:28:38 -0500

I am using SMACH with SimpleActionState, and I would like to be able to tell if the action server crashes during the execution. For the moment, if the server crashes, the SimpleActionState waits for the result for infinite time.

I thought about using exec_timeout when constructing the SimpleActionState, but didn't succeeded because if the server crashed, it will never manage the preempt request sent after the exec timeout.

Is there an alternative to handle these issues with the action server ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2011-06-02 05:02:11 -0500

eitan gravatar image

updated 2011-08-10 08:19:02 -0500

So, depending on the configuration being used for the action server, there is a way to tell if it crashes, but its not built into any of our tools. The default setting for a server is to publish status about its goals on the action_namespace/status topic at a rate of 5Hz (though it should be noted that there is a parameter that will allow users to run without the heartbeat). So, the easiest way to get the behavior you want at the moment is probably to subscribe to the status topic in your client node and take appropriate action on a crash, when you don't receive status for some amount of time.

UPDATE: Kei's question in the comments:

There's a camp of people who want to be able to disable sending of status on a heartbeat because they're worried about the network overhead associated. If you really care about a node going down, the proper solution is probably to set up a bond between the two nodes.

edit flag offensive delete link more

Comments

I believe this is VERY important feature, is there any reason that you did not support this as a default?
Kei Okada gravatar imageKei Okada ( 2011-08-10 06:45:34 -0500 )edit

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: 2011-06-01 04:33:07 -0500

Seen: 359 times

Last updated: Aug 10 '11