Book description
Enhance your programming skills to build exciting robotic projects
Key Features
- Build an intelligent robot that can detect and avoid obstacles and respond to voice commands
- Detect and track objects and faces using OpenCV
- Control your robot with a GUI button designed using Qt5
Book Description
C++ is one of the most popular legacy programming languages for robotics, and a combination of C++ and robotics hardware is used in many leading industries. This book will bridge the gap between Raspberry Pi and C/C++ programming and enable you to develop applications for Raspberry Pi. You'll even be able to implement C programs in Raspberry Pi with the WiringPi library.
The book will guide you through developing a fully functional car robot and writing programs to move it in different directions. You’ll then create an obstacle-avoiding robot using an ultrasonic sensor. In addition to this, you’ll find out how to control the robot wirelessly using your PC or Mac. This book will also help you work with object detection and tracking using OpenCV, and guide you through exploring face detection techniques. Finally, you will create an Android app and control the robot wirelessly with an Android smartphone.
By the end of this book, you will have gained experience in developing a robot using Raspberry Pi and C/C++ programming.
What you will learn
- Install software on a Raspberry Pi compatible with C++ programming
- Program the Raspberry Pi in C++ to run a motor
- Control a Raspberry Pi-powered robot wirelessly with your laptop or PC
- Program a Raspberry Pi camera using OpenCV
- Control a Raspberry Pi robot with voice commands
- Implement face and object detection with Raspberry Pi
Who this book is for
This book is for developers, programmers, and robotics enthusiasts interested in leveraging C++ to build exciting robotics applications. Prior knowledge of C++ is necessary to understand the projects covered in this book.
Publisher resources
Table of contents
- Title Page
- Copyright and Credits
- Dedication
- About Packt
- Contributors
- Preface
- Section 1: Getting Started with wiringPi on a Raspberry Pi
- Introduction to the Raspberry Pi
- Implementing Blink with wiringPi
- Section 2: Raspberry Pi Robotics
- Programming the Robot
- Building an Obstacle-Avoiding Robot
- Controlling a Robot Using a Laptop
- Section 3: Face and Object Recognition Robot
- Accessing the RPi Camera with OpenCV
- Building an Object-Following Robot with OpenCV
- Face Detection and Tracking Using the Haar Classifier
- Section 4: Smartphone-Controlled Robot
- Building a Voice-Controlled Robot
-
Assessments
- Chapter 1: Introduction to the Raspberry Pi
- Chapter 2: Implementing Blink with wiringPi
- Chapter 3: Programming the Robot
- Chapter 4: Building an Obstacle-Avoiding Robot
- Chapter 5: Controlling a Robot Using a Laptop
- Chapter 6: Building an Object-Following Robot with OpenCV
- Chapter 7: Accessing the RPi Camera with OpenCV
- Chapter 8: Face Detection and Tracking Using the Haar Classifier
- Chapter 9: Building a Voice-Controlled Robot
- Other Books You May Enjoy
Product information
- Title: Hands-On Robotics Programming with C++
- Author(s):
- Release date: March 2019
- Publisher(s): Packt Publishing
- ISBN: 9781789139006
You might also like
book
Designing Data-Intensive Applications
Data is at the center of many challenges in system design today. Difficult issues need to …
book
Effective Java, 3rd Edition
Since this Jolt-award winning classic was last updated in 2008, the Java programming environment has changed …
book
The Staff Engineer's Path
For years, companies have rewarded their most effective engineers with management positions. But treating management as …
book
Mastering C++ Multithreading
Master multithreading and concurrent processing with C++ About This Book Delve into the fundamentals of multithreading …