ros2 / ros2/launch

Feature request: wait for event with timeout

Open
#267 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
Dominant language
Python
Stars
155
Forks
182
Avg merge
2d 14h
Merged PRs (30d)
6

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading launch_testing.actions.test.Test and the existing launch action APIs to understand how event waiting and timeouts are represented. Define the separate Action's expected launch-file behavior, including the one-second timeout, and verify that it waits for a LifecycleNode activation event before giving up.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.