navigation: honor configured IMU bias in LeggedFixedLagSmoother#2515
Open
ChiyunNoh wants to merge 1 commit intoborglab:developfrom
Open
navigation: honor configured IMU bias in LeggedFixedLagSmoother#2515ChiyunNoh wants to merge 1 commit intoborglab:developfrom
ChiyunNoh wants to merge 1 commit intoborglab:developfrom
Conversation
Use params.imuBias for PIM construction/reset and initialize biasEstimate_ from params.imuBias to keep fixed_lag_single_bias behavior consistent with configured startup bias.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes an unintentional zero-bias initialization path in
LeggedFixedLagSmoother.The fixed-lag single-bias estimator now consistently uses the configured startup IMU bias from
params.imuBias.Specifically, this PR:
params.imuBiaswhen constructing the preintegration object (pim_)biasEstimate_fromparams.imuBiaspim_withparams_.imuBiasduring full-contact reinitialization instead of using a zero biasMotivation
LeggedEstimatorReplayExampleestimates an initial IMU bias and passes it throughparams.imuBias. However,LeggedFixedLagSmootherpreviously initialized some preintegration paths with a zero bias, even when a non-zero startup bias was configured.This made the
fixed_lag_single_biasvariant inconsistent with the configured initialization and could affect replay results when a non-zero initial bias is provided.Validation
Built and ran the relevant legged estimator target/tests locally:
cmake --build build -j6 --target LeggedEstimatorReplayExamplecmake --build build -j6 --target testLeggedEstimator./build/gtsam/navigation/tests/testLeggedEstimatorpasses with no test failures.