From c92cd9a9073c255388599495d2f86799ecafa1bb Mon Sep 17 00:00:00 2001 From: Stephan <1481786+stwirth@users.noreply.github.com> Date: Wed, 23 Nov 2022 03:57:15 +0100 Subject: [PATCH] Add parent frame to warning logs (#533) --- tf2/src/buffer_core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tf2/src/buffer_core.cpp b/tf2/src/buffer_core.cpp index e16a5174a..b2eb4877b 100644 --- a/tf2/src/buffer_core.cpp +++ b/tf2/src/buffer_core.cpp @@ -275,7 +275,7 @@ bool BufferCore::setTransform(const geometry_msgs::TransformStamped& transform_i } else { - CONSOLE_BRIDGE_logWarn((error_string+" for frame %s at time %lf according to authority %s").c_str(), stripped.child_frame_id.c_str(), stripped.header.stamp.toSec(), authority.c_str()); + CONSOLE_BRIDGE_logWarn((error_string+" for frame %s (parent %s) at time %lf according to authority %s").c_str(), stripped.child_frame_id.c_str(), stripped.header.frame_id.c_str(), stripped.header.stamp.toSec(), authority.c_str()); return false; } }