From f2b58d7e26dbe11b0e07b60f88cbb8002b641d2b Mon Sep 17 00:00:00 2001 From: Kenzo Lobos-Tsunekawa Date: Tue, 5 Nov 2024 18:57:08 +0900 Subject: [PATCH] fix: the board poses were not being outputed Signed-off-by: Kenzo Lobos-Tsunekawa --- .../src/ceres_intrinsic_camera_calibrator_py.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/calibrators/intrinsic_camera_calibrator/ceres_intrinsic_camera_calibrator/src/ceres_intrinsic_camera_calibrator_py.cpp b/calibrators/intrinsic_camera_calibrator/ceres_intrinsic_camera_calibrator/src/ceres_intrinsic_camera_calibrator_py.cpp index 2a1a16d4..c22ffdef 100644 --- a/calibrators/intrinsic_camera_calibrator/ceres_intrinsic_camera_calibrator/src/ceres_intrinsic_camera_calibrator_py.cpp +++ b/calibrators/intrinsic_camera_calibrator/ceres_intrinsic_camera_calibrator/src/ceres_intrinsic_camera_calibrator_py.cpp @@ -142,8 +142,7 @@ calibrate( rvecs_eigen.resize(rvecs_cv.size()); tvecs_eigen.resize(tvecs_cv.size()); - for (std::size_t view_id = object_points_list_cv.size(); view_id < object_points_list_cv.size(); - view_id++) { + for (std::size_t view_id = 0; view_id < object_points_list_cv.size(); view_id++) { cv::cv2eigen(rvecs_cv[view_id], rvecs_eigen[view_id]); cv::cv2eigen(tvecs_cv[view_id], tvecs_eigen[view_id]); }