Book Image

ROS Robotics Projects - Second Edition

By : Ramkumar Gandhinathan
Book Image

ROS Robotics Projects - Second Edition

By: Ramkumar Gandhinathan

Overview of this book

Nowadays, heavy industrial robots placed in workcells are being replaced by new age robots called cobots, which don't need workcells. They are used in manufacturing, retail, banks, energy, and healthcare, among other domains. One of the major reasons for this rapid growth in the robotics market is the introduction of an open source robotics framework called the Robot Operating System (ROS). This book covers projects in the latest ROS distribution, ROS Melodic Morenia with Ubuntu Bionic (18.04). Starting with the fundamentals, this updated edition of ROS Robotics Projects introduces you to ROS-2 and helps you understand how it is different from ROS-1. You'll be able to model and build an industrial mobile manipulator in ROS and simulate it in Gazebo 9. You'll then gain insights into handling complex robot applications using state machines and working with multiple robots at a time. This ROS book also introduces you to new and popular hardware such as Nvidia's Jetson Nano, Asus Tinker Board, and Beaglebone Black, and allows you to explore interfacing with ROS. You'll learn as you build interesting ROS projects such as self-driving cars, making use of deep learning, reinforcement learning, and other key AI concepts. By the end of the book, you'll have gained the confidence to build interesting and intricate projects with ROS.
Table of Contents (14 chapters)

Creating face tracker ROS packages

Let's start creating a new workspace for keeping the entire ROS project files for this book. You can name the workspace chapter_12_ws and follow these steps:

  1. Download or clone the source code of this book from GitHub using the following link:
$ git clone https://github.com/PacktPublishing/ROS-Robotics-Projects-SecondEdition.git
  1. Now, you can copy two packages, named face_tracker_pkg and face_tracker_control, from the chapter_12_ws/ folder into the src folder of the chapter_12_ws workspace you created.
  2. Compile the package using catkin_make to build the two project packages.

You have now set up the face tracker packages on your system.

What if you want to create your own package for tracking? Follow these steps:

  1. First, delete the current packages that you copied to the src folder.
Note that you should be in the src folder of chapter_12_ws...