diff --git a/rct_optimizations/include/rct_optimizations/dh_chain_kinematic_calibration.h b/rct_optimizations/include/rct_optimizations/dh_chain_kinematic_calibration.h index 59b1c667..36a36124 100644 --- a/rct_optimizations/include/rct_optimizations/dh_chain_kinematic_calibration.h +++ b/rct_optimizations/include/rct_optimizations/dh_chain_kinematic_calibration.h @@ -400,7 +400,7 @@ class DualDHChainCostPose6D : public DualDHChainCost T rot_diff = Eigen::Quaternion(camera_to_target_measured_.cast().linear()) .angularDistance(Eigen::Quaternion(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; }