5 import roslib; roslib.load_manifest(
'peg')
10 if __name__ ==
'__main__':
12 print "Insert two frames" 15 rospy.init_node(
'tf_a')
16 listener = tf.TransformListener()
18 rate = rospy.Rate(1.0)
19 while not rospy.is_shutdown():
21 (trans,rot) = listener.lookupTransform(sys.argv[1], sys.argv[2], rospy.Time(0))
22 print trans,
"\n[rpy] ", tf.transformations.euler_from_quaternion(rot)
25 except (tf.LookupException, tf.ConnectivityException):