ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0 GUI does not start

asked 2012-04-16 21:31:08 -0500

derekjchow gravatar image


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:



rosrun uvc_camera camera_node

rosrun camera_calibration --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?

Thanks in advance

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2012-04-16 21:47:10 -0500

Vincent_V gravatar image

updated 2012-04-16 21:47:34 -0500


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

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 --size 8x6 --square 0.108 image:=/camera/image_raw camera:=/camera

So for you it should be I gess

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



edit flag offensive delete link more

answered 2012-07-27 05:19:43 -0500

amittal gravatar image

updated 2013-04-22 01:35:14 -0500

felix k gravatar image

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 --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 ...
Waiting for service /stereo/right/pgr_camera/set_camera_info ...

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 --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 ...
edit flag offensive delete link more



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

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

answered 2014-09-05 08:14:29 -0500

Wolf_Wolf gravatar image

updated 2014-09-05 11:18:38 -0500

Yes, --approximate=0.1 is very important, but I have another problem current below: TypeError: __init__() got an unexpected keyword argument 'name' for, 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

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2012-04-16 21:31:08 -0500

Seen: 4,533 times

Last updated: Sep 05 '14