How to convert rotation matrix to quaternion in PyBullet

Official Python bindings with a focus on reinforcement learning and robotics.
Post Reply
cttc
Posts: 2
Joined: Sat Oct 05, 2019 2:03 pm

How to convert rotation matrix to quaternion in PyBullet

Post by cttc »

Hi,

I found functions to convert between quaternions and Euler angles. And there is a function to convert quaternions into rotation matrix. Is there a function to convert a rotation matrix to a quaternion?
hyyou
Posts: 96
Joined: Wed Mar 16, 2016 10:11 am

Re: How to convert rotation matrix to quaternion in PyBullet

Post by hyyou »

You may find these links helpful. They are not Bullet-specific though.
http://www.opengl-tutorial.org/intermed ... aternions/
http://gamedev.stackexchange.com/questi ... quaternion
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA
Contact:

Re: How to convert rotation matrix to quaternion in PyBullet

Post by Erwin Coumans »

Only Euler <-> Quaternion conversions are exposed in PyBullet, not the Matrix <-> Quaternion yet.
Post Reply