00001 /***************************************************************************** 00002 * * 00003 * OpenNI 2.x Alpha * 00004 * Copyright (C) 2012 PrimeSense Ltd. * 00005 * * 00006 * This file is part of OpenNI. * 00007 * * 00008 * Licensed under the Apache License, Version 2.0 (the "License"); * 00009 * you may not use this file except in compliance with the License. * 00010 * You may obtain a copy of the License at * 00011 * * 00012 * http://www.apache.org/licenses/LICENSE-2.0 * 00013 * * 00014 * Unless required by applicable law or agreed to in writing, software * 00015 * distributed under the License is distributed on an "AS IS" BASIS, * 00016 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * 00017 * See the License for the specific language governing permissions and * 00018 * limitations under the License. * 00019 * * 00020 *****************************************************************************/ 00021 #ifndef KINECTPROPERTIES_H 00022 #define KINECTPROPERTIES_H 00023 00024 #include <OniCTypes.h> 00025 00026 /* 00027 * private properties of Microsoft Kinect devices. 00028 * 00029 * @remarks 00030 * properties structure is 0x045eXXYY (045e = Microsoft's USB vendor ID) 00031 * where XX is range and YY is code. 00032 * range values: 00033 * 00 - common stream properties 00034 * 10 - depth stream properties 00035 * 20 - color stream properties 00036 * E0 - device commands 00037 * F0 - device properties 00038 */ 00039 enum 00040 { 00041 KINECT_PROPERTY_BASE = 0x045e0000, 00042 00043 /*******************************************************************/ 00044 /* Common stream properties (00-) */ 00045 /*******************************************************************/ 00046 00047 /*******************************************************************/ 00048 /* Depth stream properties (10-) */ 00049 /*******************************************************************/ 00050 00055 KINECT_DEPTH_PROPERTY_CLOSE_RANGE = KINECT_PROPERTY_BASE + 0x1001, 00056 00057 /*******************************************************************/ 00058 /* Color stream properties (20-) */ 00059 /*******************************************************************/ 00060 00061 /*******************************************************************/ 00062 /* Device commands (E0-) */ 00063 /*******************************************************************/ 00064 00065 /*******************************************************************/ 00066 /* Device properties (F0-) */ 00067 /*******************************************************************/ 00068 00069 /* 3D sensing properties (F0-) */ 00070 00075 KINECT_DEVICE_PROPERTY_EMITTER_STATE = KINECT_PROPERTY_BASE + 0xF001, 00076 00077 /* Non- 3D sensing bonus properties (F8) */ 00078 00082 KINECT_DEVICE_PROPERTY_CAMERA_ELEVATION = KINECT_PROPERTY_BASE + 0xF801, 00083 00087 KINECT_DEVICE_PROPERTY_ACCELEROMETER = KINECT_PROPERTY_BASE + 0xF802, 00088 00093 KINECT_DEVICE_PROPERTY_AUDIO_ARRAY_ID = KINECT_PROPERTY_BASE + 0xF803, 00094 00095 }; 00096 00097 typedef struct 00098 { 00099 float x; 00100 float y; 00101 float z; 00102 } KinectVector3f; 00103 00104 #endif // KINECTPROPERTIES_H