PointCloudLibrary/pcl

openni_wrapper::DeviceXtionPro::getCurrentImage returns null pointer?

オープン

#681 opened on 2014/05/19

 (4 件のコメント) (0 件のリアクション) (0 人の担当者)C++ (4,506 件のフォーク)batch import
effort: trivialgood first issuekind: todomodule: io

Repository metrics

Stars
 (9,023 個のスター)
PR merge metrics
 (平均マージ 8d 7h) (30d で 3 merged PRs)

説明

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

コントリビューターガイド