Downloads Primesense Nite Win32 Error
I've prebuilt a kinect supported version and put it in: You can simply run the sensor installtion from the bin there. Hopefully it will work for you! And if you want to try NITE, you can look at the readme file:-) avin. On Dec 9, 2:18 am, Bruno De Araujo wrote: >Hi Ken, >>I generated the sensor redist with your version and installed it. >However I do not understand how to proceed after it, >>when I plug the Kinect it still try to recognize Xbox NUI Stuff (which >I removed). I tried to select the driver directly (add legacy hw) selecting >the inf from the OpenNI Driver directory installation but no success.

>>Any Idea? >>Best Regards, >>Bruno >>>>On Wed, Dec 8, 2010 at 11:43 PM, Ken Conley wrote: >>Hi Bruno, >>>We have some patches for the Kinect in our repo: >>>>>>This is still a work in progress, but all of the Kinects in our office >>appear to work with these patches now. >>>regards, >>Ken >>>On Wed, Dec 8, 2010 at 3:41 PM, Bruno De Araujo >>wrote: >>>Hello, >>>I downloaded and installed OpenNi and PrimeSense Sensor Driver. >>>Do they already work with the Kinect in Windows? >>>or we should using combined with linfreenect Zephod-win32 driver? >>>I tried the PrimeSense.inf (PrimeSensor Development Kit 2.x to 5.x and >>>Reference Design), however the driver could not start (error code 10). >>>I am using Window 7 64 bits, however I would like a 32 bits dev >>environment.
>>>Best Regards and Congratulation for the OpenNI iniative and Prime Sense, >>>Best Regards, >>>-- >>>Bruno Araujo >>>>-- >>>You received this message because you are subscribed to the Google Groups >>>'OpenNI' group. >>>To post to this group, send email to. >>>To unsubscribe from this group, send email to >>>>>. >>>For more options, visit this group at >>. >>>-- >>You received this message because you are subscribed to the Google Groups >>'OpenNI' group.

