mirror of
https://github.com/bjoernellens1/cps_rmp220_support.git
synced 2025-01-18 23:56:59 +00:00
update
This commit is contained in:
parent
91c376089f
commit
d449eacee0
@ -25,6 +25,20 @@ def odom_callback(msg):
|
|||||||
# Publish the transform
|
# Publish the transform
|
||||||
tf_broadcaster.sendTransform(odom_trans)
|
tf_broadcaster.sendTransform(odom_trans)
|
||||||
|
|
||||||
|
# print debug info
|
||||||
|
rospy.loginfo("Position: x={}, y={}, z={}".format(
|
||||||
|
msg.pose.pose.position.x,
|
||||||
|
msg.pose.pose.position.y,
|
||||||
|
msg.pose.pose.position.z
|
||||||
|
))
|
||||||
|
|
||||||
|
rospy.loginfo("Orientation: x={}, y={}, z={}, w={}".format(
|
||||||
|
msg.pose.pose.orientation.x,
|
||||||
|
msg.pose.pose.orientation.y,
|
||||||
|
msg.pose.pose.orientation.z,
|
||||||
|
msg.pose.pose.orientation.w
|
||||||
|
))
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
rospy.init_node("tf2_broadcaster")
|
rospy.init_node("tf2_broadcaster")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user