problem with camcalibrator
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 camerainfomanager in the camera driver node to advertise the setcamerainfo 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.
Asked by abhinav on 2011-10-03 05:29:28 UTC
Comments
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 ?
Asked by abhinav on 2011-10-05 03:21:04 UTC
I am referring to the calibration node for monocular camera system as given at: http://www.ros.org/wiki/camera_calibration/Tutorials/MonocularCalibration
Asked by abhinav on 2011-10-05 03:14:02 UTC
OK. Which
camcalibrator
node are you using? I do not see that in the standard ROScamera_calibration
package.Asked by joq on 2011-10-05 02:32:32 UTC
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.
Asked by abhinav on 2011-10-04 19:34:23 UTC
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" message.
Asked by joq on 2011-10-04 04:33:24 UTC
I am having similar issue. Then I press the commit button the calibration window suddenly exits.
Asked by Artem on 2013-12-10 19:47:47 UTC