Practical Robotics in C++: Build and Program Real Autonomous Robots Using Raspberry Pi

  • 6h 47m
  • Lloyd Brombach
  • BPB Publications
  • 2021

Learn how to build and program real autonomous robots

Key Features

  • Simplified coverage on fundamentals of building a robot platform.
  • Learn to program Raspberry Pi for interacting with hardware.
  • Cutting-edge coverage on autonomous motion, mapping, and path planning algorithms for advanced robotics.


Practical Robotics in C++ teaches the complete spectrum of Robotics, right from the setting up a computer for a robot controller to putting power to the wheel motors. The book brings you the workshop knowledge of the electronics, hardware, and software for building a mobile robot platform.

You will learn how to use sensors to detect obstacles, how to train your robot to build itself a map and plan an obstacle-avoiding path, and how to structure your code for modularity and interchangeability with other robot projects. Throughout the book, you can experience the demonstrations of complete coding of robotics with the use of simple and clear C++ programming.

In addition, you will explore how to leverage the Raspberry Pi GPIO hardware interface pins and existing libraries to make an incredibly capable machine on the most affordable computer platform ever.

What you will learn

  • Write code for the motor drive controller.
  • Build a Map from Lidar Data.
  • Write and implement your own autonomous path-planning algorithm.
  • Write code to send path waypoints to the motor drive controller autonomously.
  • Get to know more about robot mapping and navigation.

Who this book is for

This book is most suitable for C++ programmers who have keen interest in robotics and hardware programming. All you need is just a good understanding of C++ programming to get the most out of this book.

About the Author

Lloyd Brombach is a controls engineer, programmer, and long-time electronics and robotics enthusiast. He has competed at robotics events such as the NASA-funded 2007 Lunar Regolith Excavation Challenge and recently the 27th Intelligent Ground Vehicle Challenge. He is committed to making contributions to the robotics field that future roboticists and robot-owners will benefit from for years to come.

Facebook Profile:


LinkedIn Profile:

In this Book

  • Choose and Set Up a Robot Computer
  • GPIO Hardware Interface Pins Overview and Use
  • The Robot Platform
  • Types of Robot Motors and Motor Control
  • Communication with Sensors and other Devices
  • Additional Helpful Hardware
  • Adding the Computer to Control your Robot
  • Robot Control Strategy
  • Coordinating the Parts
  • Maps for Robot Navigation
  • Robot Tracking and Localization
  • Autonomous Motion
  • Autonomous Path Planning
  • Wheel Encoders for Odometry
  • Ultrasonic Range Detectors
  • IMUs - Accelerometers, Gyroscopes and Magnetometers
  • GPS and External Beacon Systems
  • LIDAR Devices and Data
  • Real Vision with Cameras
  • Sensor Fusion
  • Building and Programming an Autonomous Robot