Book Image

Learning Robotics using Python - Second Edition

By : Lentin Joseph
Book Image

Learning Robotics using Python - Second Edition

By: Lentin Joseph

Overview of this book

Robot Operating System (ROS) is one of the most popular robotics software frameworks in research and industry. It has various features for implementing different capabilities in a robot without implementing them from scratch. This book starts by showing you the fundamentals of ROS so you understand the basics of differential robots. Then, you'll learn about robot modeling and how to design and simulate it using ROS. Moving on, we'll design robot hardware and interfacing actuators. Then, you'll learn to configure and program depth sensors and LIDARs using ROS. Finally, you'll create a GUI for your robot using the Qt framework. By the end of this tutorial, you'll have a clear idea of how to integrate and assemble everything into a robot and how to bundle the software package.
Table of Contents (12 chapters)

Interfacing ChefBot sensors to the Tiva-C LaunchPad

We have looked at the interfacing of the individual sensors that we are going to use in ChefBot. In this section, we will learn how to integrate sensors into the LaunchPad board. The Energia code to program Tiva-C LaunchPad is available in the cloned files at GitHub. The connection diagram showing the connection of the Tiva-C LaunchPad with the sensors is as follows. From this diagram, we learn how the sensors are interconnected with LaunchPad:

Sensor-interfacing diagram of ChefBot

M1 and M2 are two differential-drive motors that we are using in this robot. The kind of motor we are going to use here is a DC geared motor with an encoder from Pololu. The motor terminals are connected to the dual VNH2SP30 motor driver from Pololu. One of the motors is connected with reverse polarity because in differential steering, one motor rotates...