Skip to content

Conversation

Flova
Copy link
Contributor

@Flova Flova commented Jun 18, 2025

Description

In contrast to the blocking tf2 Buffer Python API the async one did not feature any timeouts, severely hindering real world usability, due to the risk of deadlocks. Sadly there is no async sleep or timeout build into rclpy, so this PR adds a workaround using timers, which can be created with relatively low overhead. The issue is detailed in ros2/rclpy#1234 . The procedure from there is adapted to provide a timeout mechanism for tf. Due to the timers being created on the node, this only works when the optional node reference is provided.

In addition to that, I noticed that the transform is actually accidentally computed twice in the current implementation. This can be attributed to #664 changing the API without making use of it in the lookup functions.

Related issue: #438

Did you use Generative AI?

I have GitHub Copilot installed and use it for autocompletion.

Additional Information

@Flova Flova force-pushed the feature/async_timeout branch from e6c5dde to 7b2245c Compare June 18, 2025 15:06
@christophebedard christophebedard added the help wanted Extra attention is needed label Jun 26, 2025
@ros-discourse
Copy link

This pull request has been mentioned on Open Robotics Discourse. There might be relevant details there:

https://discourse.ros.org/t/ros-news-for-the-week-of-june-23rd-2025/44508/1

@Flova
Copy link
Contributor Author

Flova commented Aug 29, 2025

What is holding this PR back at the moment? :) @clalancette

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants