Error while running ros image_pipeline camera calibration

asked 2019-09-03 23:38:26 -0500

I am following the following link to get image_pipeline running:

http://wiki.ros.org/camera_calibratio...

I have a stereo camera setup

I am running usb_cam to generate the following topics and services as required by image_pipeline:

Topics:

/stereo/image_view/output

/stereo/image_view/parameter_descriptions

/stereo/image_view/parameter_updates

/stereo/left/camera_info

/stereo/left/image_raw

/stereo/left/image_raw/compressed

/stereo/left/image_raw/compressed/parameter_descriptions

/stereo/left/image_raw/compressed/parameter_updates

/stereo/left/image_raw/compressedDepth

/stereo/left/image_raw/compressedDepth/parameter_descriptions

/stereo/left/image_raw/compressedDepth/parameter_updates

/stereo/left/image_raw/theora

/stereo/left/image_raw/theora/parameter_descriptions

/stereo/left/image_raw/theora/parameter_updates

/stereo/right/camera_info

/stereo/right/image_raw

/stereo/right/image_raw/compressed

/stereo/right/image_raw/compressed/parameter_descriptions

/stereo/right/image_raw/compressed/parameter_updates

/stereo/right/image_raw/compressedDepth

/stereo/right/image_raw/compressedDepth/parameter_descriptions

/stereo/right/image_raw/compressedDepth/parameter_updates

/stereo/right/image_raw/theora

/stereo/right/image_raw/theora/parameter_descriptions

/stereo/right/image_raw/theora/parameter_updates

/usb_cam/image_raw

Services:

/rosout/get_loggers

/rosout/set_logger_level

/stereo/image_view/get_loggers

/stereo/image_view/set_logger_level

/stereo/image_view/set_parameters

/stereo/left/get_loggers

/stereo/left/image_raw/compressed/set_parameters

/stereo/left/image_raw/compressedDepth/set_parameters

/stereo/left/image_raw/theora/set_parameters

/stereo/left/set_camera_info

/stereo/left/set_logger_level

/stereo/left/start_capture

/stereo/left/stop_capture

/stereo/right/get_loggers

/stereo/right/image_raw/compressed/set_parameters

/stereo/right/image_raw/compressedDepth/set_parameters

/stereo/right/image_raw/theora/set_parameters

/stereo/right/set_camera_info

/stereo/right/set_logger_level

/stereo/right/start_capture

I am running the following command to calibrate: rosrun camera_calibration cameracalibrator.py --approximate=0.01 --size 8x6 --square 0.108 right:=stereo/right/image_raw left:=/stereo/left/image_raw right_camera:=/stereo/right left_camera:=/stereo/left

And I am getting the following error:

camera:=/stereo/right left_camera:=/stereo/left

Waiting for service /stereo/left/set_camera_info ...

OK

Waiting for service /stereo/right/set_camera_info ...

OK

Traceback (most recent call last): File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/topics.py", line 750, in _invoke_callback cb(msg)

File "/opt/ros/melodic/lib/python2.7/dist-packages/message_filters/__init__.py", line 75, in callback self.signalMessage(msg)

File "/opt/ros/melodic/lib/python2.7/dist-packages/message_filters/__init__.py", line 57, in signalMessage cb(*(msg + args))

File "/opt/ros/melodic/lib/python2.7/dist-packages/message_filters/__init__.py", line 282, in add for vv in itertools.product([zip(s)[0] for s in stamps]):

File "/opt/ros/melodic/lib/python2.7/dist-packages/message_filters/__init__.py", line 282, in <listcomp> for vv in itertools.product([zip(s)[0] for s in stamps]):

TypeError: 'zip' object is not subscriptable

Any help would be appreciated.

edit retag flag offensive close merge delete