Skip to Content
Learn Robotics Programming
book

Learn Robotics Programming

by Danny Staple
November 2018
Beginner
472 pages
13h 5m
English
Packt Publishing
Content preview from Learn Robotics Programming

Programming Encoders with Python

It is useful in robotics to sense the movements of motors and wheels. We've driven a robot along a path, but it's unlikely that it has stayed on course. Detecting this and travelling a specific distance is useful in creating behaviors. In this chapter, we will investigate the sensors that can be used for this and then program the robot to move in a straight line, and for a specific distance. We will then look at how to make a specific turn. Please note that this chapter will contain math.

In this chapter, you will learn about the following topics:

  • Distance and speed measuring sensors—encoders and odometry
  • How to attach the sensors to your robot
  • Creating code to work with these sensors and detect a basic distance ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn Robotics Programming - Second Edition

Learn Robotics Programming - Second Edition

Danny Staple

Publisher Resources

ISBN: 9781789340747Supplemental Content