Comments (8)
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.
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.
Hi,
Did you try to execute the grabber passing 0, 1, 2 and so on to see if the other processors work?
from libfreenect2pclgrabber.
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.
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.
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.
I didn't test CUDA because my system has amd graphic card.
Yes, opencv is installed in version 2.4.8
from libfreenect2pclgrabber.
Sorry I meant opencl...autocorrect
from libfreenect2pclgrabber.
Related Issues (20)
- Writing cloud to PLY HOT 6
- 'libfreenect2/config.h' file not found HOT 3
- Is it possible to apply to multi Kinects ? HOT 50
- Packet stream parse issues HOT 9
- CUDA error: K2G unable to locate libfreenect2 HOT 3
- MultiKinect2Grabber packets lost without displaying point cloud? HOT 32
- libfreenect2pclgrabber not working HOT 29
- pure virtual method called terminate called without an active exception HOT 5
- k2g library error HOT 1
- Undefined reference to libfreenect2 HOT 1
- 2
- Increasing maximum depth of pointcloud HOT 1
- Is it possible to build libfreenect2pclgrabber on a system without OpenGL? HOT 4
- error: expected type-specifier on make
- make error HOT 2
- pcl_viewer visualizes everything upsidedown
- ERROR BUILDING HOT 2
- Usage of iai registration functions HOT 2
- Error while making the file ( error: no viable overloaded '=' cloud = k2g.getCloud(); ) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libfreenect2pclgrabber.