From a1a70c06e87c498f547a00e5966301ca716fe6ef Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 14 Jan 2025 12:46:06 +0100 Subject: [PATCH] update --- nodes/odom_publisher_linus.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nodes/odom_publisher_linus.py b/nodes/odom_publisher_linus.py index 7aa8404..b502898 100644 --- a/nodes/odom_publisher_linus.py +++ b/nodes/odom_publisher_linus.py @@ -10,7 +10,9 @@ def odom_callback(msg): odom_trans = TransformStamped() odom_trans.header.stamp = msg.header.stamp odom_trans.header.frame_id = msg.header.frame_id - odom_trans.child_frame_id = msg.child_frame_id + + # Set child_frame_id explicitly (e.g., base_link) + odom_trans.child_frame_id = "base_link" # Set the translation odom_trans.transform.translation.x = msg.pose.pose.position.x