Skip to content

Make ros2 topic delay precision configurable - #1273

Open
sylvesterkaczmarek wants to merge 1 commit into
ros2:rollingfrom
sylvesterkaczmarek:fix-1214-topic-delay-precision
Open

Make ros2 topic delay precision configurable#1273
sylvesterkaczmarek wants to merge 1 commit into
ros2:rollingfrom
sylvesterkaczmarek:fix-1214-topic-delay-precision

Conversation

@sylvesterkaczmarek

@sylvesterkaczmarek sylvesterkaczmarek commented Aug 20, 2026

Copy link
Copy Markdown

Summary

Addresses the output-precision part of #1214.

Add --precision to ros2 topic delay so users measuring millisecond-scale delays can request more decimal places for the average, minimum, and maximum values.

The default remains 3 decimal places, preserving existing output. Standard deviation keeps its existing 5-decimal formatting.

Example:

ros2 topic delay /camera/image --precision 6

Testing

Added focused coverage for default and custom precision formatting.

Did you use Generative AI?

Yes. AI was used to assist with tests.

Add a --precision option for average, minimum, and maximum delay output while preserving the existing three-decimal default.

Add focused tests for default and custom precision formatting.

Signed-off-by: Sylvester Kaczmarek <16242628+sylvesterkaczmarek@users.noreply.github.com>
@mergify

mergify Bot commented Aug 20, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

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