Error while running openni_grabber.cpp

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

Error while running openni_grabber.cpp

sangeetha5491
This post has NOT been accepted by the mailing list yet.
I get the following error when i try to run the openni_grabber.cpp. Could you please tell me what may be wrong?

Unhandled exception at 0x7534c41f in openni_grabber.exe: Microsoft C++ exception: openni_wrapper::OpenNIException at memory location 0x0042f3fc..
Reply | Threaded
Open this post in threaded view
|

Re: Error while running openni_grabber.cpp

Mateusz
Try to run it into debug mode. Then you will get more info.
Reply | Threaded
Open this post in threaded view
|

Re: Error while running openni_grabber.cpp

sangeetha5491
This post has NOT been accepted by the mailing list yet.
i run it in the debug mode only. it breaks at

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

Re: Error while running openni_grabber.cpp

sangeetha5491
I have been trying to get pcl to work for the last one week. anyone has any clue?

i installed the foll:

openni 1.5.2.23
NITE 1.5.2.21
sensor 5.1.0.41
Kinect sdk 1.5
kinect-mssdk-openni bridge
PCL 1.6

Openni and NITE sample work perfectly well.. However PCL samples that use openni crash. Did anyone else face a similar problem ever?
Reply | Threaded
Open this post in threaded view
|

Re: Error while running openni_grabber.cpp

sangeetha5491
In reply to this post by Mateusz
This is the output i get in debug mode:

First-chance exception at 0x7534c41f (KernelBase.dll) in openni_grabber.exe: Microsoft C++ exception: openni_wrapper::OpenNIException at memory location 0x0036f07c..
Unhandled exception at 0x7534c41f (KernelBase.dll) in openni_grabber.exe: Microsoft C++ exception: openni_wrapper::OpenNIException at memory location 0x0036f07c..
First-chance exception at 0x0f7cabd1 (pcl_io_debug.dll) in openni_grabber.exe: 0xC0000005: Access violation reading location 0x00000000.
Unhandled exception at 0x0f7cabd1 (pcl_io_debug.dll) in openni_grabber.exe: 0xC0000005: Access violation reading location 0x00000000.
Reply | Threaded
Open this post in threaded view
|

Re: Error while running openni_grabber.cpp

sangeetha5491
In reply to this post by sangeetha5491
Someone please reply!
Reply | Threaded
Open this post in threaded view
|

Re: Error while running openni_grabber.cpp

VictorLamoine
Administrator
Why do you have Kinect SDK ?
Maybe try uninstalling Kinect SDK. It might interfer with OpenNI

Does SimpleViewer etc.. works ?
Reply | Threaded
Open this post in threaded view
|

Re: Error while running openni_grabber.cpp

sangeetha5491
My NiViewer works. Ill try uninstalling Kinect SDK and try. I guess my NiViewer works because i installed kinect-openni bridge. It does not work without that.
Reply | Threaded
Open this post in threaded view
|

Re: Error while running openni_grabber.cpp

sangeetha5491
i think it is working now. i am getting the output of openni_grabber.cpp as

distance of center pixel :4.349 mm. Average framerate: 14.2239 Hz
distance of center pixel :4.349 mm. Average framerate: 16.9195 Hz
distance of center pixel :4.349 mm. Average framerate: 14.6404 Hz
distance of center pixel :4.295 mm. Average framerate: 14.7848 Hz

is this correct?
Reply | Threaded
Open this post in threaded view
|

Re: Error while running openni_grabber.cpp

VictorLamoine
Administrator
Thats a progression but you should get 30 FPS.
Check on the mailing list archive; I've seen a topic about framerates.
Reply | Threaded
Open this post in threaded view
|

Re: Error while running openni_grabber.cpp

sangeetha5491
Thank you Victor, I increased the frame rate to 30fps by compiling in release mode. It works fine now :)