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++

Building an object-following robot

After thresholding an image and viewing the video feed from the Pi camera, we will combine both of these programs to create our object-following robot program.

In this section, we will write two programs. In the first program, we place the ball in front of the camera and trace it by creating a dot (using moments) in the center of the ball. Next, we will move the ball up, down, left, and right and note the point values at different positions on the camera.

In the second program, we will use these point values as an input and make the robot follow the ball object.

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