heethesh / lidar_camera_calibration

Light-weight camera LiDAR calibration package for ROS using OpenCV and PCL (PnP + LM optimization)
BSD 3-Clause "New" or "Revised" License
528 stars 117 forks source link

error #61

Closed farhad-dalirani closed 1 year ago

farhad-dalirani commented 1 year ago

Hello, I face this error:

src/lidar_camera_calibration/scripts/calibrate_camera_lidar.py", line 340, in calibrate rmse = np.sqrt(np.mean(error[:, 0] 2 + error[:, 1] 2)) IndexError: index 1 is out of bounds for axis 1 with size 1

ppwwwww commented 1 year ago

<340 line & 358 line >

error = np.reshape(error, (-1, 2)) # <-- add !!!!!!!!! rmse = np.sqrt(np.mean(error[:, 0] 2 + error[:, 1] 2))