problem with camcalibrator [closed]

asked 2011-10-03 05:29:28 -0500

Hi,

I was trying to calibrate my usb camera using the chessboard based camcalibrator. The camcalibrator node is not showing the calibration results in the terminal after I press the calibrate button. Also when I press on COMMIT, it closes displaying the calibration result in the terminal. And when I echo the /camera_info it shows no update in calibration parameters D, K, etc.

The rxgraph shows connection error with camcalibration node after I press the calibrate button. I am using camera_info_manager in the camera driver node to advertise the set_camera_info service. But I am using the camcalibrator node from a different node, I think there is a problem when it tries to parse the calibrated parameters back to the camera.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2013-08-27 17:44:12

Comments

The connection error looks like the crux of the problem to me. If camera_info_manager had received the service request, it should have logged a "writing calibration to <filename>" message.
joq gravatar image joq  ( 2011-10-04 04:33:24 -0500 )edit
actually as per camera calibrator node documentation, on pressing the calibrate button it should show the calibration result in the terminal and if you are satisfied you can press commit which will pass these results to the camera_info. But in my case, the camera calibrator is not showing any results in the terminal. Only after I press the COMMIT button it displays the calibration results in the terminal and then it crashes or exits out by closing the calibration window.
abhinav gravatar image abhinav  ( 2011-10-04 19:34:23 -0500 )edit
OK. Which `camcalibrator` node are you using? I do not see that in the standard ROS `camera_calibration` package.
joq gravatar image joq  ( 2011-10-05 02:32:32 -0500 )edit
I am referring to the calibration node for monocular camera system as given at: http://www.ros.org/wiki/camera_calibration/Tutorials/MonocularCalibration
abhinav gravatar image abhinav  ( 2011-10-05 03:14:02 -0500 )edit
I am running this node externally while publishing image messages from a separate node called "roscam". I am executing the node using: rosrun camera_calibration cameracalibrator.py --size 8x6 --square 0.108 image:=/image_raw camera:= and on execution it shows in terminal: searching for set_camera_info service and then it shows service found OK and it display the calibration window. I do not have my image messages published as /camera/image_raw .. instead image is published as /image_raw I do not know if this could cause some problem. Also, I checked the calibration results and they seems to be very wrong. For instance, the distortion profile obtained using the distortion coefficients K1, K2, K3 etc are giving me huge distortions which are even larger than the size of my ccd array. Can somebody tell me which calibration program is being used by this calibration node ?? Is it using cvCalibrateCamera() or cvCalibrateCamera2() from opencv library ?
abhinav gravatar image abhinav  ( 2011-10-05 03:21:04 -0500 )edit

I am having similar issue. Then I press the commit button the calibration window suddenly exits.

Artem gravatar image Artem  ( 2013-12-10 18:47:47 -0500 )edit