Book Image

Learn Robotics Programming

By : Danny Staple
Book Image

Learn Robotics Programming

By: Danny Staple

Overview of this book

We live in an age where the most difficult human tasks are now automated. Smart and intelligent robots, which will perform different tasks precisely and efficiently, are the requirement of the hour. A combination of Raspberry Pi and Python works perfectly when making these kinds of robots. Learn Robotics Programming starts by introducing you to the basic structure of a robot, along with how to plan, build, and program it. As you make your way through the book, you will gradually progress to adding different outputs and sensors, learning new building skills, and writing code for interesting behaviors with sensors. You’ll also be able to update your robot, and set up web, phone, and Wi-Fi connectivity in order to control it. By the end of the book, you will have built a clever robot that can perform basic artificial intelligence (AI) operations.
Table of Contents (21 chapters)

Programming a Gamepad on Raspberry Pi with Python

The robot we've been programming and making has many behaviors, but some end up with the robot on the other side of the room. We've also got a neat camera with some visual feedback available on what the robot is doing. Wouldn't it be neat to take control and drive the robot sometimes? In this chapter, we will see how. We will build a control system that includes our visual control for the robot.

The following topics will be covered in this chapter:

  • When speech control won't work – why we need to drive
  • Choosing a control pad – what we are going to use to drive the robot, and why
  • Preparing the Raspberry Pi for remote driving – how to get the basic driving system going
  • Upgrading the menu and display code for full headless – integrating the driving with display and menu
  • Making it start...