Ask Your Question
0

How to do camera calibration for Primesense? [closed]

asked 2013-12-18 07:32:31 -0600

Keerthi Raj gravatar image

Hello there,

I want to calibrate my Carmine 1.09 depth sensor. I am using a tutorial "How to Calibrate a Monocular Camera" in ROS.

It asks me to find the topic "/camera/image_raw". However, I don't have such topic, instead I have following similar topics

"/camera/depth/image_raw"
"/camera/depth_registered/image_raw"
"/camera/ir/image_raw"
"/camera/rgb/image_raw"

I tried to calibrate the camera using "camera/depth/image_raw" with the following command:

rosrun camera_calibration cameracalibrator.py --size 8x6 --square 0.108 image:=/camera/depth/image_raw camera:=/camera/depth

Is this command correct? If I run this command, I get a message like this:

Waiting for service /camera/depth/set_camera_info ...
Service not found

Do I need to make any changes to the code in cameracalibrator.py? Please let me know the right way to calibrate?

Thanks in advance.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Keerthi Raj
close date 2014-07-12 19:00:49.328092

Comments

Without knowing much about camera calibration, it seems that the tutorial is talking about calibration of a grayscale/color camera, not a depth camera. So for calibration of the primesense rgb camera you might want to rather use "/camera/rgb/image_raw"? How to calibrate the depth is another story.

demmeln gravatar imagedemmeln ( 2013-12-19 23:44:09 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-12-18 23:36:49 -0600

joanpau gravatar image

updated 2013-12-18 23:50:25 -0600

For a camera to be calibrated and its images corrected by the image pipeline, the camera driver should publish a camera_info topic (with the current calibration in CameraInfo message) and provide a set_camera_info service (to update the current calibration).

If you are using the openni driver, they should be provided. In your case /camera/rgb/camera_info and /camera/rgb/set_camera_info.

Are the topic and the service there? What driver are you using for the camera?

Please note that there is a newer version of the driver: openni2_camera solving some issues with cameras not working properly with the former version. This is discussed in question 54747.

edit flag offensive delete link more

Comments

Thanks joanpau. I ran the calibration for "camera/rgb/camera_info". But, when I hit the calibrate button, the display window hangs and the respective terminal also hangs and calibration will not end. Any idea why this happens?

Keerthi Raj gravatar imageKeerthi Raj ( 2013-12-22 07:23:37 -0600 )edit

It worked. It was taking lot of time to process and my PC didn't respond for some time. So, I thought it was hung. Anyways, I was able to calibrate the camera. Thank you very much.

Keerthi Raj gravatar imageKeerthi Raj ( 2013-12-23 07:23:44 -0600 )edit

So from your comment I guess that the remapping of the camera namespace was wrong, wasn't it? In that case, you should consider accepting the answer (I always forget to do it, too ;-).

joanpau gravatar imagejoanpau ( 2014-01-20 21:33:04 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2013-12-18 07:32:31 -0600

Seen: 931 times

Last updated: Dec 18 '13