Book Image

ROS Robotics Projects

Book Image

ROS Robotics Projects

Overview of this book

Robot Operating System is one of the most widely used software frameworks for robotic research and for companies to model, simulate, and prototype robots. Applying your knowledge of ROS to actual robotics is much more difficult than people realize, but this title will give you what you need to create your own robotics in no time! This book is packed with over 14 ROS robotics projects that can be prototyped without requiring a lot of hardware. The book starts with an introduction of ROS and its installation procedure. After discussing the basics, you’ll be taken through great projects, such as building a self-driving car, an autonomous mobile robot, and image recognition using deep learning and ROS. You can find ROS robotics applications for beginner, intermediate, and expert levels inside! This book will be the perfect companion for a robotics enthusiast who really wants to do something big in the field.
Table of Contents (20 chapters)
ROS Robotics Projects
Credits
About the Author
Acknowledgements
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Chapter 2. Face Detection and Tracking Using ROS, OpenCV and Dynamixel Servos

One of the capabilities of most service and social robots is face detection and tracking. These robots can identify faces and can move their heads according to the human face that moves around it. There are numerous implementations of face detection and tracking systems on the Web. Most trackers have a pan-and-tilt mechanism, and a camera is mounted on the top of the servos. In this chapter, we will see a simple tracker that only has a pan mechanism. We are going to use a USB webcam mounted on an AX-12 Dynamixel servo. The controlling of Dynamixel servo and image processing are done in ROS.

The following topics will be covered in this chapter:

  • An overview of the project

  • Hardware and software prerequisites

  • Configuring Dynamixel AX-12 servos

  • The connection diagram of the project

  • Interfacing Dynamixel with ROS

  • Creating ROS packages for a face tracker and controller

  • The ROS-OpenCV interface

  • Implementing a face tracker and face...