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

cameracalibrator.py GUI does not start

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

derekjchow gravatar image

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?

Thanks in advance

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
3

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

Vincent_V gravatar image

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

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/compressed/parameter_updates
/camera/image_raw/theora
/camera/image_raw/theora/parameter_descriptions
/camera/image_raw/theora/parameter_updates
/cameraUEYE_node/parameter_descriptions
/cameraUEYE_node/parameter_updates
/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

edit flag offensive delete link more
1

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

amittal gravatar image

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

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

Comments

1

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 -0600 )edit
-1

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

Wolf_Wolf gravatar image

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

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

edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 4,591 times

Last updated: Sep 05 '14