diff --git a/calibrators/intrinsic_camera_calibrator/ceres_intrinsic_camera_calibrator/include/ceres_intrinsic_camera_calibrator/distortion_coefficients_residual.hpp b/calibrators/intrinsic_camera_calibrator/ceres_intrinsic_camera_calibrator/include/ceres_intrinsic_camera_calibrator/distortion_coefficients_residual.hpp index b4bb5006..78636653 100644 --- a/calibrators/intrinsic_camera_calibrator/ceres_intrinsic_camera_calibrator/include/ceres_intrinsic_camera_calibrator/distortion_coefficients_residual.hpp +++ b/calibrators/intrinsic_camera_calibrator/ceres_intrinsic_camera_calibrator/include/ceres_intrinsic_camera_calibrator/distortion_coefficients_residual.hpp @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef CERES_INTRINSIC_CAMERA_CALIBRATOR__COEFFICIENTS_RESIDUAL_HPP_ -#define CERES_INTRINSIC_CAMERA_CALIBRATOR__COEFFICIENTS_RESIDUAL_HPP_ +#ifndef CERES_INTRINSIC_CAMERA_CALIBRATOR__DISTORTION_COEFFICIENTS_RESIDUAL_HPP_ +#define CERES_INTRINSIC_CAMERA_CALIBRATOR__DISTORTION_COEFFICIENTS_RESIDUAL_HPP_ #include #include @@ -88,31 +88,40 @@ struct DistortionCoefficientsResidual switch (distortion_coefficients) { case 0: - cost_function = new ceres::AutoDiffCostFunction(f); + cost_function = + new ceres::AutoDiffCostFunction(f); break; case 1: - cost_function = new ceres::AutoDiffCostFunction(f); + cost_function = + new ceres::AutoDiffCostFunction(f); break; case 2: - cost_function = new ceres::AutoDiffCostFunction(f); + cost_function = + new ceres::AutoDiffCostFunction(f); break; case 3: - cost_function = new ceres::AutoDiffCostFunction(f); + cost_function = + new ceres::AutoDiffCostFunction(f); break; case 4: - cost_function = new ceres::AutoDiffCostFunction(f); + cost_function = + new ceres::AutoDiffCostFunction(f); break; case 5: - cost_function = new ceres::AutoDiffCostFunction(f); + cost_function = + new ceres::AutoDiffCostFunction(f); break; case 6: - cost_function = new ceres::AutoDiffCostFunction(f); + cost_function = + new ceres::AutoDiffCostFunction(f); break; case 7: - cost_function = new ceres::AutoDiffCostFunction(f); + cost_function = + new ceres::AutoDiffCostFunction(f); break; case 8: - cost_function = new ceres::AutoDiffCostFunction(f); + cost_function = + new ceres::AutoDiffCostFunction(f); break; default: throw std::runtime_error("Invalid number of distortion coefficients"); @@ -126,4 +135,4 @@ struct DistortionCoefficientsResidual int rational_distortion_coeffs_; }; -#endif // CERES_INTRINSIC_CAMERA_CALIBRATOR__COEFFICIENTS_RESIDUAL_HPP_ +#endif // CERES_INTRINSIC_CAMERA_CALIBRATOR__DISTORTION_COEFFICIENTS_RESIDUAL_HPP_ diff --git a/calibrators/intrinsic_camera_calibrator/intrinsic_camera_calibrator/intrinsic_camera_calibrator/parameter.py b/calibrators/intrinsic_camera_calibrator/intrinsic_camera_calibrator/intrinsic_camera_calibrator/parameter.py index 411ad382..d61f0d1f 100644 --- a/calibrators/intrinsic_camera_calibrator/intrinsic_camera_calibrator/intrinsic_camera_calibrator/parameter.py +++ b/calibrators/intrinsic_camera_calibrator/intrinsic_camera_calibrator/intrinsic_camera_calibrator/parameter.py @@ -93,4 +93,4 @@ def parameters(self) -> dict: def get_parameters_values(self) -> dict: """Return the values of the Parameter objects from this class as a dictionary.""" with self.lock: - return {k: v.value for k, v in self.parameters().items()} \ No newline at end of file + return {k: v.value for k, v in self.parameters().items()}