PointCloudLibrary/pcl

openni_wrapper::DeviceXtionPro::getCurrentImage returns null pointer?

开放

#681 创建于 2014年5月19日

 (4 条评论) (0 个反应) (0 位负责人)C++ (4,506 个派生)batch import
effort: trivialgood first issuekind: todomodule: io

仓库指标

星标
 (9,023 个星标)
PR 合并指标
 (平均合并 8天 7小时) (30 天内合并 3 个 PR)

描述

Not sure if this is necessarily wrong, but why do we have

boost::shared_ptr<openni_wrapper::Image> 
openni_wrapper::DeviceXtionPro::getCurrentImage (boost::shared_ptr<xn::ImageMetaData>) const throw ()
{
  return (boost::shared_ptr<Image> (reinterpret_cast<Image*> (0)));
}

when for the other devices we return an actual image:

boost::shared_ptr<openni_wrapper::Image> 
openni_wrapper::DevicePrimesense::getCurrentImage (boost::shared_ptr<xn::ImageMetaData> image_data) const throw ()
{
  return (boost::shared_ptr<openni_wrapper::Image> (new ImageYUV422 (image_data)));
}

贡献者指南