Book Image

Python Robotics Projects

By : Prof. Diwakar Vaish
Book Image

Python Robotics Projects

By: Prof. Diwakar Vaish

Overview of this book

Robotics is a fast-growing industry. Multiple surveys state that investment in the field has increased tenfold in the last 6 years, and is set to become a $100-billion sector by 2020. Robots are prevalent throughout all industries, and they are all set to be a part of our domestic lives. This book starts with the installation and basic steps in configuring a robotic controller. You'll then move on to setting up your environment to use Python with the robotic controller. You'll dive deep into building simple robotic projects, such as a pet-feeding robot, and more complicated projects, such as machine learning enabled home automation system (Jarvis), vision processing based robots and a self-driven robotic vehicle using Python. By the end of this book, you'll know how to build smart robots using Python.
Table of Contents (24 chapters)
Title Page
Packt Upsell
Contributors
Preface
Index

Basic installation


There are various ways and methods through which we can control our smart home Jarvis, some of which we have explored earlier such as controlling it through. So, to start with, we need to prepare our system to be able to do speech synthesis; to do that, let's perform the following process.

First, go to the terminal and enter the following command:

sudo apt-get install alsa-utils

What this will do is install the dependency alsa-utils. Thealsa-utils package contains various utilities that are useful for controlling your sound drivers.

Once this is done, you need to edit the file. To do it, we need to open the file. Use the following command:

sudo nano /etc/modules

Once that is done, a file will open; at the bottom of that file, you need to add the following line:

snd_bcm2835

You don't need to get too much into why we are doing it. It's just there to set things up. I can give you an explanation; however, I do not wish to bore you at this exciting moment. 

Also, if you are lucky, then...