-
Book Overview & Buying
-
Table Of Contents
Learn Robotics Programming - Third Edition
By :
Sensing how the robot has moved is key to building autonomy in a robot; a starting point here is to detect how its own wheels have turned. Encoders are a key tool for doing this. We drove a robot along a path back in Chapter 6, Drive and Turn – Moving Motors with MQTT and Python, but it's unlikely that it has stayed on course. Using encoders can allow us to correct that. If you tried in that chapter to drive a specific distance, it's likely the robot overshot or undershot, also a problem that encoders can help with. This chapter investigates types of encoders, how to use those present on your robot, and then how to build behaviors to correct moving in a straight line and for a particular distance. We will then look at how to make a specific turn. Please note that this chapter does contain math. But don't worry, we'll break it down step by step.
In this chapter, you will learn about the following topics: