-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IndexError: tuple index out of range #3
Comments
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). |
I'm using ROS Noetic (Python 3). |
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. |
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. |
the following lidar Data results were obt 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. |
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?
|
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.
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. |
Thank you. |
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.
The text was updated successfully, but these errors were encountered: