Skip to content

fix(ros2): precise TF timeout and API cleanup on connector shutdown#799

Open
Bartok9 wants to merge 1 commit into
RobotecAI:mainfrom
Bartok9:salvage/rai-775-ros2-cleanup
Open

fix(ros2): precise TF timeout and API cleanup on connector shutdown#799
Bartok9 wants to merge 1 commit into
RobotecAI:mainfrom
Bartok9:salvage/rai-775-ros2-cleanup

Conversation

@Bartok9

@Bartok9 Bartok9 commented Jul 11, 2026

Copy link
Copy Markdown

Summary

  • Fix get_transform timeout to honor fractional seconds via Duration(seconds=, nanoseconds=).
  • Add ServiceAPI.shutdown(); ensure topic shutdown destroys publishers/subscriptions.
  • Connector shuts down topic/service/action APIs before node destruction; rclpy.shutdown() only if this connector auto-inited rclpy.

Motivation

Resource teardown and sub-second TF timeouts were incomplete on main.

Salvage of #775 by @maciejmajek — rebased to main (skipped version bump / lockfile churn from the original PR).

Verification

  • Focused re-read of connector/topic/service shutdown paths
  • No public lockfile / version dance in this salvage

Attribution

Salvage of #775 by @maciejmajek — rebased to main

Salvage of RobotecAI#775 by @maciejmajek — rebased to main.

- Duration uses seconds+nanoseconds for fractional timeouts
- ServiceAPI.shutdown destroys services/clients
- TopicAPI.shutdown clears publishers and subscriptions
- Connector shuts down APIs before destroying the node and only
  rclpy.shutdown() when it initialized the context
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.

1 participant