launch icon indicating copy to clipboard operation
launch copied to clipboard

Feature request: wait for event with timeout

Open rotu opened this issue 6 years ago • 1 comments

It would be very nice to have a way to expect an event with a timeout. What I would like to do is have a launch file that runs an action when a LifecycleNode becomes active, but only waits 1 second before it gives up.

Something like this is already implemented in launch_testing.actions.test.Test, and it would be nice to have as a separate Action.

rotu avatar Jun 26 '19 22:06 rotu

Sounds reasonable to me. You could do it with a TimerAction and an EventHandler collaborating, but if you have to do it more than once or you want something like that in the XML frontend, a new action to do both things would be best.

wjwwood avatar Jul 25 '19 00:07 wjwwood