Add Microsoft Kinect v2 sensor driver#33
Add Microsoft Kinect v2 sensor driver#33mvm9289 wants to merge 10 commits intostructureio:masterfrom
Conversation
First driver port based on the Kinect OpenNI2 driver (first version of the sensor) Videomodes supported: *Color: RGB888 1920x1080 30fps *Depth: DepthPixel 512x424 30fps *IR: Gray16 (ushort) 512x424 30fps Features supported: -Depth & color registration mode
The color stream (1920x1080) is too big to be handled by the OpenNI player. This change partially fixes this issue adding a videomode of size 960x540. Making use of such videomode both OpenNI recorder and player works fine.
This change initializes a base timestamp at device creation time. Such timestamp is used in the stream implementation constructor so all the different streams uses the same timestamp basis.
The code has been refactored and cleaned-up. It seems the driver works well now and does not make the GPU driver to crash.
When using DEPTH_TO_COLOR_REGISTRATION some vertical gaps remains due to the different aspect ratio between color and depth images. This change solves the problem adding a vertical interpolation on those empty pixels using a kernel of diameter 1 cell.
…sor to let the
Kinect service to start
Open() call on an IKinectSensor starts the Kinect service, but it takes some
time to initialize. If get_IsAvailable() is called right away, it will return
false. Waiting half a second after calling Open() is enough to let the Kinect
service properly initialize and get_IsAvailable() will return true if an actual
Kinect v2 sensor is connected.
64482e7 to
7024856
Compare
|
Hello Miguel, Nice work! I could build with Visual Studio 2013 and run the samples using the new driver. 3 things, though:
In order to solve these while keeping your current work, I created a kinect2 branch, forked from develop, using your commits verbatim (with only the occasional first-line funkyness fixed), and with the MSVC12 solution upgrade applied on top. It's here: https://github.com/occipital/OpenNI2/commits/kinect2 If it works for you too, you can use it as a base for further pull requests. This is until we decide what to do regarding the minimum visual studio versions required by the checked-in projects. Thanks again for the great work!NT |
|
Thanks Nicolas for your comments! I didn't upgrade the whole OpenNI solution to MSVC12 because I wanted to touch the least as possible. Thanks for doing it. I'll clone the new branch you just created and I'll use it for future pull requests. |
|
I have the same question with @ani-rudh . How can I solve it? |
|
@harry19902002 : unload the "kinect" project under drivers. It's for kinect version 1. If you do not have the kinect 1.x sdk, then this error is encountered |
1 similar comment
|
@harry19902002 : unload the "kinect" project under drivers. It's for kinect version 1. If you do not have the kinect 1.x sdk, then this error is encountered |
|
@ani-rudh Thanks you very much.I can compile the project. But it still explains "no device found". I have not found the reason. |
|
Copy the kinect2.dll file to same directory as the simpleviewer.exe, it
|
This pull requests includes different commits which add Microsoft Kinect v2 support in OpenNI 2. It implements a new OpenNI 2 driver based on the official Microsoft SDK.
Videomodes supported by this driver:
Features supported by this driver: