From 37fb99ca2a739cebe6cdc70bc0dc18cfd511b2ee Mon Sep 17 00:00:00 2001 From: Abhishek Kashyap Date: Mon, 28 Oct 2024 22:01:22 +0100 Subject: [PATCH] specified quaternion order to be xyzw (#718) --- tf2_ros/src/tf2_echo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tf2_ros/src/tf2_echo.cpp b/tf2_ros/src/tf2_echo.cpp index 44bd777d7..3b72ca19f 100644 --- a/tf2_ros/src/tf2_echo.cpp +++ b/tf2_ros/src/tf2_echo.cpp @@ -150,8 +150,8 @@ int main(int argc, char ** argv) auto rotation = echo_transform.transform.rotation; std::cout << "- Translation: [" << translation.x << ", " << translation.y << ", " << translation.z << "]" << std::endl; - std::cout << "- Rotation: in Quaternion [" << rotation.x << ", " << rotation.y << ", " << - rotation.z << ", " << rotation.w << "]" << std::endl; + std::cout << "- Rotation: in Quaternion (xyzw) [" << rotation.x << ", " << rotation.y << + ", " << rotation.z << ", " << rotation.w << "]" << std::endl; tf2::Matrix3x3 mat(tf2::Quaternion{rotation.x, rotation.y, rotation.z, rotation.w});