CV error while calibrating Asus Xtion with package "camera_pose_calibration" [closed]

asked 2013-07-18 21:59:36 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi,

I am now trying to get the orientation between the ir and rgb camera of Asus Xtion. I followed the instructions of the following website: http: // rosmultirgbd .wordpress. com /configuration/

and this tutorial: http: // www.ros.org /wiki/openni_launch/Tutorials/ExtrinsicCalibration

Everything goes well, including the contrasing of ir camera. But when I tried to launch the "calibrate_2_camera.launch", a cv error was shown:

File "/home/jsf-jy/git/care-o-bot/camera_pose/camera_pose_calibration/src/camera_pose_calibration/capture_monitor.py", line 85, in render cv.Resize(self.bridge.imgmsg_to_cv(self.image, 'rgb8'), window) cv2.error: src.type() == dst.type()

I have already updated my ROS to the newest version. Does anyone know the reason of this? Thanks in advance.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2016-04-27 01:46:44.615270

Comments

I got the same thing using Kinects on ROS Groovy (using the catkinized version). I tried getting the type of both inputs to cv.Resize() by

type(self.bridge.imgmsg_to_cv(self.image, 'rgb8') == type(window)

and it returns true.

Edit: this happens only when I use IR camera. It works with RGB.

Veerachart gravatar image Veerachart  ( 2015-02-26 04:53:29 -0500 )edit

I'm having the same problem, did anyone find a solution yet?

maartenA gravatar image maartenA  ( 2015-08-11 19:58:35 -0500 )edit