Book Image

Artificial Intelligence for Robotics

By : Francis X. Govers
Book Image

Artificial Intelligence for Robotics

By: Francis X. Govers

Overview of this book

Artificial Intelligence for Robotics starts with an introduction to Robot Operating Systems (ROS), Python, robotic fundamentals, and the software and tools that are required to start out with robotics. You will learn robotics concepts that will be useful for making decisions, along with basic navigation skills. As you make your way through the chapters, you will learn about object recognition and genetic algorithms, which will teach your robot to identify and pick up an irregular object. With plenty of use cases throughout, you will explore natural language processing (NLP) and machine learning techniques to further enhance your robot. In the concluding chapters, you will learn about path planning and goal-oriented programming, which will help your robot prioritize tasks. By the end of this book, you will have learned to give your robot an artificial personality using simulated intelligence.
Table of Contents (13 chapters)

Teaching the robot arm

Now we jump off the deep end and start writing some code.

We can begin by talking about how we send commands to the arm. The motors I have selected for TinMan are stronger versions of standard hobby servo motors, with metal gears. Servo motors are commanded by setting an angle for the motor’s output shaft to assume. The angles run from 0 to 180 degrees. However, the commands for the motor positions run from 1 to 255, so they fit into a single 8-bit value. We’ll be converting these byte-based motor commands to and from angles in the program.

Version one – action state reinforcement learning

Our first version of the arm training program will introduce the basic framework, and use...