Skip to content
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

about accounting for the uncertainty of time offset in augmenting covariance #69

Closed
JzHuai0108 opened this issue May 28, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@JzHuai0108
Copy link

Is this line necessary?

@goldbattle goldbattle added bug Something isn't working debugging Might be a bug, looking into the issue and removed bug Something isn't working debugging Might be a bug, looking into the issue labels May 28, 2020
@goldbattle
Copy link
Member

I believe you are correct, as the code operates sequentially on the same matrix. The covariance will not be inconsistent, but just not as confident as possible. The second line here will already add the H*P_tofftoff*H^T since it is working on what the first line calculated.

state->_Cov.block(0, pose->id(), state->_Cov.rows(), 6) +=
     state->_Cov.block(0, state->_calib_dt_CAMtoIMU->id(), state->_Cov.rows(), 1) * dnc_dt.transpose();
state->_Cov.block(pose->id(), 0, 6, state->_Cov.rows()) +=
     dnc_dt * state->_Cov.block(state->_calib_dt_CAMtoIMU->id(), 0, 1, state->_Cov.rows());
state->_Cov.block(pose->id(), pose->id(), 6, 6) +=
     dnc_dt * state->_Cov(state->_calib_dt_CAMtoIMU->id(), state->_calib_dt_CAMtoIMU->id()) * dnc_dt.transpose();

Thus there shouldn't be a need to add the H*P_tofftoff*H^T at the end. This is probably from legacy code where we worked on a copy of the covariance in which this code above will be correct. Thanks for the close inspection.

@JzHuai0108
Copy link
Author

Thank you for the clarification. I would not mind if you close this issue for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants