ros-pkg: added disparity_to_depth nodelet

Aded new demo using stereo disparity instead of Kinect depth: launch/demo/demo_stereo.launch

git-svn-id: http://rtabmap.googlecode.com/svn/trunk/ros-pkg@1654 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
matlabbe
2014-08-18 23:16:16 +00:00
parent 36c647e6fe
commit 8c4e4b6188
12 changed files with 238 additions and 116 deletions
+1 -1
View File
@@ -236,7 +236,7 @@ protected:
if(event->getClassName().compare("CameraEvent") == 0)
{
rtabmap::CameraEvent * e = (rtabmap::CameraEvent*)event;
const cv::Mat & image = e->image().image();
const cv::Mat & image = e->data().image();
if(!image.empty() && image.depth() == CV_8U)
{
cv_bridge::CvImage img;