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

Stereo camera calibration: system error

asked 2015-07-08 05:54:38 -0500

I-man gravatar image

Hi all,

I'm trying to perform a calibration of a stereo usb camera using the usb_cam drivers. I am following the proper tutorial on the ROS wiki page ( ).

My stereo camera is publishing left and right images over ROS (/image_raw), I can run the calibration node and I'm able to perform the acquisitions of the samples. When I push the "Calibrate" botton, not so long after it appears this error:

Traceback (most recent call last):
File "/opt/ros/indigo/lib/camera_calibration/", line 244, in on_mouse self.c.do_calibration()
File "/opt/ros/indigo/lib/python2.7/dist-packages/camera_calibration/", line 1052, in do_calibration self.cal_fromcorners(self.good_corners)
File "/opt/ros/indigo/lib/python2.7/dist-packages/camera_calibration/", line 855, in cal_fromcorners flags = flags)
SystemError: new style getargs format but argument is not a tuple

The roswtf command returns no errors or warnings.

I'm using ROS Indigo running on Ubuntu 14.04 and I just started using the ros framework so I'm not an expert at all. The cameras I'm using are two ODROID USB-CAM 720P. Can you please help me to figure out how to solve this isssue?


edit retag flag offensive close merge delete


Hi! Make sure you are using the correct git branch, in case you compiled usb_cam repository from source.

Miquel Massot gravatar image Miquel Massot  ( 2015-07-09 04:45:08 -0500 )edit

Thanks for your answer. The git branch I'm using is correct. For the installation of usb_cam I followed the steps described in .

By the way I can perform the (mono) camera calibration successfully. What's wrong?

I-man gravatar image I-man  ( 2015-07-09 05:13:09 -0500 )edit

It looks like your opencv version is expecting a different set of arguments. Which version of OpenCV are you using? 2.4.11 is working correctly in my system. Are you on a newer version?

Miquel Massot gravatar image Miquel Massot  ( 2015-07-13 08:31:35 -0500 )edit

Yes. the command pkg-config --modversion opencv returns 3.0.0. Should I use a previous version of OpenCV?

I-man gravatar image I-man  ( 2015-07-13 09:02:24 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-07-14 06:11:54 -0500

Miquel Massot gravatar image


You should install a compatible OpenCV version, such as 2.4.11. That error is telling you that the code is not compatible, as the API has changed.

edit flag offensive delete link more


Thank you so much. As you suggested, I installed OpenCV 2.4.11 and it works!

I-man gravatar image I-man  ( 2015-08-16 10:18:33 -0500 )edit

I updated my openCV to 2.4.11 but still getting the same error. Any idea why ?

Mudassir Khan gravatar image Mudassir Khan  ( 2016-01-16 21:25:18 -0500 )edit

Question Tools

1 follower


Asked: 2015-07-08 05:54:38 -0500

Seen: 582 times

Last updated: Jul 14 '15