5 from nav_msgs.msg
import Odometry
11 odomBroadcaster = tf.TransformBroadcaster()
14 position = (msg.pose.pose.position.x / 1000.0,
15 msg.pose.pose.position.y / 1000.0,
16 msg.pose.pose.position.z / 1000.0)
17 orientation = ( msg.pose.pose.orientation.x,
18 msg.pose.pose.orientation.y,
19 msg.pose.pose.orientation.z,
20 msg.pose.pose.orientation.w)
22 odomBroadcaster.sendTransform( position,
28 if __name__ ==
'__main__':
30 rospy.init_node(
'odom_baselink_tf')
32 rate = rospy.Rate(20.0)
34 rospy.Subscriber(
'/pose', Odometry, poseCallback)