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

asked 2014-08-13 20:42:27 -0500

RF gravatar image

updated 2014-08-14 00:26:17 -0500

I am trying to follow the ROS tutorial titled: "How to Calibrate a Monocular Camera", link I am using the gscam driver and have verified that it is publishing correctly. Also steps 1.1-1.3 executed without error, but at step 1.4 when I enter:

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

I get:

('Waiting for service', '/camera/set_camera_info', '...')
Service not found

(display:17709): GLib-GObject-WARNING **: cannot register existing fundamental type 'gchar' (as 'gchar')
GLib-GObject:ERROR:/build/buildd/glib2.0-2.40.0/./gobject/gvaluetypes.c:455:_g_value_types_init: assertion failed: (type == G_TYPE_CHAR)
Aborted (core dumped)

If I run it with the "--no-service-check" option, I get:

Exception in thread Thread-4:
Traceback (most recent call last):
  File "/usr/lib/python2.7/", line 810, in __bootstrap_inner
  File "/opt/ros/indigo/share/camera_calibration/nodes/", line 93, in run
  File "/opt/ros/indigo/share/camera_calibration/nodes/", line 161, in handle_monocular
  File "/opt/ros/indigo/lib/python2.7/dist-packages/camera_calibration/", line 525, in __init__
    super(MonoCalibrator, self).__init__(*args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'checkerboard_flags'


If it helps below is the output of "rostopic list"


Any help would be appreciated, I'm running this on Indigo, Ubuntu 14.04

Edit: Output from "rosservice list"

edit retag flag offensive close merge delete


I suspect the /camera/set_camera_info service doesn't exist, or isn't remapped properly. Can you add the output of rosservice list to your question please?

ahendrix gravatar image ahendrix  ( 2014-08-13 22:51:01 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-08-14 06:18:55 -0500

Wolf gravatar image

The service /set_camera_info mentioned in your edit needs to be remapped to /camera/set_camera_info .

edit flag offensive delete link more

Question Tools



Asked: 2014-08-13 20:42:27 -0500

Seen: 1,808 times

Last updated: Aug 14 '14