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

RF's profile - activity

2014-09-05 08:15:53 -0500 received badge  Famous Question (source)
2014-08-23 06:32:23 -0500 received badge  Notable Question (source)
2014-08-14 06:14:41 -0500 received badge  Popular Question (source)
2014-08-13 21:59:31 -0500 edited question cameracalibrator.py error

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 cameracalibrator.py --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/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/opt/ros/indigo/share/camera_calibration/nodes/cameracalibrator.py", line 93, in run
    self.function(m)
  File "/opt/ros/indigo/share/camera_calibration/nodes/cameracalibrator.py", line 161, in handle_monocular
    checkerboard_flags=self._checkerboard_flags)
  File "/opt/ros/indigo/lib/python2.7/dist-packages/camera_calibration/calibrator.py", line 525, in __init__
    super(MonoCalibrator, self).__init__(*args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'checkerboard_flags'

Killed

If it helps below is the output of "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/compressedDepth
/camera/image_raw/compressedDepth/parameter_descriptions
/camera/image_raw/compressedDepth/parameter_updates
/camera/image_raw/theora
/camera/image_raw/theora/parameter_descriptions
/camera/image_raw/theora/parameter_updates
/rosout
/rosout_agg

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

Edit: Output from "rosservice list"

/camera/image_raw/compressed/set_parameters
/camera/image_raw/compressedDepth/set_parameters
/camera/image_raw/theora/set_parameters
/cameracalibrator/get_loggers
/cameracalibrator/set_logger_level
/gscam_publisher/get_loggers
/gscam_publisher/set_logger_level
/rosout/get_loggers
/rosout/set_logger_level
/set_camera_info
2014-07-03 17:54:58 -0500 answered a question Need help for Parallax Eddie Robot!! Got stuck at step 6, ROSMAKE does not work

This error is due to the fact that ROS cannot find the package. By default ROS will search inside "stack" or "share" depending on the version of ROS, for the package. Once you completed Step 5, the "eddiebot" folder was probably placed in: "/home/christopher/eddiebot"

You need to move it into: "opt/ros/fuerte/share/"

This can be done by the following:

sudo mv -i eddiebot opt/ros/fuerte/share