mirror of
https://github.com/bjoernellens1/cps_rmp220_support.git
synced 2025-01-19 08:06:59 +00:00
update
This commit is contained in:
parent
df832c64b7
commit
a1a70c06e8
@ -10,7 +10,9 @@ def odom_callback(msg):
|
|||||||
odom_trans = TransformStamped()
|
odom_trans = TransformStamped()
|
||||||
odom_trans.header.stamp = msg.header.stamp
|
odom_trans.header.stamp = msg.header.stamp
|
||||||
odom_trans.header.frame_id = msg.header.frame_id
|
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
|
# Set the translation
|
||||||
odom_trans.transform.translation.x = msg.pose.pose.position.x
|
odom_trans.transform.translation.x = msg.pose.pose.position.x
|
||||||
|
Loading…
Reference in New Issue
Block a user