IMU issues
Your code is very good when it is run on android phone. I really like it. when I run it with imu of android phone. I can run it. but I cann't map correctly. the map is wrong. In your code. I was confusing with the follwing code:
EigenVector3F translationTemp = cameraPose2.getTranslation().toFloat(); translationTemp.setY(-translationTemp.getY()); translationTemp.setZ(-translationTemp.getZ()); KalmanGlobal.handleData(DataIMU.createPositionData(translationTemp));
EigenMatrix3F rotationTemp = cameraPose2.getRotation().toFloat();
rotationTemp.set(-rotationTemp.get(0, 1), 0, 1);
rotationTemp.set(-rotationTemp.get(1, 0), 1, 0);
rotationTemp.set(-rotationTemp.get(0, 2), 0, 2);
rotationTemp.set(-rotationTemp.get(2, 0), 2, 0);
KalmanGlobal.handleData(DataIMU.createOrientationData(rotationTemp));
I guess this code for the transform from cam to imu or the opposite?
Hi, unfortunately, the code is no longer maintained and is hosted here mainly for archival purpose. You can forward your question to the original author ([email protected]) or hope that someone using the code is able to help you.
I'll leave the issue open for now.