Skip to content

Commit

Permalink
remodify the bug for 'chang_x()' functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Joanna-HE committed Apr 4, 2021
1 parent a885ffe commit 90e5408
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
9 changes: 6 additions & 3 deletions IKFoM_toolkit/esekfom/esekfom.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1795,9 +1795,12 @@ class esekf{
{
x_ = input_state;

x_.build_S2_state();
x_.build_SO3_state();
x_.build_vect_state();
if((!x_.vect_state.size())&&(!x_.SO3_state.size())&&(!x_.S2_state.size()))
{
x_.build_S2_state();
x_.build_SO3_state();
x_.build_vect_state();
}
}

void change_P(cov &input_cov)
Expand Down
9 changes: 6 additions & 3 deletions Samples/FAST_LIO-stable/include/esekfom/esekfom.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1794,9 +1794,12 @@ class esekf{
void change_x(state &input_state)
{
x_ = input_state;
x_.build_S2_state();
x_.build_SO3_state();
x_.build_vect_state();
if((!x_.vect_state.size())&&(!x_.SO3_state.size())&&(!x_.S2_state.size()))
{
x_.build_S2_state();
x_.build_SO3_state();
x_.build_vect_state();
}
}

void change_P(cov &input_cov)
Expand Down

0 comments on commit 90e5408

Please sign in to comment.