# cameracalibrator.py GUI does not start

Hi,

I've been trying to get the camera parameters for my webcam. I'm using the uvc_cam package with camera_calibration package. The commands I use to start are as follows:



roscore

rosrun uvc_camera camera_node

rosrun camera_calibration camacalibrator.py --size 10x7 --square 0.022 image:/usb_cam/image_raw camera:=/ Waiting for service //set_camera_info ... OK

At this point, nothing happens. Does anyone have a rough idea what is going wrong?

edit retag close merge delete

Sort by » oldest newest most voted

Hi,

There is two things you should try :

First : I see that you type image:/usb_cam but It should be for remapping image:=/usb_cam with the "=" !

Then I did not see what you have set for your camera since it seems that you have paste the answer of you terminal right after you camera:=/ command

So to complete your command line do a rostopic list as follow

vvittori@delos:~/ros_workspace/stereo_robust_matching\$ rostopic list
/camera/camera_info
/camera/image_raw
/camera/image_raw/compressed
/camera/image_raw/compressed/parameter_descriptions
/camera/image_raw/theora
/camera/image_raw/theora/parameter_descriptions
/cameraUEYE_node/parameter_descriptions
/rosout
/rosout_agg


and then set the command line as follow (in my exemple /camera/image_raw is my image and /camera is my camera name )

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


So for you it should be I gess

rosrun camera_calibration cameracalibrator.py --size 10x7 --square 0.022  image:=/usb_cam/image_raw camera:=/usb_cam


Regards

V.v

more

I am having the same problem, although mine is when I try to calibrate 2 PGR Chameleon cameras. I am sure I am remapping correctly, as when I open the rxgraph it shows proper connections. However, the GUI just wont pop up. Following is the code that I have used for the stereo calibration:

rosrun camera_calibration cameracalibrator.py --size 10x6 --square 0.078 right:=/stereo/right/pgr_camera/image_raw left:=/stereo/left/pgr_camera/image_raw right_camera:=/stereo/right/pgr_camera left_camera:=/stereo/left/pgr_camera
Waiting for service /stereo/left/pgr_camera/set_camera_info ...
OK
Waiting for service /stereo/right/pgr_camera/set_camera_info ...
OK


Next, I tried calibrating a single camera in the mono-mode, and although the GUI pops up, I cannot get the calibration lines displayed on my Checkerboard. This is the command that I have used to run in the mono-mode:

rosrun camera_calibration cameracalibrator.py --size 9x5 --square 0.078 image:=/stereo/left/pgr_camera/image_raw cara:=/stereo/left/pgr_camera
Waiting for service /stereo/left/pgr_camera/set_camera_info ...
OK

more

1

ok the gui has booted up!!! I added the --approximate=0.1 parameter to the rosrun

( 2012-07-27 10:33:46 -0500 )edit

Yes, --approximate=0.1 is very important, but I have another problem current below: TypeError: __init__() got an unexpected keyword argument 'name' for cameracalibrator.py, which is the argument in its line 145, i.e. self.c = StereoCalibrator(self._boards, self._calib_flags, self._pattern, name=self._camera_name)

Could you give me some suggestions to fix it? Thx

more