pcl_openni2_viewer works fine, but if i try to run tutorial example it says no device found

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

pcl_openni2_viewer works fine, but if i try to run tutorial example it says no device found

shome
I tried to run example at http://pointclouds.org/documentation/tutorials/openni_grabber.php#openni-grabber. It had compiled without any errors.

i got error message :

terminate called after throwing an instance of 'pcl::IOException'
  what():  void pcl::OpenNIGrabber::setupDevice(const string&, const pcl::OpenNIGrabber::Mode&, const pcl::OpenNIGrabber::Mode&) in /home/shome/softwares/pcl/pcl-trunk/io/src/openni_grabber.cpp @ 344 : No devices connected.

HOWEVER pcl_openni2_viewer(in ~/softwares/pcl/pcl-trunk/release/bin) works fine with almost 30fps.

pcl-1.8
ubuntu 14.04,64 bit
primesense device carmine 1.09
   
Reply | Threaded
Open this post in threaded view
|

Re: pcl_openni2_viewer works fine, but if i try to run tutorial example it says no device found

axjensen
This post has NOT been accepted by the mailing list yet.
Hi,

I've had similar problems. I use PCLs openni2 wrapper instead of openni and it works fine. Take a look at the source for the pcl_openni2_viewer, if you want inspiration.
Reply | Threaded
Open this post in threaded view
|

Re: pcl_openni2_viewer works fine, but if i try to run tutorial example it says no device found

kwaegel
Administrator
In reply to this post by shome
shome wrote
I tried to run example at http://pointclouds.org/documentation/tutorials/openni_grabber.php#openni-grabber. It had compiled without any errors.

i got error message :

terminate called after throwing an instance of 'pcl::IOException'
  what():  void pcl::OpenNIGrabber::setupDevice(const string&, const pcl::OpenNIGrabber::Mode&, const pcl::OpenNIGrabber::Mode&) in /home/shome/softwares/pcl/pcl-trunk/io/src/openni_grabber.cpp @ 344 : No devices connected.

HOWEVER pcl_openni2_viewer(in ~/softwares/pcl/pcl-trunk/release/bin) works fine with almost 30fps.

pcl-1.8
ubuntu 14.04,64 bit
primesense device carmine 1.09
This would imply that you have the OpenNI2 device drivers installed, not the OpenNI 1.5 drivers. It's a bit annoying right now, since the two sets of drivers are mutually exclusive. If one works, the other is guaranteed not to work.

This makes regression testing a bit of a pain for the PCL developers...
Reply | Threaded
Open this post in threaded view
|

Re: pcl_openni2_viewer works fine, but if i try to run tutorial example it says no device found

shome
working now :)

changes done:

#include <pcl/io/openni_grabber.h> to #include <pcl/io/openni2_grabber.h>

pcl::Grabber* interface = new pcl::OpenNIGrabber() to pcl::Grabber* interface =new pcl::io::OpenNI2Grabber();
Reply | Threaded
Open this post in threaded view
|

Re: pcl_openni2_viewer works fine, but if i try to run tutorial example it says no device found

pea378
This post has NOT been accepted by the mailing list yet.
HI
thanks for your methods,but i have done this like you above,i meet another question:

2>openni_grabber.obj : error LNK2001: External symbol cannot be resolved "public: __cdecl pcl::io::OpenNI2Grabber::OpenNI2Grabber(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,enum pcl::io::OpenNI2Grabber::Mode const &,enum pcl::io::OpenNI2Grabber::Mode const &)" (??0OpenNI2Grabber@io@pcl@@QEAA@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBW4Mode@012@1@Z)

can you help me?