Skip to content

Commit

Permalink
cppcheck fixes in examples
Browse files Browse the repository at this point in the history
Signed-off-by: artivis <[email protected]>
  • Loading branch information
artivis committed Jan 26, 2025
1 parent 759597a commit 364a596
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion examples/bundle_sam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,6 @@ int main()
add_beacon_factor<2, 2>(X, measurements[2][2], S, r.segment<Dim>(row), J.block<Dim, BundleT::DoF>(row, 0));
row += Dim;
add_beacon_factor<2, 4>(X, measurements[2][4], S, r.segment<Dim>(row), J.block<Dim, BundleT::DoF>(row, 0));
row += Dim;

// 4. Solve -----------------------------------------------------------------

Expand Down
8 changes: 4 additions & 4 deletions examples/se2_localization_ukfm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ struct Weights
w0 = m / (ml) + Scalar(3) - alpha * alpha;
}

Scalar sqrt_d_lambda;
Scalar wj;
Scalar wm;
Scalar w0;
Scalar sqrt_d_lambda = Scalar(0);
Scalar wj = Scalar(0);
Scalar wm = Scalar(0);
Scalar w0 = Scalar(0);
};

using Weightsd = Weights<double>;
Expand Down

0 comments on commit 364a596

Please sign in to comment.