HKUST-Aerial-Robotics / VINS-Mobile

Monocular Visual-Inertial State Estimator on Mobile Phones
GNU General Public License v3.0
1.27k stars 524 forks source link

Jacobian question again #63

Closed vonzy closed 7 years ago

vonzy commented 7 years ago

Hello, I have read paper 'Tightly-Coupled Monocular Visual-Inertial Fusion for Autonomous Flight of Rotorcraft MAVs' ,'Technical Report VINS-Mono: A Robust and Versatile Monocular Visual-Inertial State Estimator' and 'IMU Preintegration on Manifold for Efficient Visual-Inertial Maximum-a-Posteriori Estimation' carefully, and found there are some differences on jacobian calculation between the code and the papers. In paper 'Tightly-Coupled Monocular Visual-Inertial Fusion for Autonomous Flight of Rotorcraft MAVs' ,the jacobian for p,v,q part is but in the code, it's Also, in the paper 'IMU Preintegration on Manifold for Efficient Visual-Inertial Maximum-a-Posteriori Estimation', the jacobians are There still some differences for bias part. I wonder what cause the difference. And I also noticed that in the code the jacobian for attitude is defined for two situations: I don't know what this is for, could you please explain it?

vonzy commented 7 years ago

@shaojie @qintony @PeiliangLi

qintonguav commented 7 years ago

The difference is caused by the different definition of variables and residual function. I suggest you derivate it by yourself then you can know the difference behind them.

vonzy commented 7 years ago

So why the jacobian of attitude is defined for two situation?

qintonguav commented 7 years ago

The comment version is used when bias estimation is off. We keep it in debug purpose, to valid the IMU correction is right.