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)));
}

貢獻者指南