This commit is contained in:
Your Name 2025-01-14 12:48:43 +01:00
parent a1a70c06e8
commit 66829235c3

View File

@ -15,8 +15,8 @@ def odom_callback(msg):
odom_trans.child_frame_id = "base_link" odom_trans.child_frame_id = "base_link"
# Set the translation # Set the translation
odom_trans.transform.translation.x = msg.pose.pose.position.x odom_trans.transform.translation.y = msg.pose.pose.position.x
odom_trans.transform.translation.y = msg.pose.pose.position.y odom_trans.transform.translation.x = msg.pose.pose.position.y
odom_trans.transform.translation.z = msg.pose.pose.position.z odom_trans.transform.translation.z = msg.pose.pose.position.z
# Set the rotation # Set the rotation