May 24, 2011. Even if you have Windows7 type 64bits, you should download 『OpenNI-Win32-1.1.0.41-Dev.msi』. 1-3.Please download the latest unstable version named as 『PrimeSense NITE Unstable Build for Windows x86 (32-bit) v1.3.1.5 Development Edition』 from OpneNI.org. This is the installer of 『OpenNI.
>>To post to this group, send email to. >>To unsubscribe from this group, send email to >>>>. >>For more options, visit this group at >. >>-- >Bruno Rodrigues De Araujo >Visualization and Intelligent MultiModal Interfaces Group - INESC-ID >Department of Information Systems and Computer Science >IST/Technical University of Lisbon >Avenida Professor Cavaco Silva, Room 2-N9.21 >2780-990 Porto Salvo, Portugal >Tel: +3566 (INESC-ID TagusPark) >Tel: +3271 (INESC-ID Alameda) >Fax: +3843 >mailto:b.@vimmi.inesc-id.ptBruno De Araujo 08.12.10 19:33.
PrimeSensor Development Kit Driver could not start (error code 10). I try to summarize so that other people can avoid similar problems Questions: a) Where are the drivers? Avin2-SensorKinect-8559efd Platform Win32 Driver b) Procedure select the driver directly (add legacy hw) You will see 1) Kinect Motor, Kinect Camera 2) PrimeSensor Development Kit 2.x to 5.x and Reference Design Questions: do we need to install all 1) and 2)? C)avin2-SensorKinect-8559efd Bin run SensorKinect-Win32-5.0.0.exe d) Install OpenNI and NITE With this, I can get OpenNI and NITE applications to work Not all work currently, pls feedbacks if I am missing something, so others will not waste the time likeBVH 09.12.10 00:27. Hi, I am trying to use the NITE in Windows 7 32bits.
I installed manually the driver in and managed to get the Nui Viewer to work. However, when I try the samples, all of them say 'Can not create a node of the selected type', an error thrown by the function xnInitFromXmlFile. I have edited the xml files in the data directory adding the license key provided by the nui group and setting the resolution to 640x480, like this ( Sample- Tracking.xml ) Any idea on how to solve this? K.@willowgarage.com 09.12.10 00:53. I would check your modules.xml file (I use Linux, so I have no idea where it is on Windows).
I've only seen this error when the plugin isn't registered, or the libraries are not linked properly. If your NITE installation is correct, you should see some NITE libraries registered in it.
The niReg tool is what is responsible for updating this file, but I have no idea how it works on Windows. - Ken >-- >You received this message because you are subscribed to the Google Groups 'OpenNI' group. >To post to this group, send email to. >To unsubscribe from this group, send email to. >For more options, visit this group.
>>k.@willowgarage.com 09.12.10 00:54. On Thu, Dec 9, 2010 at 12:29 AM, likeBVH wrote: >Is there a need to use the modified GlobalDefaults.ini that is more >suitable for Kinect. The parameters for the Kinect are different from the PSDK5.0 device, which is what the file is written for. >This, we need feedbacks, some apps work, some apps do not. On Linux, I am able to run Sample-NiUserTracker (probably the best demo), the viewers/readers, players, point viewer, and probably a couple others that I can't remember. AFAIK, avin's driver is similar to ours (ros-pkg-git/Sensor) and pulls in some of our changes, so presumably you would have similar (or better) results.
- Ken likeBVH 09.12.10 01:25. Hi i don't have any modules.xml file, maybe that is the problem;) Regards, Ricard On 9 Des, 09:53, Ken Conley wrote: >I would check your modules.xml file (I use Linux, so I have no idea >where it is on Windows). I've only seen this error when the plugin >isn't registered, or the libraries are not linked properly. >>If your NITE installation is correct, you should see some NITE >libraries registered in it.
The niReg tool is what is responsible for >updating this file, but I have no idea how it works on Windows. >>- Ken >>On Thu, Dec 9, 2010 at 12:44 AM, rickypetit wrote: >>Hi, >>>I am trying to use the NITE in Windows 7 32bits. >>>I installed manually the driver inlikeBVH 09.12.10 01:31. 'InitFromXml failed: Can't create any node of the requested type! ' error appears when Kinect is not plugged here, Be sure to remove existing kinect drivers (libusb, openNUI) then install the one from C: Program Files Prime Sense Sensor Driver. OpenNI samples work fine here but not the ones from NITE, as I have the following error: Setting resolution to QVGA InitFromXml failed: Device Protocol: Bad Parameter sent!
I checked the exe and the following xml is called: C: Program Files Prime Sense NITE Data Sample-Tracking.xml I tried to change some parameters (like resolution) but still setting to QVGA even if put 640*480. I think something need to be changed in the ini file: C: Program Files Prime Sense Sensor Data GlobalDefaults.ini but haven't found what yet. Alex unk.@googlegroups.com 09.12.10 04:05 unk.@googlegroups.com 09.12.10 04:14 Moshe Blitz 09.12.10 04:25. You should disregard the 'Setting resolution to QVGA' printout - it's from the hands generator's implementation. This is not an error.
-----Original Message----- From: [mailto:] On Behalf Of alx5962 Sent: Thursday, December 09, 2010 13:55 To: OpenNI Subject: [OpenNI-dev] Re: How to setup Kinect Driver with OpenNI in Windows Alex -- You received this message because you are subscribed to the Google Groups 'OpenNI' group. To post to this group, send email to. To unsubscribe from this group, send email to. For more options, visit this group. Alx5962 09.12.10 04:49. Ok; any idea about the bad parameter error in the device protocol?
On Dec 9, 1:36 pm, Oz Magal wrote: >You should disregard the 'Setting resolution to QVGA' printout - it's from the hands generator's implementation. This is not an error. >>-----Original Message----- >From: [mailto:] On Behalf Of alx5962 >Sent: Thursday, December 09, 2010 13:55 >To: OpenNI >Subject: [OpenNI-dev] Re: How to setup Kinect Driver with OpenNI in Windows >>'InitFromXml failed: Can't create any node of the requested type! ' >error appears when Kinect is not plugged here, Be sure to remove >existing kinect drivers (libusb, openNUI) then install the one from C: >Program Files Prime Sense Sensor Driver.
>>OpenNI samples work fine here but not the ones from NITE, as I have >the following error: >Setting resolution to QVGA >InitFromXml failed: Device Protocol: Bad Parameter sent! >>I checked the exe and the following xml is called: C: Program Files >Prime Sense NITE Data Sample-Tracking.xml >I tried to change some parameters (like resolution) but still setting >to QVGA even if put 640*480. >>I think something need to be changed in the ini file: C: Program Files >Prime Sense Sensor Data GlobalDefaults.ini but haven't found what >yet. >>Alex >>-- >You received this message because you are subscribed to the Google Groups 'OpenNI' group.
>To post to this group, send email to. >To unsubscribe from this group, send email to. >For more options, visit this group atCY 09.12.10 05:15. This is how I make it work, For the skeleton sample, open up your NITE/Data/Sample-User.xml and replace the content with these For Sample-Scene.xml and Sample-Tracking.xml, make sure you uncomment all the licenses node or replace with Chris OShea 09.12.10 05:57. Hi I am on Window XP Pro SP3. I use CodeBlocks not VS, but actually just trying to see if the sensor and examples work so far. Have installed using and in device manager I see PrimeSensor >Kinect Camera & Kinect Motor.
When I go to run anything in C: Program Files OpenNI Samples Bin Release it says missing MSVCR100.dll I don't have this DLL (not using VS), so I downloaded it and put it in the same folder. However when I run I still get the error. Anything I am missing? Thanks alx5962 09.12.10 06:13. Dear alx5962 The log files are saved in the same folder of your executable file under a 'Log' folder. The log file name also contains the running date and time.
Lior Cohen Europ & APAC FAE PrimeSense Office: +972-3-769-2266 Mobile: +972-54-204-4249 Fax: +972-54-769-2200 28 Habarzel St. Ramat Hahayal Tel Aviv discover Natural Interaction with us at CES 2011 south hall 4 booth 36255 -----Original Message----- From: [mailto:] On Behalf Of alx5962 Sent: Thursday, December 09, 2010 4:13 PM To: OpenNI Subject: [OpenNI-dev] Re: How to setup Kinect Driver with OpenNI in Windows Thanks -- You received this message because you are subscribed to the Google Groups 'OpenNI' group. To post to this group, send email to. To unsubscribe from this group, send email to.
For more options, visit this group. Alx5962 09.12.10 07:54. Hi alx5962, Which OS are you running? -Alon discover Natural Interaction with us at CES 2011 south hall 4 booth 36255 -----Original Message----- From: [mailto:] On Behalf Of alx5962 Sent: Thursday, December 09, 2010 5:54 PM To: OpenNI Subject: [OpenNI-dev] Re: How to setup Kinect Driver with OpenNI in Windows Dear Lior, -- You received this message because you are subscribed to the Google Groups 'OpenNI' group. To post to this group, send email to. To unsubscribe from this group, send email to. For more options, visit this group.
Alx5962 09.12.10 08:05. I just found out a log was created in: C: Program Files Prime Sense Sensor Bin Log So depth gain is the problem; 1611265 [VERBOSE] XnProperty.cpp 74 Setting Firmware.DepthGain (21) to 30.
1622382 [WARNING] XnHostProtocol.cpp 369 Received NACK: 5 1622420 [VERBOSE] XnHostProtocol.cpp 909 Retrying to set the param. Rc=1430 [ERROR] XnHostProtocol.cpp 915 Failed setting [21] to [30]: Device Protocol: Bad Parameter sent! 1622439 [VERBOSE] XnProperty.cpp 95 Failed setting Firmware.DepthGain (21): Device Protocol: Bad Parameter sent! 1622451 [VERBOSE] XnProperty.cpp 74 Setting Firmware.DepthGain (21) to 30. 1633275 [WARNING] XnHostProtocol.cpp 369 Received NACK: 5 1633288 [VERBOSE] XnHostProtocol.cpp 909 Retrying to set the param. Rc=1296 [ERROR] XnHostProtocol.cpp 915 Failed setting [21] to [30]: Device Protocol: Bad Parameter sent!
1633304 [VERBOSE] XnProperty.cpp 95 Failed setting Firmware.DepthGain (21): Device Protocol: Bad Parameter sent! 1633314 [VERBOSE] XnFirmwareStreams.cpp 216 Stream Depth released FW Stream Depth 1633322 [ERROR] XnSensorServer.cpp 1673 Failed to open stream: Device Protocol: Bad Parameter sent!
1635013 [VERBOSE] XnSensorServer.cpp 1544 Client 1 requested to close stream Depth1 1635061 [VERBOSE] XnSensorServer.cpp 997 Client 1 is releasing stream Depth 1635079 [VERBOSE] XnSensorServer.cpp 1026 Stream Depth now has 0 clients 1635087 [VERBOSE] XnDeviceBase.cpp 381 Closing stream Depth. Alx5962 09.12.10 08:06. Hi, I have uninstalled all the libusb drivers, the Primesense and the OpenNi programs and I got it working after performing these steps: - Uninstall previous drivers - Install v2 Sensor (SensorKinect Module for OpenNI) - Install OpenNI - Install PrimeSense Sensor Test NiViewer, works ok. - Install NITE Test samples, works ok However, always exists one;), the stick figure sample shows no images, just a screen with a checkerboard. Will keep trying this, must be some error in the Sample-user.xml file, althought I set the modifications specified in this thread Regards and thanks for all, Ricard Ricard Moshe Blitz 09.12.10 09:53.
On Dec 9, 12:09 am, likeBVH wrote: >PrimeSensor Development Kit Driver could not start (error code 10). >>I try to summarize so that other people can avoid similar problems >>Questions: >a) Where are the drivers? >>>>avin2-SensorKinect-8559efd Platform Win32 Driver >>b) Procedure >>select the driver directly (add legacy hw) >You will see >>1) Kinect Motor, Kinect Camera >2) PrimeSensor Development Kit 2.x to 5.x and >Reference Design >>Questions: do we need to install all 1) and 2)? >>>c)avin2-SensorKinect-8559efd Bin >run >SensorKinect-Win32-5.0.0.exe???????
Execute: OpenNI-Win32-1.0.0.exe Create folder: C: myWork Kinect Prime Scense Sensor Create folder: C: myWork Kinect Prime Scense Sensor Bin Create folder: C: myWork Kinect Prime Scense Sensor Data Extract: C: myWork Kinect Prime Scense Sensor GPL.txt. 100% Extract: C: myWork Kinect Prime Scense Sensor LGPL.txt. 100% Extract: C: myWork Kinect Prime Scense Sensor Bin XnCore.dll.
100% Extract: C: myWork Kinect Prime Scense Sensor Bin XnFormats.dll. 100% Extract: C: myWork Kinect Prime Scense Sensor Bin XnDDK.dll. 100% Extract: C: myWork Kinect Prime Scense Sensor Bin XnDeviceSensorV2.dll. 100% Extract: C: myWork Kinect Prime Scense Sensor Bin XnDeviceFile.dll. 100% Extract: C: myWork Kinect Prime Scense Sensor Bin XnSensorServer.exe.
100% Extract: C: myWork Kinect Prime Scense Sensor Data GlobalDefaults.ini. 100% Output folder: C: myWork Kinect Prime Scense Sensor Driver Extract: dpinst-amd64.exe. 100% Extract: dpinst-x86.exe. 100% Extract: dpinst.xml. 100% Extract: psdrv3.cat.
100% Extract: psdrv3.ico. 100% Extract: psdrv3.inf. 100% Output folder: C: myWork Kinect Prime Scense Sensor Driver amd64 Extract: WdfCoInstaller01009.dll.
100% Extract: psdrv3.sys. 100% Output folder: C: myWork Kinect Prime Scense Sensor Driver x86 Extract: WdfCoInstaller01009.dll. 100% Extract: psdrv3.sys. 100% Output folder: C: myWork Kinect Prime Scense Sensor Driver Execute: ' Bin niReg.exe' 'C: myWork Kinect Prime Scense Sensor Bin XnDeviceFile.dll' Installation Failed! Could not register module with OpenNI!????
Anybody met the question? >>d) Install OpenNI and NITE >>With this, I can get OpenNI and NITE applications to work >>Not all work currently, pls feedbacks if I am missing something, so >others will not waste the time kwende 09.12.10 18:17.
Hi, When running NIViewer I get a 'timeout when waiting for new data' message in the console window, then a full screen black window (with the text at the bottom) where a small red rectangle appears occasionally. I'm guessing this isn't the intended functionality of this program. Any ideas how to get it working? Thanks in advance, Neil.
>>>Subject: [OpenNI-dev] Re: How to setupKinectDriver with OpenNI in Windows >>>>'InitFromXml failed: Can't create any node of the requested type! ' >>>error appears whenKinectis not plugged here, Be sure to remove >>>existingkinectdrivers (libusb, openNUI) then install the one from C: eric 11.12.10 17:19. Thank you CY. After using the config you posted, I also got several PrimeSense samples to work, that includes: StickFigure, SceneAnalysis, Players, SingleControl. Before this the error was the ' bad parameter' error that alex has mentioned. However, I still cannot figure out how to get Boxes, CircleControl and TrackPad to work.
There was no error. The application window pops up fine. For instance, I can see the circle in the circlecontrol sample. However, it does not seem to react to my movements at all.
Any suggestions? Thanks eric 12.12.10 14:07. Hi all: We followed the tutorial from Avin with all the installers for OpenNI, NITE and the drivers (Sensor-Win32-5.0.0.24). It works fine on one of our machine, except for the NUI Audio which is not recognized by Windows. We can run the demos without any problems on this machine, but could not manage to get it work on any other of our machines. Each time we try to install it on a new machine, everything goes fine but the smaples don't work. We tried NviViewer and got only a black screen with the following error: 7780857 [VERBOSE] Setting Depth1.Registration to 0.
7814696 [VERBOSE] [FPS] User1 (I: 0. Stackridge Something For The Weekend Rar Download here. 00, O: 0.00) Depth1 (I: 0.00, O: 0.00) Image1 (I: 0.00, O: 0.00) ReadCalls: 0.76 Error: A timeout has occurred when waiting for new data! 9846502 [VERBOSE] [FPS] User1 (I: 0.00, O: 0.00) Depth1 (I: 0.00, O: 0.00) Image1 (I: 0.00, O: 0.00) ReadCalls: 0.98 Error: A timeout has occurred when waiting for new data! 11852659 [VERBOSE] [FPS] User1 (I: 0.00, O: 0.00) Depth1 (I: 0.00, O: 0.00) Image1 (I: 0.00, O: 0.00) ReadCalls: 1.00 Error: A timeout has occurred when waiting for new data!
The drivers are ok in windows (again not the Audio) and we followed the exact same protocol for installing the software/drivers. This seems to be the same problem Neil Mendoza described in his post. Do you have any idea what could go wrong? And how to fix it? Moreover, we would be interested in getting the Audio to work as well, is there a way to find the driver of the microphone somewhere?
Thanks a lot. Avin 16.12.10 13:36. Hi avin: this is the complete log of the NiViewer.exeon the machine where kinect does not work (the output is a completely black screen): XnDeviceSensorV2.dll. 14385 [VERBOSE] Found exported production node.
Device: PrimeSen se/SensorV2/ 14574 [VERBOSE] Found exported production node. Depth: PrimeSens e/SensorV2/ 14752 [VERBOSE] Found exported production node. Image: PrimeSens e/SensorV2/ 14913 [VERBOSE] Found exported production node. IR: PrimeSense/S ensorV2/ 15074 [VERBOSE] Found exported production node. Audio: PrimeSens e/SensorV2/ 15234 [VERBOSE] Checking C: Program Files Prime Sense NITE Featu res Bin XnVFeatures.dll. 16925 [VERBOSE] Found exported production node. Scene: PrimeSens e/XnVSceneAnalyzer/ 17104 [VERBOSE] Found exported production node.
User: PrimeSense /XnVSkeletonGenerator/ 17266 [VERBOSE] Checking C: Program Files Prime Sense NITE Hands Bin XnVHandGenerator.dll. 18004 [VERBOSE] Found exported production node. Gesture: PrimeSe nse/XnVGestureGenrator/ 18179 [VERBOSE] Found exported production node. Hands: PrimeSens e/XnVHandTracker/ 18650 [VERBOSE] Requested to create a node of type Image.
20678 [INFO] Creating node 'Device1' of type Device. 1402493 [INFO] Property Device.ShareMode was changed to 1. 1402725 [INFO] Property Device.InstancePointer was changed. 1402899 [INFO] Property Device.ShareMode was changed to 0. 1403166 [INFO] Creating node 'Image1' of type Image.
1403337 [VERBOSE] Creating stream Image1 (of type Image) 1414589 [INFO] Property Device.ReadData was changed to 1. 1417234 [INFO] Creating stream 'Image1' of type 'Image'. 1417436 [VERBOSE] Initializing stream 'Image1'. 1417653 [INFO] Property Image1.RequiredDataSize was changed to 230400. 1417869 [INFO] Property Image1.OutputFormat was changed to 5. 1418017 [INFO] Stream 'Image1' was initialized. 1418147 [INFO] 'Image1' stream was created.
1418391 [VERBOSE] Batch configuring server. 1418693 [INFO] Property Image1.RequiredDataSize was changed to 460800. 1418979 [INFO] Property Image1.XRes was changed to 640.
1419147 [INFO] Property Image1.RequiredDataSize was changed to 921600. 1419550 [INFO] Property Image1.YRes was changed to 480. 1419719 [INFO] Property Image1.Resolution was changed to 1. 1419871 [VERBOSE] Setting Image1.Mirror to 1. 1420094 [INFO] Property Image1.Mirror was changed to 1. 1420246 [VERBOSE] Requested to create a node of type Depth.
1421402 [INFO] Creating node 'Depth1' of type Depth. 1421596 [VERBOSE] Creating stream Depth1 (of type Depth) 1439764 [INFO] Creating stream 'Depth1' of type 'Depth'.
1439966 [VERBOSE] Initializing stream 'Depth1'. 1440152 [INFO] Property Depth1.RequiredDataSize was changed to 153600. 1440339 [INFO] Property Depth1.OutputFormat was changed to 1. 1440495 [INFO] Stream 'Depth1' was initialized.
1440648 [INFO] 'Depth1' stream was created. 1440999 [VERBOSE] Batch configuring server. 1441280 [INFO] Property Depth1.RequiredDataSize was changed to 307200. 1441521 [INFO] Property Depth1.XRes was changed to 640. 1441667 [INFO] Property Depth1.RequiredDataSize was changed to 614400. 1441980 [INFO] Property Depth1.YRes was changed to 480. 1442131 [INFO] Property Depth1.Resolution was changed to 1.
1442289 [VERBOSE] Setting Depth1.Mirror to 1. 1442517 [INFO] Property Depth1.Mirror was changed to 1. 1442671 [VERBOSE] Requested to create a node of type User. 1443760 [INFO] Creating node 'User1' of type User.
1465725 [VERBOSE] Opening stream Depth1. 1466717 [INFO] Property Depth1.ActualReadData was changed to 1. 1920788 [INFO] Property Depth1.State was changed to 1. 1920987 [INFO] Stream Depth1 is open. 1921263 [VERBOSE] Opening stream Image1. 1922125 [INFO] Property Image1.ActualReadData was changed to 1. 5111051 [INFO] Property Image1.State was changed to 1.
5111397 [INFO] Stream Image1 is open. 5111575 [VERBOSE] [FPS] User1 (I: 0.00, O: 0.00) Depth1 (I: 0.00, O: 0.00) Image1 (I: 0.00, O: 0.00) ReadCalls: 0.00 Error: A timeout has occurred when waiting for new data! 7450788 [VERBOSE] Setting Depth1.Registration to 0. 7480574 [VERBOSE] [FPS] User1 (I: 0.00, O: 0.00) Depth1 (I: 0.00, O: 0.00) Image1 (I: 0.00, O: 0.00) ReadCalls: 0.84 Error: A timeout has occurred when waiting for new data! 9494660 [VERBOSE] [FPS] User1 (I: 0.00, O: 0.00) Depth1 (I: 0.00, O: 0.00) Image1 (I: 0.00, O: 0.00) ReadCalls: 0.99 Error: A timeout has occurred when waiting for new data! 11499685 [VERBOSE] [FPS] User1 (I: 0.00, O: 0.00) Depth1 (I: 0.00, O: 0.00) Image1 (I: 0.00, O: 0.00) ReadCalls: 1.00 Error: A timeout has occurred when waiting for new data!
13505307 [VERBOSE] [FPS] User1 (I: 0.00, O: 0.00) Depth1 (I: 0.00, O: 0.00) Image1 (I: 0.00, O: 0.00) ReadCalls: 1.00 Error: A timeout has occurred when waiting for new data! 15509773 [VERBOSE] [FPS] User1 (I: 0.00, O: 0.00) Depth1 (I: 0.00, O: 0.00) Image1 (I: 0.00, O: 0.00) ReadCalls: 1.00 The problem is that on one machine it works correctly while on the other (using the same XML config file) we got the black screen and this log. Unk.@googlegroups.com 17.12.10 01:50 Spun 22.12.10 01:05.
Copyright (c) 2011, Dirk-Jan Kroon All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. This zip-file contains c++ wrapper functions for the Microsoft Kinect, OpenNI 1.* and OpenNI 2.* libary. This code is compatible with Matlab 32bit and 64bit, Windows, MacOs and Linux. Note!, OpenNI 2.* only depth/video stream support. To compile the code to mex-files use the Microsoft Visual Studio (Express) or MacOS/Linux Gcc (x64/x86) C++ compiler.
To use OpenNI version 1.* install: - OpenNI 1.5.4.0 - NITE 1.5.2.21 - SensorKinect093 v5.1.2.1 To use OpenNI version 2.* install: - OpenNI 2.2.0 - NITE 2.2.0 - Microsoft KinectSDK v1.7 Start Matlab, go to OpenNi1 or OpenNI2 and execute compile_cpp_files. Now the mex-files are ready to use. - Example: Will load an recorded Kinect file, and show the depth and image movie. - ExampleIR: Will connect to your Kinect Hardware, and show a high-res IR image. - ExampleRS: Will show the difference between the IR reference and measurement, Depth of a ROI is equal to movement of the ROI between reference and measurement. This depth can be calculated using a horizontal 'tilt and scaling' invariant normalized cross correlation (included version is not invariant).
- ExampleSK: Will show Skeleton tracking on recorded Kinect movie. - ExampleRW: Will show a depth surface overlay-ed with the photo-camera stream in real-world coordinates (mm) - ExampleCP: Will capture the Kinect streams to a file. I'm using the solution Akshay Iyangar suggested.
I still get the exact same error.: 'Error using mex /Users/bruger/Documents/MATLAB/Add-Ons/Collections/Kinect Matlab/code/OpenNI1/Mex/mxNiChangeDepthViewPoint.cpp:3:10: fatal error: 'XnOpenNI.h' file not found #include ^ 1 error generated. Error in compile_cpp_files (line 59) mex('-v',['-L' OpenNiPathLib],'-lOpenNI64',['-I' OpenNiPathInclude '],Filename);' Does anyone have alternative suggestions to fix this issue?
OSX Sierra operating system Kinect 360. If you're getting this error Error using mex /Users/akshayiyangar/Documents/MATLAB/Kinect_Matlab_version2/OpenNI1/Mex/mxNiChangeDepthViewPoint.cpp:3:10: fatal error: 'XnOpenNI.h' file not found #include please uncomment the below code in compile_cpp_files.m. If(is64) OpenNiPathLib=[OpenNiPath '/Lib64']; else OpenNiPathLib=[OpenNiPath '/Lib']; end and just write this code OpenNiPathLib=[OpenNiPath '/Lib']; Do this everwhere in the code and finally mex('-v',['-L' OpenNiPathLib],'-lopenNI',['-I' OpenNiPathInclude ' '],Filename); remove ' ' and make it mex('-v',['-L' OpenNiPathLib],'-lopenNI',['-I' OpenNiPathInclude],Filename); The program will run code tested on Mac El Capitan. I noticed atleast one person who got the following error: mxNiChangeDepthViewPoint.cpp:3:22: fatal error: XnOpenNI.h: No such file or directory compilation terminated. Mex: compile of ' 'mxNiChangeDepthViewPoint.cpp' failed.??? Error using ==>mex at 222 Unable to complete successfully. Error in ==>compile_cpp_files at 51 mex('-v',['-L' OpenNiPathLib],'-lopenNI',['-I' OpenNiPathInclude '],Filename); I'm compiling on ubuntu 12.04, with Matlab2010a.
I've installed openni, nite and sensor kinect (it seems to be working on those samples with kinect). I changed compile_cpp_files.m lines 49 and 51 as stated in the last comment in that file.
If anyone has a hint why this is happening, please respond. Thank you in advance. I am using OpenNI version 2. And i have install properly all three software in my system - OpenNI 2.2.0 - NITE 2.2.0 - Microsoft KinectSDK v1.7 But while i am compiling compile_cpp_files with openNI2 path address like compile_cpp_files ('C: Program Files OpenNI2') it is saying??? Error: File: compile_cpp_files.m Line: 1 Column: 28 Unexpected MATLAB expression. I am not getting what unexpected matlab expression i have used anyone can provide me solution for that and i am using VS 2010 professional compiler and 2011b MATLAB. Hi everyone, I just downloaded and installed OpenNI 2.2.0 and NITE 2.2.0 and I am trying to run compile_cpp_files in matlab.
Every time I run the function I get the following error: 'Error using mex (line 206) Unable to complete successfully. Error in compile_cpp_files (line 50) mex('-v',['-L' OpenNiPathLib],'-lopenNI2',['-I' OpenNiPathInclude ' '],Filename);' I currently have Microsoft Visual Studio 2010 express installed but it does not seem to be detected. Any help would be greatly appreciated.
Hi all, I had this package working great on a Windows 7 computer running a 32-bit version of Matlab. Then, all of a sudden, Matlab could not connect to the Kinect, giving the error 'Nodes could not be enumerated.' I reinstalled the drivers, reinstalled Matlab, made sure that firewall and security settings had not changed (all off), etc. I can't figure out why all of a sudden its not working. The Kinect still connects to other interfaces like FAAST and OSCeleton. Any ideas why Matlab can't connect all of a sudden? Thanks, Matt.
Function compile_cpp_files_update(OpenNiPath)% This function compile_cpp_files will compile the c++ code files% which wraps OpenNI for the Kinect in Matlab.%% Please install first on your computer:% - NITE-Bin-Win32-v1.3.0.18% - OpenNI-Bin-Win32-v1.0.0.25%% Just execute by:%% compile_c_files%% or with specifying the OpenNI path%% compile_cpp_files('C: Program Files (x86) OpenNI ');%% Modify: update to support 64bit in win7%reset the mex mex -setup;%detect the version of system try cs = computer; is64 = strcmp('64', cs(end-1:end)); catch disp('Unable to detect the version of the system!' ); end if is64 disp('The system is 64bit system!' ); else disp('The system is 32bit system!' ) end if(nargin. I modify a little of the code to support 64bit system in Win7.
Function compile_cpp_files_update(OpenNiPath)% This function compile_cpp_files will compile the c++ code files% which wraps OpenNI for the Kinect in Matlab.%% Please install first on your computer:% - NITE-Bin-Win32-v1.3.0.18% - OpenNI-Bin-Win32-v1.0.0.25%% Just execute by:%% compile_c_files%% or with specifying the OpenNI path%% compile_cpp_files('C: Program Files (x86) OpenNI ');%% Modify: update the code to support 64bit%reset the mex mex -setup;%detect the version of system try cs = computer; is64 = strcmp('64', cs(end-1:end)); catch disp('Unable to detect the version of the system!' ); end if is64 disp('The system is 64bit system!' ); else disp('The system is 32bit system!' ) end if(nargin.
It works in my win7, with newest unstable edition of openNI: function compile_cpp_files(OpenNiPath)% This function compile_cpp_files will compile the c++ code files% which wraps OpenNI for the Kinect in Matlab.%% Please install first on your computer:% - NITE-Bin-Win32-v1.3.0.18% - OpenNI-Bin-Win32-v1.0.0.25%% Just execute by:%% compile_c_files%% or with specifying the OpenNI path%% compile_cpp_files('C: Program Files (x86) OpenNI ');%%openNI64.lib if(nargin. I was having issues installing this on Mac OS X 10.7.4 (11E53), MATLAB R2011a 64-bit.
I have the latest version of Xcode installed at the time (4.3.3). The exact error I was having can be found. In order to solve this, I first changed compile_cpp_files as directed by Tim earlier (changing OpenNiPathInclude and OpenNiPathLib, modifying the mex command to build 64-bit versions). Then, I needed to change my ~/.matlab/R2011a/mexopts.sh script on line 167 - changing SDKROOT to '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk' instead of the (now outdated) '/Developer' location.
Hi all, I am having troubles with mxNiDeleteContext. When I call it, Matlab freezes on 'Busy' and there's no way to recover but with a killall. I also tried to execute the mxNiDeleteContext in a for loop on each non-zero value of the handles vector, both in normal and in debug mode, but the situation doesn't change. I tested it both on a Ubuntu 11.04 with Matlab R2010b and on a Ubuntu 12.04 with Matlab 2012a.
Did someone encounter similar problems? Any clue about it? Thank you so much for your help!!! Just a quick note, I was able to resolve the '/usr/bin/ld: cannot find -lopenNI' issue with ubuntu 12.04 by performing the following steps: 1. Creating a symbolic link to libOpenNI.so ->ln -s /path/to/libOpenNI.so.1.0.0 /path/to/libOpenNI.so 2. Temporary update the environmental variable path in matlab to point to openNI library and Include folder by adding the following lines to the top of the compile_cpp_files.m file: ->setenv('OPEN_NI_LIB', '/path/to/openNI/lib'); ->setenv('OPEN_NI_INCLUDE', '/path/to/openNI/Include'); 3. Changing the mex function call in the compile_cpp_files.m to refer to '-lOpenNI' instead of '-lopenNI' since the libOpenNI.so has the letter o capitalized.
I managed to get the Kinect working on both my Mac and Windows now so thank you all for your aid. However I have yet to work out a way to get the information I want from the Kinect into Matlab. What I want is to be able to grab a set of x,y,z co-ordinates from the Kinect. At this point it doesn't matter for which body part.
Hand tracker or skeleton model being the obvious options I have been trying to compile them in a way that allows a real time stream to an expanding variable. However I am stumped and out of my depth. Any advice or help would be greatly apreshiated. I found this to be a great contribution.
However, I am facing problems when trying to detect skeleton nodes. I am using Fedora x64 and Matlab 2011a.
In my system both OpenNI and NITE are working from the command line (1.5.X versions), but in Matlab wrapper only examples not using skeleton detection are executing correctly. When I try the ExampleSK I get the error: King Kong Pc Game Crackers there. ??? Error using ==>mxNiSkeleton No User Node in Kinect Context Error in ==>ExampleSK at 12 Pos= mxNiSkeleton(KinectHandles); If I incorporate a User node in the XML configuration file such as:, then the error I get when executing ExampleSK is:??? Error using ==>mxNiCreateContext Kinect Error 2 Error in ==>ExampleSK at 9 KinectHandle=mxNiCreateContext(SAMPLE_XML_PATH).
Please can you help me with the following error can not find the solution thank you very much: One or more of the Following nodes not could be enumerated: Device: PrimeSense/SensorV2/5.1.0.41: The device is not connected!?? Error using ==>mxNiCreateContext Error Kinect Error in ==>ExampleIR at 5 KinectHandles = mxNiCreateContext (SAMPLE_XML_PATH); Software: I use is: win7 64 bit matlab 2011th, visual studio c + + 2010, driver correctly detects the engine, audio and camera, and tried with stable and unstable PrimeSense is the same. In the examples C: Program Files OpenNI Samples Bin64 Release shows: Device: PrimeSense/SensorV2/5.1.0.41: The device is not connected!
I do thank you. Update to my previous post, I was eventually able to get this software to compile and run. I had to do three main things to make this work on a 64-bit version of Matlab in OS X Lion: 0. Install universal (32/64 bit) versions of Open NI libraries.
Provide the explicit location of the Open NI libraries to mex. Tell mex to not downgraded the MX library to 32-bit To accomplish #1 and #2 above, I made the following changes in the compile_cpp_files script: a. OpenNiPathInclude='/usr/include/ni/'; b. OpenNiPathLib='/usr/lib'; c.
Mex('-v',['-DMX_COMPAT_32_OFF -L' OpenNiPathLib],'/usr/lib/libOpenNI.dylib',['-I' OpenNiPathInclude],Filename); After that, everything just ran fine. Having trouble with the 'compile_cpp_files' step. I'm using Mac OS X 10.7.3 with Matlab R2011b (64-bit but there's no other option for Mac I think) and Xcode 4.3. I've successfully installed all the Open NI stuff. @Charles: I got it working on Mac OSx (SL 10.6.8).
I believe that the link @Thomas provides is the right solution. However, I found an easier way: I have called the compilation script with the argument of my OpenNI folder that contains Include and Lib dirs, like this compile_cpp_files('/PathTo/OpenNI-Bin-Dev-MacOSX-v1.5.2.23/'). Note that the library starts with a capital letter, so I have changed L34 of the script to mex('-v',['-L' OpenNiPathLib],'-lOpenNI',['-I' OpenNiPathInclude],Filename); It compiled and linked. Then, in Example.m I needed to change the backward slashes ( ) to unix-like forward slashes (/), and it worked. Hope this helps. BTW, your snippet indicates that, despite you are on 10.7, your MATLAB mex uses 10.6 SDKs.
Consider running mex -setup, and editing SDKROOT in /Users/yourUname/.matlab/R2011b/mexopts.sh. Hi all, I'm hoping you can help me. I seem to have reached a problem that was addressed earlier by Joelle but fail to understand how he managed to overcome it. I am running Matlab R2011b on a Mac OS X Lion. I managed to get the Kinect drivers working, proven by being able to run the samples in the NITE and OpenNI folders, however when I try to run the compile_cpp_files code I get the following error. Somehow I was hoping for all the functionality of OpenNI to be available in MATLAB via some toolbox.
I basically want to bootstrap the skeleton-tracking algorithm of OpenNI and enable it to find the tip of an object (e.g. A sword) held in the hand of the user. Is this tool good enough for that purpose or should I stick to coding in C++? I guess if we want to use all the C++ functions of OpenNI, we have to write a C++ file the way u wrote and then bring it to MATLAB (if at all needed). Am I right or is there a better way to go about it, using your tool maybe? I've tested it with 64bits.
You can modify the compile_cpp_files.m as follows: try c = computer; tis64 = strcmp('64',c(end-1:end)); catch me tis64 = 0; end if(nargin. I ran it on Win 7, Matlab 2011a. Followin modifications to compile_cpp_files.m were needed: 1) OpenNiPathLib=getenv('OPEN_NI_LIB64');2) mex('-v',['-L' OpenNiPathLib],'-lopenNI64',['-I' OpenNiPathInclude],Filename); 3)OpenNiPath =getenv('OPEN_NI_INSTALL_PATH64'); ----------------------------------------- I could run the examples with the videos in this package.
However, when I try to feed video from the Kinect camera I get this error: One or more of the following nodes could not be enumerated: Device: PrimeSense/SensorV2/5.0.1.32: The device is not connected! IR: PrimeSense/SensorV2/5.0.1.32: Can't create any node of the requested type! My Kinect is powered on and running, I have also installed the drivers. Please kindly let me know if some else has encountered a similar problem. Matt, I'm using freenect as well but then we are on our own finding calibration and skeletonization code. So I would like to make this OpenNI wrapper work with Matlab in Linux.
I see you are now having problems linking to the openNI library. I believe you can fix this issue by correctly setting your LD_LIBRARY_PATH environment variable BEFORE running Matlab (I've tried using Matlab's setenv() function but it didn't work for me). Here's what you can try from the system shell: $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/openNI/ $ matlab I don't remember now which folder has libopenNI.so, but you should make sure you point to the correct folder on the first command above. Let's us know if this solves your problem. Paulo, I didn't get much further. Hi, Does anybody know about the compilation errors that I am getting?
I am using MATLAB Version 7.1.0.246 (R14) Service Pack 3 with Microsoft Visual C/C++ 7.1. Since nobody else is getting the rather specific compiler error I am getting, I am suspecting it is related to the specific compilers I am using.
Since Matlab 7.1 does not support any compilers newer than Visual Studio.Net 2003, the options are limited. Perhaps I need to switch to newer Matlab. Please let me know.
*Pramod: mex -setup is showing following compilers- Would you like mex to locate installed compilers [y]/n? Hi Dirk, I'm using Win7(32), Matlab 2008b, VS2010 Ultimate. I installed unstable updated OpenNI and NITE according to your suggestion. I'm getting following error which is similar to previous posting's error.??? Error using ==>mex at 213 Unable to complete successfully. Error in ==>compile_cpp_files at 34 mex('-v',['-L' OpenNiPathLib],'-lopenNI',['-I' OpenNiPathInclude],Filename); Shall I show the OpenNI installation directory in the 1st line like 'function compile_cpp_files('C: Program Files OpenNI ')'. I'm littel bit cofused here.
In the 'C: Program Files OpenNI Lib ' 'openNI.lib' is available. Kindly help me out please.