Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suppress spam in canTransform #502

Closed
wants to merge 1 commit into from

Conversation

grishalipenko
Copy link

suppress spam of "Warning: Invalid frame ..." if timeout > 0 and errstr != nullptr`

@grishalipenko
Copy link
Author

resolve #501

@clalancette clalancette self-assigned this Feb 17, 2022
@jacobperron
Copy link
Member

jacobperron commented Apr 21, 2022

I suggest we pass in a temporary string to these calls too, otherwise callers have no choice but to suffer the spam if they call lookupTransform:

canTransform(target_frame, source_frame, lookup_time, timeout);

canTransform(target_frame, target_time, source_frame, source_time, fixed_frame, timeout);

@gonzodepedro
Copy link
Contributor

gonzodepedro commented May 9, 2022

There are code style divergences:

--- src/buffer.cpp
+++ src/buffer.cpp.uncrustify
@@ -149,2 +149,3 @@
-    !canTransform(target_frame, source_frame, time,
-                  tf2::Duration(std::chrono::nanoseconds::zero()), errstr) &&
+    !canTransform(
+      target_frame, source_frame, time,
+      tf2::Duration(std::chrono::nanoseconds::zero()), errstr) &&
@@ -178,2 +179,3 @@
-    !canTransform(target_frame, target_time, source_frame, source_time, fixed_frame,
-                  tf2::Duration(std::chrono::nanoseconds::zero()), errstr) &&
+    !canTransform(
+      target_frame, target_time, source_frame, source_time, fixed_frame,
+      tf2::Duration(std::chrono::nanoseconds::zero()), errstr) &&

@audrow audrow changed the base branch from ros2 to rolling June 28, 2022 14:18
@jacobperron
Copy link
Member

Replaced by #529

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.

4 participants