strayrobots / scanner

An app for collecting raw RGB-D scans on iOS devices.
MIT License
31 stars 6 forks source link

Stray Scanner quaternions #1

Open rwcohn opened 11 months ago

rwcohn commented 11 months ago

Not a bug, but a possible inconvenience to deal with for users expecting the quaternions to match transformations from ARKit's coordinate space.

The quaternions output by Stray Scanner can be reverted to ARKit's camera coordinate space by multiplying each quaternion q by the quaternion q' = qw=0, qi=1, qj=0, qk=0, i.e. quaternion_multiply(q, q'), which serves as an inversion of the x-axis rotation applied by Stray Scanner to ARKit's quaternions.