Skip to Content
Hands-On Robotics Programming with C++
book

Hands-On Robotics Programming with C++

by Dinesh Tavasalkar
March 2019
Intermediate to advanced
312 pages
7h 37m
English
Packt Publishing
Content preview from Hands-On Robotics Programming with C++

Summary

In this chapter, we have looked at certain criteria for selecting a robot chassis. After that, we constructed our car, connected the motor driver to the Raspberry Pi, and understood the workings of an H-bridge circuit. Finally, we wrote programs to make the robot move forward, backward, left, and right.

In the next chapter, after understanding the basic fundamentals of moving a robot in this chapter, we will first write a program to measure distance using an ultrasonic sensor. Next, we will use these distance values for avoiding obstacles, that is, if the robot comes very close to a wall then the ultrasonic sensor will sense it and it will command the robot to take a turn, thereby avoiding the obstacle.

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

Learn Robotics Programming

Danny Staple
C++ Reactive Programming

C++ Reactive Programming

Praseed Pai, Peter Abraham

Publisher Resources

ISBN: 9781789139006Supplemental Content