Book Image

Learning Robotics using Python - Second Edition

By : Lentin Joseph
Book Image

Learning Robotics using Python - Second Edition

By: Lentin Joseph

Overview of this book

Robot Operating System (ROS) is one of the most popular robotics software frameworks in research and industry. It has various features for implementing different capabilities in a robot without implementing them from scratch. This book starts by showing you the fundamentals of ROS so you understand the basics of differential robots. Then, you'll learn about robot modeling and how to design and simulate it using ROS. Moving on, we'll design robot hardware and interfacing actuators. Then, you'll learn to configure and program depth sensors and LIDARs using ROS. Finally, you'll create a GUI for your robot using the Qt framework. By the end of this tutorial, you'll have a clear idea of how to integrate and assemble everything into a robot and how to bundle the software package.
Table of Contents (12 chapters)

Working with point clouds using Kinect, ROS, OpenNI, and PCL

A 3D point cloud is a way of representing a 3D environment and 3D objects as collection points along the x, y, and z axes. We can get a point cloud from various sources: Either we can create our point cloud by writing a program or we can generate it from depth sensors or laser scanners.

PCL supports the OpenNI 3D interfaces natively; thus, it can acquire and process data from devices (such as Prime Sensor's 3D cameras, Microsoft Kinect, or Asus Xtion Pro).

PCL will be included in the ROS full desktop installation. Let's see how we can generate and visualize a point cloud in RViz, a data visualization tool in ROS.

Opening the device and generating a point cloud

...