Skip to content

Document tf buffer and transform staleness threshold checks - #954

Merged
SteveMacenski merged 32 commits into
ros-navigation:rollingfrom
nirwester:docs-controller-transform-staleness-threshold
Nov 24, 2026
Merged

SteveMacenski merged 32 commits into
ros-navigation:rollingfrom
nirwester:docs-controller-transform-staleness-threshold

Conversation

@nirwester

Copy link
Copy Markdown
Collaborator

Basic Info

Info Please fill out this column
Ticket(s) this addresses ros-navigation/navigation2#6320
Does this PR contain AI-generated software? No

Documents the new transform_staleness_threshold parameter in the controller server.

@SteveMacenski SteveMacenski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets leave this open as we discuss next steps with your PR, which may include a utility and expanding the use of this param to other locales

@SteveMacenski SteveMacenski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need the migration guide entry for this (plan on expanding a bullet pointed list over time with the servers that contain it now)

@SteveMacenski

Copy link
Copy Markdown
Member

Precommit is failing

@nirwester
nirwester force-pushed the docs-controller-transform-staleness-threshold branch 2 times, most recently from b7a1f84 to 74bd27f Compare September 11, 2026 15:06
@mergify

mergify Bot commented Sep 16, 2026

Copy link
Copy Markdown

This pull request is in conflict. Could you fix it @nirwester?

@SteveMacenski

SteveMacenski commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

@nirwester please update for the scope of all your PRs

I think we should also create a new document which is our "Synchronization Strategy" which talks about our design patterns for time synchronization:

  • Sensor data is used and transformed as necessary at its provided capture time
  • Computed results with timestamps like paths, controls, poses are used and transformed with their respective timestamps
  • When a server or algorithm needs to find a current time and/or global pose transform, it does so & passes this stamp to be used for all operations downstream to ensure synchronization
  • etc (though that should cover the bases, no? I might be missing a case...)

What I'd like to also know from that audit is what APIs we tend to use for each. If there are consistent APIs (minus some outliers that could be updated) then that would be amazing to also have listed to make it abundantly clear what is used when, and why.

We have several transform / get pose APIs (https://github.com/ros-navigation/navigation2/blob/main/nav2_util/src/robot_utils.cpp) let alone the raw lookupTransform() / transform() API calls that would be good to wrap neatly up if possible. It would be my joy to clean up or provide extreme clarity of how and when to use the TF APIs (even better if they're all calling our wrappers). If we can get away from the wild-west use of TF, then it becomes much easier to control its uses in the future and make sure its always doing the right thing.

@nirwester
nirwester force-pushed the docs-controller-transform-staleness-threshold branch 2 times, most recently from 562041d to 8a2b56c Compare September 22, 2026 21:27
@SteveMacenski

Copy link
Copy Markdown
Member

Let me know when this is ready for me to take a look at

@nirwester
nirwester force-pushed the docs-controller-transform-staleness-threshold branch from 367b278 to 8770de9 Compare October 5, 2026 13:51
@mergify

mergify Bot commented Oct 9, 2026

Copy link
Copy Markdown

This pull request is in conflict. Could you fix it @nirwester?

@nirwester
nirwester force-pushed the docs-controller-transform-staleness-threshold branch from 8770de9 to 8ab959f Compare October 20, 2026 12:57
@nirwester nirwester changed the title Document controller transform staleness threshold Document tf buffer and transform staleness threshold checks Oct 20, 2026

@SteveMacenski SteveMacenski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

transform_staleness_threshold is repeated in most places; please homologate that language so it is identical in all locations so this is a consistently understood parameter.

@mergify

mergify Bot commented Oct 22, 2026

Copy link
Copy Markdown

This pull request is in conflict. Could you fix it @nirwester?

@nirwester
nirwester force-pushed the docs-controller-transform-staleness-threshold branch from 8ab959f to 40054eb Compare October 27, 2026 15:54
@mergify

mergify Bot commented Nov 5, 2026

Copy link
Copy Markdown

This pull request is in conflict. Could you fix it @nirwester?

@nirwester
nirwester force-pushed the docs-controller-transform-staleness-threshold branch from 40054eb to 295fff1 Compare November 20, 2026 18:33
SteveMacenski and others added 14 commits November 20, 2026 14:17
Signed-off-by: Marco Matteo Bassa <[email protected]>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SteveMacenski
SteveMacenski merged commit 9ca9a28 into ros-navigation:rolling Nov 24, 2026
5 checks passed
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