Code Monkey home page Code Monkey logo

Comments (29)

giacomodabisias avatar giacomodabisias commented on July 2, 2024

Hi, why did you change names?
what exactly did you do to build the project?

from libfreenect2pclgrabber.

nomi321 avatar nomi321 commented on July 2, 2024

thanks for your reply. no solid reason. just was making own project so that's y named it .... i simply copied code from test.cpp and created pcl.cpp and copied code from CMakelist.txt. and then build the project first running Cmake .. and then make and then got the error.

I have attached complete folder. I had installed previously libfreenect2 and freenect2 using this
https://github.com/wiedemeyer/libfreenect2
and successsfully ran Protonect

sensor_interface.tar.gz

from libfreenect2pclgrabber.

giacomodabisias avatar giacomodabisias commented on July 2, 2024

ok.
First, did you run sudo make install in the libfreenect2 build folder?

Also pelase download my repo and try to build it with no modification first. Just create a build folder, move into it and run cmake .. and then make

from libfreenect2pclgrabber.

nomi321 avatar nomi321 commented on July 2, 2024

when i run sudo make install in the libfreenect2 build folder i got this output

noaman@Rime:~/libfreenect2/build$ sudo make install
[ 3%] Built target generate_resources_tool
[ 69%] Built target freenect2
[ 90%] Built target freenect2-openni2
[100%] Built target Protonect
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Up-to-date: /home/noaman/freenect2/lib/libfreenect2.so.0.2.0
-- Up-to-date: /home/noaman/freenect2/lib/libfreenect2.so.0.2
-- Up-to-date: /home/noaman/freenect2/lib/libfreenect2.so
-- Installing: /home/noaman/freenect2/include/libfreenect2
-- Up-to-date: /home/noaman/freenect2/include/libfreenect2/frame_listener_impl.h
-- Up-to-date: /home/noaman/freenect2/include/libfreenect2/registration.h
-- Up-to-date: /home/noaman/freenect2/include/libfreenect2/frame_listener.hpp
-- Up-to-date: /home/noaman/freenect2/include/libfreenect2/libfreenect2.hpp
-- Up-to-date: /home/noaman/freenect2/include/libfreenect2/packet_pipeline.h
-- Up-to-date: /home/noaman/freenect2/include/libfreenect2/logger.h
-- Installing: /home/noaman/freenect2/include/libfreenect2
-- Up-to-date: /home/noaman/freenect2/include/libfreenect2/export.h
-- Up-to-date: /home/noaman/freenect2/include/libfreenect2/config.h
-- Up-to-date: /home/noaman/freenect2/lib/cmake/freenect2/freenect2Config.cmake
-- Up-to-date: /home/noaman/freenect2/lib/pkgconfig/freenect2.pc
-- Up-to-date: /home/noaman/freenect2/lib/OpenNI2/Drivers/libfreenect2-openni2.so.0
-- Up-to-date: /home/noaman/freenect2/lib/OpenNI2/Drivers/libfreenect2-openni2.so

from libfreenect2pclgrabber.

giacomodabisias avatar giacomodabisias commented on July 2, 2024

ok good, then continue with the next step

from libfreenect2pclgrabber.

nomi321 avatar nomi321 commented on July 2, 2024

then after downloading your repo without any modification i simply created build folder and ran cmake.. and i got this

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
FREENECT2_LIBRARY
linked by target "Kinect2Grabber" in directory /home/noaman/libfreenect2pclgrabber-master
linked by target "MultiKinect2Grabber" in directory /home/noaman/libfreenect2pclgrabber-master

-- Configuring incomplete, errors occurred!

from libfreenect2pclgrabber.

nomi321 avatar nomi321 commented on July 2, 2024

thanks for your prompt response ...

from libfreenect2pclgrabber.

nomi321 avatar nomi321 commented on July 2, 2024

why it is not able to find it? Will i have to add something else in CMakelist.txt ?

from libfreenect2pclgrabber.

giacomodabisias avatar giacomodabisias commented on July 2, 2024

You did not install the library in the usual paths but in your own specific path so either you install them in /usr/local/ by setting in the libfreenect cmake file the CMAKE_INSTALL_PREFIX to that path or you edit my cmake option to find the library in your path. In both cases you can do that by using ccmake .. in the build folder. This opens a simple gui to set the variables

from libfreenect2pclgrabber.

nomi321 avatar nomi321 commented on July 2, 2024

ok i added these two lines
set(FREENECT2_INCLUDE_DIRS "/usr/local/include/libfreenect2/include")
set(FREENECT2_LIBRARY "/usr/local/include/libfreenect2")

and copied libfreenect2 under the same path. now it build with the warning. Is it fine ?

WARNING: Target "Kinect2Grabber" requests linking to directory "/usr/local/lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "MultiKinect2Grabber" requests linking to directory "/usr/local/lib". Targets may link only to libraries. CMake is dropping the item.
-- Generating done
-- Build files have been written to: /home/noaman/libfreenect2pclgrabber-master/build

from libfreenect2pclgrabber.

giacomodabisias avatar giacomodabisias commented on July 2, 2024

no don't modify the cmake. Just set the options in the cmake as I told you.
Go in the libfrenect2 build folder and execute ccmake .. and set the CMAKE_INSTALL_PREFIX to /usr/local/ and press c and then e and then g to generate the make file. Then execute sudo make install and you will see that you can compile my grabber

