PointCloudLibrary/pcl

openni_wrapper::DeviceXtionPro::getCurrentImage returns null pointer?

Open

#681 aperta il 19 mag 2014

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)C++ (4506 fork)batch import
effort: trivialgood first issuekind: todomodule: io

Metriche repository

Star
 (9023 star)
Metriche merge PR
 (Merge medio 8g 7h) (3 PR mergiate in 30 g)

Descrizione

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

Guida contributor