launch
launch copied to clipboard
Feature request: wait for event with timeout
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.
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.