ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can find the API you're looking for in here:

http://docs.ros.org/melodic/api/tf/html/python/transformations.html

The function you need is called:

tf.transformations.quaternion_from_matrix(matrix)

click to hide/show revision 2
No.2 Revision

You can find the API you're looking for in here:

http://docs.ros.org/melodic/api/tf/html/python/transformations.html

The function you need is called:

tf.transformations.quaternion_from_matrix(matrix)

tf.transformations.quaternion_from_matrix(matrix)