Kinect Hacks by Jared St. Jean
Author:Jared St. Jean [St. Jean, Jared]
Language: eng
Format: epub
ISBN: 9781449315207
Publisher: O’Reilly Media, Inc.
Published: 2013-04-25T04:00:00+00:00
Display a Colored Point Cloud
Continuing on from the previous hack, it’s time to get some data out of your Kinect. There are several ways to get RGB-D images or point clouds. The most convenient seems to be the OpenNIGrabber framework of PCL, which you can download at http://bit.ly/TfZGKQ. To get data from the grabber, we need to give it a function to call with said data. In this function, we can do with the data whatever we please. So, in this section, we write a small piece of code that defines a function to obtain a colored point cloud and, when called, displays the point cloud using the CloudViewer of PCL’s visualization module.
Think of a good name for the project and create a new directory for it using a terminal application:
mkdir _<project-name>_
I will use the name nicv, mostly because it is short and I am not the creative type. Feel free to choose a better name. After creating the project, open your favorite editor (or use gedit if you are new to Ubuntu and don’t want to spend much time choosing an editor) and create a new file called main.cpp in the fresh project directory.
First, we will include the required header files for PCL’s OpenNIGrabber.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7784)
Grails in Action by Glen Smith Peter Ledbrook(7699)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6420)
Kotlin in Action by Dmitry Jemerov(5068)
WordPress Plugin Development Cookbook by Yannick Lefebvre(3812)
Mastering Azure Security by Mustafa Toroman and Tom Janetscheck(3335)
Learning React: Functional Web Development with React and Redux by Banks Alex & Porcello Eve(3088)
Mastering Bitcoin: Programming the Open Blockchain by Andreas M. Antonopoulos(2870)
The Art Of Deception by Kevin Mitnick(2609)
Drugs Unlimited by Mike Power(2468)
Kali Linux - An Ethical Hacker's Cookbook: End-to-end penetration testing solutions by Sharma Himanshu(2315)
The Innovators: How a Group of Hackers, Geniuses, and Geeks Created the Digital Revolution by Walter Isaacson(2312)
Writing for the Web: Creating Compelling Web Content Using Words, Pictures and Sound (Eva Spring's Library) by Lynda Felder(2263)
SEO 2018: Learn search engine optimization with smart internet marketing strategies by Adam Clarke(2194)
A Blueprint for Production-Ready Web Applications: Leverage industry best practices to create complete web apps with Python, TypeScript, and AWS by Dr. Philip Jones(2194)
JavaScript by Example by S Dani Akash(2138)
DarkMarket by Misha Glenny(2084)
Wireless Hacking 101 by Karina Astudillo(2079)
Full-Stack React Projects by Shama Hoque(1991)
