Skip to content

Commit

Permalink
fix deprecation warning about ceres::IsNaN
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-reframe authored and schornakj committed Sep 26, 2024
1 parent 62ac8ba commit 3d7a1cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ class DualDHChainCostPose6D : public DualDHChainCost
T rot_diff = Eigen::Quaternion<T>(camera_to_target_measured_.cast<T>().linear())
.angularDistance(Eigen::Quaternion<T>(camera_to_target.linear()));

residual[3] = ceres::IsNaN(rot_diff) ? T(0.0) : T(orientation_weight_) * rot_diff;
residual[3] = ceres::isnan(rot_diff) ? T(0.0) : T(orientation_weight_) * rot_diff;

return true;
}
Expand Down

0 comments on commit 3d7a1cc

Please sign in to comment.