Quaternion rotation in 3D
-
Hi all,
I've got a IMU sensor. I get quaternion values from the sensor. I'm looking forward to a program to visualize the 3D rotation of the sensor. Any suggestion would be helpful.
Thanks in advance
-
@viniltc said in Quaternion rotation in 3D:
visualize the 3D rotation of the sensor
In which way? Just visualize the rotation angles or rotate an actual 3D object in a virtual environment?
-
You can use Qt3D (C++ or QML) for that.
You can use just a standard cube (other basic shapes are supported) or you could create your own mesh /
.obj
- file with e.g. Blender and import it.Qt3D https://doc.qt.io/qt-5/qt3d-index.html
Here are some examples https://doc.qt.io/qt-5/qt3d-examples.html.
I can recommend theShadowMap QML Example
(QML) and theBasic Shape C++ Example
You can set the transformation by using
QQuaternion
and your quaternion data directly
https://doc.qt.io/qt-5/qquaternion.html