-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Works with Microsoft Kinect? #5
Comments
Any idea about running Kintinuous with Kinect v2.0? I have installed libfreenect2, and successfully run the test program of libfreenect2: But there is no jerry@tu1504:~/libs/libfreenect2/build/lib$ ls
libfreenect2-openni2.so libfreenect2.so libfreenect2.so.0.2.0
libfreenect2-openni2.so.0 libfreenect2.so.0.2 And I tried to: ln -s libfreenect2-openni2.so ~/lab/Kintinuous/deps/OpenNI2/Bin/x64-Release/OpenNI2/Drivers/ But that didn't work. |
I haven't tried it with Kinect v2.0 I'm afraid. But I don't believe the libfreenect2 driver works with OpenNI2, you need to directly interface it. |
Okay, I'm trying to do this. If I success, I will record my steps here. |
Great software, if Kinect v2 not compatible at this moment , any other camera support except Kinect v1? |
No, but it's easy to add. |
KinectV2 is working after installing freenect2 with OpenNI2 support. Depth intrinsic matrix can be passed as a file through cli. |
Oh well done ! Happy to hear that, have to play with ! |
@robnsngh it's a big news for me~ It cheers me up ! |
@zry656565 hey, buddy! What' more, I tried to use the Logger2 but it did't work well . |
Hi @mp3guy , Thank you for such great open source project! |
@kingsleynuaa |
Hi, @robnsngh Ps. I know this is not a big deal but I'm still a little confused, are we talking about Kintinuous or ElasticFusion? Because this is the Kintinuous repo and @mp3guy linked the ElasticFusion lib( |
I'm attempting to get Kintinuous working with a Kinect. I've built the libfreenect driver and linked it to /usr/lib/OpenNI2/Drivers/. I assume this is the correct place to link, given that OpenNI2 is installed globally on my machine and not in a deps/ directory. However, I get a "no devices found" error when running Kintinuous. Is there something else I needed to do that I'm missing? As a test, I did run glview from libfreenect, and it's working fine. So it's not a hardware problem. |
To follow up on my previous query. After hours of trying, I never got it working on my machine. Now I've re-installed Ubuntu (16.04), and it does work on a fresh install. Not sure what was creating the problem before (on an old 14.04 install). I compiled libfreenect midway through the standard build procedure. If I remember correctly, it was after OpenNI2 and ffmpeg. |
@speleophysics Hi, did you get it working with Kinect2? I'm able to get the driver working and got both rgb and depth image with NiViewer2. But I got this following error while running Kintinuous: Kintinuous: /opt/rgbd/Kintinuous/src/utils/OpenNI2Interface.cpp:119: OpenNI2Interface::OpenNI2Interface(int, int, int): Assertion `findMode(width, height, fps) && "Sorry, mode not supported!"' failed. At first glance I thought Kintinuous is trying to match the width/height between rgb and depth image, which are not equal when the resolution is 960x540 or 1920x1080. |
I am using an original connect, not a Kinect2. |
Hi @riematrix Point resolution: 11.7 millimetres |
@JunshengFu No. But i believe there should be a solution. |
I got the same error with you buddy... Kintinuous: /home/wine/Kintinuous/src/utils/OpenNI2Interface.cpp:119: OpenNI2Interface::OpenNI2Interface(int, int, int): Assertion `findMode(width, height, fps) && "Sorry, mode not supported!"' failed. |
That function queries the OpenNI api to ask if the resolution you requested is supported by the driver. Currently the system only supports depth and rgb streams that are the same size. |
Hello.Does anybody get it working with KinectV1? |
@gaizixuan0128 I would suggest to debug as following steps
|
@JunshengFu |
@gaizixuan0128 in this case it should be: ln -s /home/yourPathTo/libFreenectDriver.so /home/yourPathTo/Drivers/ |
@JunshengFu Thank you!I will try again |
@JunshengFu |
@spyd3rweb |
@JunshengFu Hello, Are you succeed in getting it working with KinectV1? |
@taoxiaobin Yes, I got it working with Kinectv1. |
The change in resolution enables the use of the Kinect V2, however I can see 2 black horizontal strips in the RGB image, which then result in the point cloud having black texture. Is there a way to overcome this issue? |
It took awhile to figure out how to make Kintinuous working with Kinect V2, but finally it worked! It seems mine also has the "black horizontal strips" problem as @roliveiradoteu 's |
@roliveiradoteu @AutoIC |
from what I can see the image produced by libfreenect2 is flipped, the code needs to be updated if it is to work with the Kinect2 |
@wine3603 Would you mind telling us how you make your kinect2 run in ElasticFusion? THX a lot |
I am able to get my Kinect 2 working with NiViewer and libfreenect2. However I can't get Kintinuous to work:
Where do I have to put libfreenect2-openni2.so to make it work with Kintinuous? |
As @speleophysics issue, I'm having problems to get work Kintinuous with KinectV1, I'm in ubuntu 14.04, I compiled libfreenect successfully, and linked the drivers with: ln -s lib/OpenNI2-FreenectDriver/libFreenectDriver.so ../../ElasticFusion/deps/OpenNI2/Bin/x64-Release/OpenNI2/Drivers/ I test the kinect with glview from libfreenect, and it works fine. Thanks in advance |
Has anyone any more ideas on this? @MarcSN311 did you find a fix? I'm having the same issue as you. Point resolution: 11.7 millimetres I have libFreenect2 installed and can successfully view the test feed through that. |
So this is another year of this issue. In short, I compiled libfreenect2 manually and Kintinuous is working with Kinect V2. Therefore I post it here in case someone needs it. So I think you will need to install OpenNI2 before building libfreenect2, as while building libfreenect2 it will try to detect if OpenNI2 is installed. I'm not sure if the Then I think you will have The next step, since Kintinuous defines the resolution of depth camera as 640x480, you will need to change the according pairs in I think that's it. I might miss something, so feel free to ask questions and see if I can help. Thanks. (By the way I cannot get a good point cloud however...) |
You can get it to work by adding the freenect driver to OpenNI2
git clone https://github.com/OpenKinect/libfreenect.git
cd libfreenect
mkdir build
cd build
cmake .. -DBUILD_OPENNI2_DRIVER=ON
make
ln -s lib/OpenNI2-FreenectDriver/libFreenectDriver.so ../../ElasticFusion/deps/OpenNI2/Bin/x64-Release/OpenNI2/Drivers/
The text was updated successfully, but these errors were encountered: