Skip to content

Commit

Permalink
Fixing bug with number of residual calculation.
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarmendezm committed Apr 8, 2024
1 parent e17b717 commit 119ccf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fuse_constraints/src/fixed_3d_landmark_constraint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ ceres::CostFunction* Fixed3DLandmarkConstraint::costFunction() const
{
// 2 Residuals Per 3D point
return new ceres::AutoDiffCostFunction<Fixed3DLandmarkCostFunctor, ceres::DYNAMIC, 3, 4, 4>(
new Fixed3DLandmarkCostFunctor(sqrt_information_, mean_, observations_, pts3d_), 2*pts3d_.rows());
new Fixed3DLandmarkCostFunctor(sqrt_information_, mean_, observations_, pts3d_), 2 * pts3d_.rows());
}

} // namespace fuse_constraints
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ void Fixed3DLandmarkSimpleCovarianceConstraint::print(std::ostream& stream) cons
ceres::CostFunction* Fixed3DLandmarkSimpleCovarianceConstraint::costFunction() const
{
return new ceres::AutoDiffCostFunction<Fixed3DLandmarkSimpleCovarianceCostFunctor, ceres::DYNAMIC, 3, 4, 4>(
new Fixed3DLandmarkSimpleCovarianceCostFunctor(sqrt_information_, mean_, observations_, pts3d_), pts3d_.rows());
new Fixed3DLandmarkSimpleCovarianceCostFunctor(sqrt_information_, mean_, observations_, pts3d_), 2 * pts3d_.rows());
}

} // namespace fuse_constraints
Expand Down

0 comments on commit 119ccf6

Please sign in to comment.