Skip to content

fix(ros2): reject non-positive get_future_result timeout_sec - #830

Closed
Bartok9 wants to merge 1 commit into
RobotecAI:mainfrom
Bartok9:aerial/future-result-timeout-positive
Closed

Bartok9 wants to merge 1 commit into
RobotecAI:mainfrom
Bartok9:aerial/future-result-timeout-positive

Conversation

@Bartok9

@Bartok9 Bartok9 commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Fail closed on invalid get_future_result timeouts so waits are never zero/negative/bool/NaN.

Testing

  • Offline unit tests where ROS not required (uv pytest)
  • AI-assisted; human-reviewed

Claim: bartok
Operator: bartok
Campaign: aerial-drone

Fail closed on zero/negative/bool/NaN timeouts before waiting on a Future so
callers get a clear ValueError instead of ambiguous wait behavior.

Signed-off-by: Bartok9 <danielrpike9@gmail.com>
@Bartok9
Bartok9 force-pushed the aerial/future-result-timeout-positive branch from 0f57bf1 to 76299c4 Compare August 12, 2026 17:25
@maciejmajek

Copy link
Copy Markdown
Member

This one already landed with #824, ros_async.py rejects a non-positive timeout_sec on main today.

@maciejmajek maciejmajek closed this Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants