-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Solving Sophus -nan error #608
Comments
I tried to do this, but it can not work for me:( |
I found out another issue of the same type after this modification too, I found out it was in the ImuTypes.cc file in the GetDeltaRotation function.
I've probably done the worst way of solvng it, but it works for me at least now.
If someone found out a better solution (because there surely are many), please drop it here |
I've found the cause of this problem, at least for me, it is because of the confused timestamp of IMU message...Thanks~ |
hi, could you describe the reason in detail? what do u mean by confused timestamp? thx |
I found this error happens when the IMU begin to initialize the dirG -= (*itKF)->mPrevKF->GetImuRotation() * (*itKF)->mpImuPreintegrated->GetUpdatedDeltaVelocity();
Rwg = Sophus::SO3f::exp(vzg).matrix(); reports this "sophus exp" error because However, I can't figure out why now. |
I made a silly mistake. I forgot to clear the IMU measurement before extracting measurements between two frames. Thus, the preintegration start from the 1st data, which leads to |
can you tell me details? |
you can check your imu data timestamp order. |
I had the same problem, thanks for sharing! |
#730 helped with this for me. |
I got a Sophus error in witch I got nan values in a quaternion on a run that crash it.
I search in the issues here to see if it was a reccurent problem and I found out it was (in #439 and #451 at least), and didn't find any solution here.
So I searched out in the ORB_SLAM3 code for reasons of this issue and found out that it was caused by a division by 0 in the Sim3Solver.cc file in the ComputeSim3 function at the end of the Part 4.
must be replaced by :
It seems the vec vector can be full of 0 some times and with this the error no longer appear (at least for me)
The text was updated successfully, but these errors were encountered: