Skip to content

Commit

Permalink
specified quaternion order to be xyzw (#718)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek47kashyap authored Oct 28, 2024
1 parent 1b005c6 commit 37fb99c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tf2_ros/src/tf2_echo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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});

Expand Down

0 comments on commit 37fb99c

Please sign in to comment.