apollo icon indicating copy to clipboard operation
apollo copied to clipboard

How to do Extrinsic camera to camera calibration

Open raghu31081987 opened this issue 8 years ago • 12 comments

Hi, I have two stereo zed camera and i am using usb_cam roslaunch application to launch left and right sensor of a stereo camera. to do extrinsic camera calibration using "scripts/sensor_calibration.sh camera_camera" how this step works? how to pass topics name of each camera and get the yaml file. my topics names are: /sideLeft/left/image_raw, /sideLeft/right/image_raw, /frontNear/left/image_raw, /frontNear/right/image_raw i am trying this calib at lab setup.

raghu31081987 avatar May 23 '18 12:05 raghu31081987

Hi, We use a lidar to calibrate cameras. If you do not have a lidar, you need the to measure translation (x, y, z) of a camera from IMU manually or using a vehicle model. For rotation, please align a camera to have ypr =[0, 0, 0] degrees. When aligned well the center of image should be a vanishing point and the central horizontal line should be aligned with a horizon. Thank you, Tae Eun

techoe avatar May 24 '18 22:05 techoe

Hi,

I am trying to use the camera_camera calibrator node as well and have been unsuccessful in getting it to generate the output .yaml file. Has this issue been addressed/resolved? If not, what is the best way to do the extrinsic calibration for an Apollo setup without using sensor_calibration.sh?

Thanks, Sneha

snehagn avatar Jun 06 '18 19:06 snehagn

No It was not resolved to me... I am trying to figure it out how apollo calibration works... did you find any source code of apollo calibration tool (camera_camera or camera_lidar) on github because i get those as binary tar file.

raghu31081987 avatar Jun 07 '18 00:06 raghu31081987

No I do not have access to the source code either, it is an executable.

snehagn avatar Jun 07 '18 19:06 snehagn

Hi @techoe

I am able to run sensor_calibration.sh, but I get an INS_STAT not 56 (current is at -1) error. The issue is that ins_stat is publishing 56 and verifying it outside Apollo also shows INS_GOOD (which is ins_stat 56). Can you help out with this issue?

Thanks, Sneha

snehagn avatar Jun 21 '18 16:06 snehagn

Hi Sneha,

I have stoped using apollo auto for camera camera or any sensor extrinsic calibration. I am trying out to do my own calibration using openCV aruco. try it out it might help you too. its a simple approach. I am able to get camera to camera extrinsic calibration with other sensors.

Thanks, Raghu

raghu31081987 avatar Jul 01 '18 02:07 raghu31081987

Thank you Raghu! Using openCV or your own target with known position is also one way. Apollo team will provide better solution later.

techoe avatar Jul 01 '18 05:07 techoe

@raghu31081987 and @techoe Thank you, guys.

snehagn avatar Jul 02 '18 13:07 snehagn

Hi @raghu31081987 - does this work with mono cameras? Or only Stereo (as far as I have noticed)

snehagn avatar Jul 02 '18 16:07 snehagn

Hi Sneha, It works for mono as well as stereo camera too... for stereo take any one sensor either left or right as center and find rotation and translation to other stereo left or right sensor. as Aruco marker will give you the distance of camera to marker. but there is some mathamatics need after you get result from Aruco.

raghu31081987 avatar Jul 03 '18 00:07 raghu31081987

You need to do stereo intrinsics calibration before this which might help you to get better accuracy.

raghu31081987 avatar Jul 03 '18 00:07 raghu31081987

The solution for the Apollo calibration tools issue was to set the uvcvideo clock to real time for the cameras (thank you @YangHan101 and @techoe).

snehagn avatar Aug 15 '18 14:08 snehagn