Xtion Pro Live: Unterschied zwischen den Versionen

Aus HSHL Mechatronik
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Zeile 78: Zeile 78:
== Fazit ==
== Fazit ==
OpenNI lässt sich '''nicht''' mit MSVC 2012 compilieren.
OpenNI lässt sich '''nicht''' mit MSVC 2012 compilieren.
<source lang="matlab" style="font-size:medium">
mxNiChangeDepthViewPoint.cpp
c:\program files\openni\include\XnPlatform.h(58) : fatal error C1189: #error :  Xiron Platform Abstraction Layer - Win32 - Microsoft Visual Studio versions above 2010 (10.0) are not supported!
  C:\PROGRA~1\MATLAB\R2013B\BIN\MEX.PL: Error: Compile of 'mxNiChangeDepthViewPoint.cpp' failed.
</source>


== Weiterführende Links ==
== Weiterführende Links ==

Version vom 31. Juli 2014, 16:24 Uhr

Xtion Pro Live Spec

Verwendung der Xtion Pro Live unter Matlab

Vorraussetzung:

1. Treiber installieren

2. Xtion anschließen

Der USB Treiber müsste automatisch gefunden werden

3. MEX-Compiler einstellen

>> mex -setup
 
Welcome to mex -setup.  This utility will help you set up  
a default compiler.  For a list of supported compilers, see  
http://www.mathworks.com/support/compilers/R2013b/win32.html 
 
Please choose your compiler for building MEX-files: 
 
Would you like mex to locate installed compilers [y]/n? y
 
Select a compiler: 
[1] Lcc-win32 C 2.4.1 in C:\PROGRA~1\MATLAB\R2013b\sys\lcc 
[2] Microsoft Visual C++ 2012 in M:\Programme\Microsoft Visual Studio 11.0 
 
[0] None 
 
Compiler: 2
 
Please verify your choices: 
 
Compiler: Microsoft Visual C++ 2012  
Location: M:\Programme\Microsoft Visual Studio 11.0 
 
Are these correct [y]/n? y

4. Arbeitsverzeichnis wechseln

>> cd 'd:\SVN\Studentische_Arbeiten\PS_Markus_Kortmann\SRC\Kinect_Matlab_Demo\OpenNI2\'

5. .mexw32/.mexw64 Dateien compilieren

>> compile_cpp_files

6. Beispiel starten

>> Example_fps

Ergebnis ist die Darstellung der RGB- (links) und der Tiefenkamera (rechts).

Die Bilder werden mit max. 30 fps geliefert.

Darstellung der RGB- (links) und der Tiefenkamera (rechts)

http://193.175.248.171/wiki/index.php/

Hinweis: Der Target Installer für Kinect vom Matlab funktioniert nicht mit der Xtion Pro Live.

Using the Kinect® for Windows® from Image Acquisition Toolbox

GCC Compiler installieren

How do I install a compatible GCC or G++ compiler on a for use with MEX and the MATLAB Compiler?

Videoanleitung

Versuch 2 - OpenNI Version 1

Aus Neugierde probiere ich die Installation der Version 1 aus:

  • OpenNI 1.5.4.0
  • NITE 1.5.2.21
  • SensorKinect093 v5.1.2.1

Fazit

OpenNI lässt sich nicht mit MSVC 2012 compilieren.

mxNiChangeDepthViewPoint.cpp 
c:\program files\openni\include\XnPlatform.h(58) : fatal error C1189: #error :  Xiron Platform Abstraction Layer - Win32 - Microsoft Visual Studio versions above 2010 (10.0) are not supported! 
 
  C:\PROGRA~1\MATLAB\R2013B\BIN\MEX.PL: Error: Compile of 'mxNiChangeDepthViewPoint.cpp' failed.


Weiterführende Links