lidar_camera_calibration icon indicating copy to clipboard operation
lidar_camera_calibration copied to clipboard

Calibration result is not good

Open zheng-rong opened this issue 5 years ago • 9 comments

Hi all, I am trying to calibrate a VLP-16 and monocular camera (equipped with a lens with distortion). I followed the steps in the wiki, but the result seems not reasonable. The following picture shows my sensor configuration: _20180524160503

and the result is: plot The position of lidar points looks right. I checked the distance of the closest two points in the center area.

result

By far I haven't figure out the reason for this bad calibration result.

I am wondering if this is caused by the camera intrinsic matrix. I am using a monocular camera with distortion, and I got the K(intrinsic) and D(distortion) by Kalibr, and undistort the images by openCV function. IN the aruco_mapping config file, I filled in the K and D as required, and feed it with mono/image_raw(distorted). But in lidar_camera_calibration, only K is specified. So I use getOptimalCameraMatrix in openCV to get a new_K (I think this new_K is the intrinsic for undistorted camera image), and feed the new_K and mono/image_rect to the lidar_camera_calibration. Is this correct?

Any help will be appreciated. The config files I am using are attached.

Thanks in advance, Zheng

vi_0003.txt config_file.txt lidar_camera_calibration.txt marker_coordinates.txt data bag file: https://drive.google.com/open?id=1MQ9GarLO00LBQpODbdgiaedcEEZmeyzp

zheng-rong avatar Jan 07 '19 07:01 zheng-rong

Emmm... I got the wrong marker size in the config file. After revising that, the calibration result looks good, from the visualization of lidar points overlaid on the image. The RMSE is 0.0327. But compared with manually measured translation, the estimated translation has a large error. In my configuration, the manual measurement is: [-0.013,-0.072,-0.12] and the estimated result is: [-0.0230762,0.0149305,-0.185994]

What may be the reason for this result? Thanks.

zheng-rong avatar Jan 08 '19 08:01 zheng-rong

Can you send your modified configuration file?

hunkyu avatar Feb 15 '19 19:02 hunkyu

Please see the attached file. Thanks. marker_coordinates_1.txt

zheng-rong avatar Feb 17 '19 03:02 zheng-rong

screenshot from 2019-02-19 14-06-43 I don't know why it is projected?

hunkyu avatar Feb 19 '19 06:02 hunkyu

@zheng-rong Can you leave a mailbox and follow up? My email [email protected]

hunkyu avatar Mar 01 '19 02:03 hunkyu

@zheng-rong hi, could you tell me how to make the RMSE small, i used you dataset, and can't get right result

zlbing avatar Mar 29 '19 12:03 zlbing

@hunkyu Could you give me the pdf or picture of markers? Thank you!

chenwinki avatar Apr 25 '19 03:04 chenwinki

@hunkyu how to project points to image?

Elkulas avatar May 12 '19 08:05 Elkulas

hi @Elkulas @hunkyu @zheng-rong can you able to project points to image.....i'm stuck after finding rigid body transformation

SinghiDivyanshu avatar Jan 24 '20 10:01 SinghiDivyanshu