camera_2d_lidar_calibration
camera_2d_lidar_calibration copied to clipboard
IndexError: tuple index out of range
Hello, I'm using your code.
The following error occurs in roslaunch camera_2d_lidar_calibration reproduction.launch.
camera_topic : /usb_cam/image_raw/compressed lidar_topic : /scan
I am attaching the calibration result below and the yaml file as well.
Please reply quickly. Thank you.
Hi @Parkeunseok ,
May I know which version of ROS you are using?
I've no problem running it on ROS Melodic.
Hi @Parkeunseok ,
Can you try edit line 35 in reprojection.py to the followings?
objPoints = np.array(list(map(extract, points)))
I believe you are using ROS Noetic (Python 3), which has different map() output from ROS Melodic (Python 2).
안녕@Parkeunseok,
reprojection.py에서 35행을 다음과 같이 편집할 수 있습니까?
objPoints = np.array(list(map(extract, points)))
ROS Melodic(Python 2)과 다른 map() 출력을 가진 ROS Noetic(Python 3)을 사용하고 있다고 생각합니다.
I'm using ROS Noetic (Python 3).
objPoints = np.array(list(map(extract, points)))
Now you get this error. I'm a beginner in this part.
objPoints = np.array(list(map(extract, points)))
이제 이 오류가 발생합니다. 나는이 부분에서 초보자입니다.
i'm using opencv 4.2.0
Can you try to
print((int(round(img_points[i][0])),int(round(img_points[i][1]))))
before the cv2.circle?
I want to see what kind of output you are getting.
Can you try to
print((int(round(img_points[i][0])),int(round(img_points[i][1]))))
before the cv2.circle?
I want to see what kind of output you are getting.
It comes out as follows.
Hi @Parkeunseok ,
Did you properly calibrate your camera and lidar setup?
When the img_points value is too big, cv2.circle has problem parsing the argument.
안녕@Parkeunseok,
카메라와 라이더 설정을 올바르게 보정했습니까?
img_points 값이 너무 크면 cv2.circle이 인수를 구문 분석하는 데 문제가 있습니다.
the following lidar Data results were obt
ained.
the following lidar Data results were obtained.
May I know what is your calibration result?
Hi, I tried to calibrate using the data you provided, and the RMSE is 20 which is quite huge.
You can try to collect more data and collect the data properly to get a better calibration result.
Hi, I tried to calibrate using the data you provided, and the RMSE is 20 which is quite huge.
You can try to collect more data and collect the data properly to get a better calibration result.
I'll try it. Thank you.
Is this program a calibration of the lidar based on the camera coordinate system?
They have their own coordinate system.
Is the standard coordinate system for calibration a lidar or a camera? Which one is it?
- Do I adjust the lidar coordinate system based on the camera?
- Do I adjust the camera coordinate system based on the lidar?
Hi @Parkeunseok ,
Sorry for misunderstanding your question.
The calibration result is transformation from camera to lidar (position of lidar from camera coordinate system).
I'm a beginner in this field, so I'm sorry to ask you many questions.
-
I know that there is a calibration that fits the camera image to the lidar -> Customize the camera based on the lidar
-
I know that there is a calibration that fits the lidar pointcloud to the camera_image -> Customize the lidar based on the camera
May I know which one this is? I'm sorry to ask you the same question many times. I certainly don't understand.
Please tell me which one is correct, (1) or (2)
Ah, in this case it is 2.
Ah, in this case it is 2.
Thank you.