Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Robotics using Python

You're reading from   Learning Robotics using Python Bring robotics projects to life with Python! Discover how to harness everything from Blender to ROS and OpenCV with one of our most popular robotics books.

Arrow left icon
Product type Paperback
Published in May 2015
Publisher Packt
ISBN-13 9781783287536
Length 330 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Toc

Table of Contents (14) Chapters Close

Preface 1. Introduction to Robotics FREE CHAPTER 2. Mechanical Design of a Service Robot 3. Working with Robot Simulation Using ROS and Gazebo 4. Designing ChefBot Hardware 5. Working with Robotic Actuators and Wheel Encoders 6. Working with Robotic Sensors 7. Programming Vision Sensors Using Python and ROS 8. Working with Speech Recognition and Synthesis Using Python and ROS 9. Applying Artificial Intelligence to ChefBot Using Python 10. Integration of ChefBot Hardware and Interfacing it into ROS, Using Python 11. Designing a GUI for a Robot Using Qt and Python 12. The Calibration and Testing of ChefBot Index

Programming Kinect with Python using ROS, OpenCV, and OpenNI


Let's look at how we can interface and work with the Kinect sensor in ROS. ROS is bundled with OpenNI driver, which can fetch RGB and the depth image of Kinect. This package can be used for Microsoft Kinect, PrimeSense Carmine, Asus Xtion Pro, and Pro Live.

This driver mainly publishes raw depth, RGB, and IR image streams. The openni_launch package will install packages such as openni_camera and openni_launch. The openni_camera package is the Kinect driver that publishes raw data and sensor information, whereas the openni_launch package contains ROS launch files. It's basically an XML file that launches multiple nodes at a time and publishes data such as point clouds.

How to launch OpenNI driver

The following command will open the OpenNI device and load all nodelets to convert raw depth/RGB/IR streams to depth images, disparity images, and point clouds. The ROS nodelet package is designed to provide a way to run multiple algorithms...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image