Hi,
I am solving a slam problem, where I have specified 15x1 residuals like
res = [pos, vel, rotation_vec, accel_bias, gyro_bias],
and I am using AutoDiffCostFunction. When I solve it, I can see the initial residuals are as expected, but the solver reports an error saying there are "-nan" in Jacobian, at iteration 0. From the output message I see all elements in 3 rotation_vec columns are "-nan" values. (please see the pic below)
Any suggestions of how to debug this? Is there any tools/util functions that I can take deeper look at how these Jacobians are derived, and where they went wrong?
Thank you,
Yan