Coder Social home page Coder Social logo

Comments (8)

giacomodabisias avatar giacomodabisias commented on July 1, 2024

Hi,
you did not install libfreenect2 in /usr/local so either go into the build folder of libfreenect2 and execute sudo make install or if you have installed it in a separate prefix go into the grabber build folder and execute ccmake .. and set the freenect2 variables

from libfreenect2pclgrabber.

hanshammel1337 avatar hanshammel1337 commented on July 1, 2024

thank you! following the libfreenect2 standard installation, this should do the work in CMakeLists.txt from libfreenect2pclgrabber:
set(FREENECT2_INCLUDE_DIRS "/home/$ENV{USER}/freenect2/include")
set(FREENECT2_LIBRARY "/home/$ENV{USER}/freenect2/lib/libfreenect2.so")

nevertheless, now it works with CPU processor but not with Processor freenectprocessor = OPENCL; i changed OFF to ON in CMakeLists.txt fpr WITH_OPENCL.
have you tested it with OPENCL? libfreenect2 with iai_kinect run good with openCL on my machine, but the grabber does not :(


ben@ben-laptop:~/libfreenect2pclgrabber/build$ ./Kinect2Grabber
Syntax is: ./Kinect2Grabber [-processor 0|1|2] -processor options 0,1,2,3 correspond to CPU, OPENCL, OPENGL, CUDA respectively
Press 's' to store a cloud
Press 'x' to store the calibrations.
[Info] [Freenect2Impl] enumerating devices...
[Info] [Freenect2Impl] 12 usb devices connected
[Info] [Freenect2Impl] found valid Kinect v2 @2:3 with serial 006870123456
[Info] [Freenect2Impl] found 1 devices
creating OpenCL processor
[Error] [OpenCLDepthPacketProcessorImpl] cl::Platform::get(&platforms): -1001
[Error] [OpenCLAllocator] b->buffer = cl::Buffer(context, CL_MEM_WRITE_ONLY | CL_MEM_ALLOC_HOST_PTR, size, NULL, &err): -34
[Error] [OpenCLAllocator] b->buffer = cl::Buffer(context, CL_MEM_WRITE_ONLY | CL_MEM_ALLOC_HOST_PTR, size, NULL, &err): -34
[Error] [OpenCLAllocator] b->buffer = cl::Buffer(context, CL_MEM_READ_ONLY | CL_MEM_ALLOC_HOST_PTR, size, NULL, &err): -34
[Info] [Freenect2DeviceImpl] opening...
[Info] [Freenect2DeviceImpl] transfer pool sizes rgb: 20_16384 ir: 60_8*33792
[Info] [Freenect2DeviceImpl] opened
[Info] [Freenect2DeviceImpl] starting...
[Error] [OpenCLDepthPacketProcessorImpl] OpenCLDepthPacketProcessor is not initialized!
[Error] [OpenCLDepthPacketProcessorImpl] OpenCLDepthPacketProcessor is not initialized!
[Error] [OpenCLDepthPacketProcessorImpl] OpenCLDepthPacketProcessor is not initialized!
[Info] [Freenect2DeviceImpl] submitting rgb transfers...
[Info] [Freenect2DeviceImpl] submitting depth transfers...
[Error] [DepthPacketStreamParser] Packet buffer is NULL
[Error] [DepthPacketStreamParser] Packet buffer is NULL
[Error] [DepthPacketStreamParser] Packet buffer is NULL

from libfreenect2pclgrabber.

giacomodabisias avatar giacomodabisias commented on July 1, 2024

Hi,
Did you try to execute the grabber passing 0, 1, 2 and so on to see if the other processors work?

from libfreenect2pclgrabber.

hanshammel1337 avatar hanshammel1337 commented on July 1, 2024

Yes i did.
0 = CPU, works fine, but slow.
1 = should be opencl, but falls back to creating Cpu processor
2 = should be opengl, but falls back to creating Cpu processor (opengl not working on my machine, also not working with Protonect, opencl is fine with Protonect)

and when i hardcode opencl as processor in test.cpp as written in my previous post, the output is like posted there.

from libfreenect2pclgrabber.

giacomodabisias avatar giacomodabisias commented on July 1, 2024

Did you also test CUDA?

Il 09 Ago 2016 10:03, "Benjamin" [email protected] ha scritto:

Yes i did.
0 = CPU, works fine, but slow.
1 = should be opencl, but falls back to creating Cpu processor
2 = should be opengl, but falls back to creating Cpu processor (opengl
not working on my machine)

and when i hardcode opencl as processor in test.cpp as written in my
previous post, the output is like posted there.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#19 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFm4zNQ_vBi91HdXBxpmbZukMBoDT6LDks5qeDRCgaJpZM4Je8ws
.

from libfreenect2pclgrabber.

giacomodabisias avatar giacomodabisias commented on July 1, 2024

Probably Protonen uses the opencl lib inside of the libfreenect2 folder. Did you install opencv on you system? I think the grabber can't find the opencl lib at runtime

from libfreenect2pclgrabber.

hanshammel1337 avatar hanshammel1337 commented on July 1, 2024

I didn't test CUDA because my system has amd graphic card.
Yes, opencv is installed in version 2.4.8

from libfreenect2pclgrabber.

giacomodabisias avatar giacomodabisias commented on July 1, 2024

Sorry I meant opencl...autocorrect

from libfreenect2pclgrabber.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.