Retrieve transform from message

asked 2017-05-05 03:06:46 -0600

ros9 gravatar image

How can one retrieve transformation matrix from the geometry message below:

t1 = geometry_msgs.msg.TransformStamped()
t1.header.stamp = rospy.Time.now()
t1.header.frame_id = "FRAME1"
t1.child_frame_id = "FRAME2"
t1.transform.translation = (, , )
t1.transform.rotation.tf.transformations.quaternion_from_euler(, , )
br.sendTransform(t1)

I seek a method like:

transform_from_message(t1)

edit retag flag offensive close merge delete