VINS-Fusion
VINS-Fusion copied to clipboard
Fix undefined behaviour in Estimator::clearState()
In class Estimator
:
pre_integrations,
last_marginalization_info
, tmp_pre_integration
are not initialized.
Because clearState()
is called in Estimator's constructor and uses these variables, it's undefined behavior.
Thank you @mlag This PR fix my problem when I try to to move Estimator
variable to local