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

Making a dataset


Like in Chapter 10Making a Guard Robot, we have used multiple images for the user to train the model to find out whether the object in the image is a man or something else. In a very similar way, we would have to make a dummy dataset so that the machine learning algorithm can predict based on that data what should be done. 

To make a dataset, we need to understand what data is being considered. In this chapter, we will be making a machine learning algorithm based on time and the temperature to predict whether the fan should be on or off. Hence, there are at least two things that should be provided by us to the system one being Temperature, and the other would be Time so that the prediction can take place. But one thing to remember is that we are talking about a supervised learning algorithm, so to train the model, we need to also give the outcome of Temperature and Time onto the state of the fan. Here, the state of the fan would be either on or off. Hence, we can depict...