Is there a library or quick function to calculate roll/pitch/yaw from a Quaternion? The Node.js Myo library only gives a raw quaternion and does not give roll/pitch/yaw, which Myo's other libraries seem to provide. The only javascript library that seemed to have such a function is Three.js, but unfortunately there doesn't seem to be a working implementation of Three.js for node...
Asked
Active
Viewed 502 times
1 Answers
0
Why not using Quaternion.js? With it it's quite simple to achieve:
var q = new Quaternion(...);
console.log(q.toEuler())

Robert Eisele
- 109
- 6