ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Unable to set camera info for calibration

asked 2015-05-12 04:00:39 -0500

130s gravatar image

What can be wrong if I get the following error upon camera calibration?

$ rosrun camera_calibration --size 4x6 --square 0.024 --approximate=0.1 --camera_name=stereo_frame right:=/right/image_raw left:=/left/image_raw right_camera:=/right left_camera:=/left

: (after seemingly successful calibration process)

Unable to set camera info for calibration. Failure message: failed to write to a file.

/tmp/calibrationdata.tar.gz is generated with .png files in it.

On the terminal where stereo camera node is launched, this error prints when I clicked on COMMIT button on the calibration GUI.

[ERROR] Unable to open camera calibration file [/home/rospasta/.ros/camera_info/left.yaml] for writing
[ERROR] Unable to open camera calibration file [/home/rospasta/.ros/camera_info/right.yaml] for writing

dpkg -p ros-hydro-camera-calibration | grep Ver

Btw I'm running roslaunch nextage_ros_bridge nextage_ueye_stereo.launch (source) that runs ueye_cam.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-07-08 17:17:03 -0500

anqixu gravatar image

The error seems to be caused by camera_calibration_parsers::writeCalibration(<dest yaml="" file="">, <cam name="">, <calib data="">), as seen in ueye_cam/src/ueye_cam_nodelet.cpp, UEyeCamNodelet::saveIntrinsicsFile().

I suspect that there is some write-permission issues / out-of-space issues with /home/rospasta/.ros/camera_info/. Please test and confirm.

edit flag offensive delete link more


Thanks. I no longer have an access to the same environment so can't verify but your answer gives a hint. I opened a PR for better error message printing.

130s gravatar image 130s  ( 2015-07-14 19:56:20 -0500 )edit

Question Tools



Asked: 2015-05-12 04:00:39 -0500

Seen: 1,849 times

Last updated: Jul 08 '15