can not open the depth source (solved)

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

can not open the depth source (solved)

sadegh
This post was updated on .
 I built pcl from source (1.7) but when I try to run the pcl_openni_viewer it gives me the error
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/pcl/io/src/openni_grabber.cpp @ 342 : No devices connected.
Aborted (core dumped)
I have ubuntu 12.04 and and I checked the openni-dev and ps_engine both of them are installed.
Reply | Threaded
Open this post in threaded view
|

Re: can not open the depth source

Radu B. Rusu
Administrator
This has been recently discussed on the mailing list. Please use the search functionality provided by http://www.pcl-users.org

Best,
Radu.

On Sep 16, 2013, at 9:29 AM, sadegh <[hidden email]> wrote:

> I built pcl from source (1.7) but when I try to run the pcl_openni_viewer it
> gives me the error
> 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/pcl/io/src/openni_grabber.cpp @ 342 : No devices connected.
> Aborted (core dumped)
> I have ubuntu 12.04 and and I checked the openni-dev and ps_engine both of
> them are installed.
>
>
>
>
> --
> View this message in context: http://www.pcl-users.org/can-not-open-the-depth-source-tp4029696.html
> Sent from the Point Cloud Library (PCL) Users mailing list mailing list archive at Nabble.com.
> _______________________________________________
> [hidden email] / http://pointclouds.org
> http://pointclouds.org/mailman/listinfo/pcl-users

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: can not open the depth source

sadegh
In reply to this post by sadegh
Hi Radu
Thanks for the rapid reply. I searched and I found
http://www.pcl-users.org/PCL-amp-Kinfu-on-Ubuntu-12-04-td4020201.html#a4020242 
and
http://www.pcl-users.org/kinfu-app-error-when-running-quot-Can-t-open-depth-source-quot-td4020692.html
however my problem is different I can compile the pcl completely and also I have the openni
libopenni2-0 install
openni-dev install

and ps_engine
ps-engine install
and cuda
libcudart4 install
nvidia-cuda-dev install
nvidia-cuda-doc install
nvidia-cuda-gdb install
nvidia-cuda-toolkit install

do you have any idea what did I miss?
Reply | Threaded
Open this post in threaded view
|

Re: can not open the depth source

Jochen Sprickerhof
Administrator
In reply to this post by sadegh
Hi sadegh,

* sadegh <[hidden email]> [2013-09-16 09:29]:
>  I built pcl from source (1.7) but when I try to run the pcl_openni_viewer it
> gives me the error
> 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/pcl/io/src/openni_grabber.cpp @ 342 : No devices connected.
> Aborted (core dumped)
> I have ubuntu 12.04 and and I checked the openni-dev and ps_engine both of
> them are installed.

Does it work using the precompiled version from the PPA? Which OpenNI
device do you use? Kinect -> wall plug connected? Is it connected to a
USB2 port? What's the output of lsusb?

Cheers Jochen
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: can not open the depth source

sadegh
Hi Jochen
the output of lsusb is
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 413c:2003 Dell Computer Corp. Keyboard
Bus 001 Device 004: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical
Bus 002 Device 005: ID 1d27:0601
and my device is the last one. I have both Kinect and primesense. Non of them are working.
Regards,
Sadegh
Reply | Threaded
Open this post in threaded view
|

Re: can not open the depth source

Jochen Sprickerhof
Administrator
* sadegh <[hidden email]> [2013-09-16 14:50]:
> Bus 002 Device 005: ID 1d27:0601

That's the Primesense, right? What's the output for the Kinect? Can you
try the PCL from the PPA?

Cheers Jochen
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: can not open the depth source

sadegh
Yes this is prime sense and I tried the kinect as well. it can not recognize it. I tried the PPA as well. I can build the pcl but they can not recognize the primesense I have another application with Openni it can work with prime sence.
Reply | Threaded
Open this post in threaded view
|

Re: can not open the depth source

sadegh
finally problem was solved. I unplugged primesense and downloaded the driver from
http://code.google.com/p/simple-openni/downloads/detail?name=OpenNI_NITE_Installer-Linux64-0.27.zip&can=1&q=Type%3DInstaller+OpSys%3DLinux
and installed all four packages. Then plugged the prime sense and it worked