from libfreenect2pclgrabber.

nomi321 avatar nomi321 commented on July 2, 2024

thanks a lot sir. it is working now. sir it is giving value of delta? may i ask what is this ?
it is showing two windows.

  1. 3D Viewer
  2. Color
    Sir how can i use this info using point cloud library to get point cloud or pcd file.

I shall be very thankful for your guidance.
I am using it for object recognition.

from libfreenect2pclgrabber.

giacomodabisias avatar giacomodabisias commented on July 2, 2024

If you look at test.cpp you see how it works. Just include the k2g.h and the other includes in your project.

from libfreenect2pclgrabber.

nomi321 avatar nomi321 commented on July 2, 2024

so it mean i can use the same test.cpp with point cloud library to extract point cloud and perform the required process or there are some other steps involved too. I am searching but finding not a reasonable procedure. Please elaborate if you know as I am totally new with PCL and Kinect2.

Thanks in advance ...

from libfreenect2pclgrabber.

giacomodabisias avatar giacomodabisias commented on July 2, 2024

Hi,

as you can see In the while cycle I grab the cloud and the image frames. You can do the same in your code to get the frames and the PCL point cloud. If you don't understand the test.cpp code I suggest first to look a bit more into C++ programming.

The delta is the time passed between grabbing two clouds and serialization is used if you want to store the cloudson disk. If you read the help in the code you will find everything explained.

from libfreenect2pclgrabber.

nomi321 avatar nomi321 commented on July 2, 2024

ok sir i will check .. thanks a lot for your precious time ... i will disturb you if i have any issue regarding this ... again thanks a lot

from libfreenect2pclgrabber.

nomi321 avatar nomi321 commented on July 2, 2024

however i m not finding any help in the code however I am trying to get it ....

from libfreenect2pclgrabber.

nomi321 avatar nomi321 commented on July 2, 2024

one more thing. it keeps continously running. moreover when i press s to save a cloud then nothing happens. how can i save a cloud and in which format ?

from libfreenect2pclgrabber.

giacomodabisias avatar giacomodabisias commented on July 2, 2024

When you press s and have compiled my code with the WITH_SERIALIZATION cmake option, the program starts to store in a file in the same folder as the executable a stream of point clouds. This is just a sequence of pcl points with some metadata at the beginning.

The code is made as example to show how to use the grabber; obviously it just runs forever. Just take from the code what you need and write your own program using the extracted data from the grabber

from libfreenect2pclgrabber.

nomi321 avatar nomi321 commented on July 2, 2024

ok sir how can I increase the size of the window this 3D viewer. I am making my own project now and I will soon share with you my effort.

thanks in advance.

from libfreenect2pclgrabber.

nomi321 avatar nomi321 commented on July 2, 2024

plus sir I didn't get this point that "cmake option with the WITH_SERIALIZATION" if you can explain I shall be thankful to you

from libfreenect2pclgrabber.

giacomodabisias avatar giacomodabisias commented on July 2, 2024

to change the size of the viewer have a look at the pcl doxygen
documentation.
I would suggest also to study cmake since its quite fundamental. Its a
compilation option to enable the part of code which enables serialization

2016-08-03 10:43 GMT+02:00 nomi321 [email protected]:

plus sir I didn't get this point that "cmake option with the
WITH_SERIALIZATION" if you can explain I shall be thankful to you


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

Eng G. Dabisias, PhD Student
Percro Lab, (Laboratory of Perceptual Robotics)
Scuola Superiore Sant'Anna
via Luigi Alamanni 13D, San Giuliano Terme 56010 (PI), Italy
mob.: +39 3480839095
skype: giacomo.dabisias2

from libfreenect2pclgrabber.

nomi321 avatar nomi321 commented on July 2, 2024

sir can u tell me that how can i save multiple clouds using loops on disk ? this question has nothing to do with the subject but I m just requesting for help

from libfreenect2pclgrabber.

nomi321 avatar nomi321 commented on July 2, 2024

thanx sir i have done it by myself ...

from libfreenect2pclgrabber.

nomi321 avatar nomi321 commented on July 2, 2024

thanx sir i have done it by myself ...

from libfreenect2pclgrabber.

nomi321 avatar nomi321 commented on July 2, 2024

thanx sir i have done it by myself ...

from libfreenect2pclgrabber.

nomi321 avatar nomi321 commented on July 2, 2024

thanx sir i have done it by myself ...

from libfreenect2pclgrabber.

nomi321 avatar nomi321 commented on July 2, 2024

Sir I need little help from you please it will hardly take 5 minutes.

in this tutorial
http://pointclouds.org/documentation/tutorials/vfh_recognition.php

there is function named as loadHist

bool
loadHist (const boost::filesystem::path &path, vfh_model &vfh)

here instead of providing the path of vfh header file on disk, I want to provide the vfh descriptor computed in my programme. how can i do this ? Sir I am stucked in this issue since long and finding no solution.

thanks in advance.

from libfreenect2pclgrabber.

giacomodabisias avatar giacomodabisias commented on July 2, 2024

Hi,
these are some really basic steps. please have first a deep look over C++ programming.

Anyway I never used it but iask here http://www.pcl-users.org/

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.