0%

Book Description

Design, simulate, and program interactive robots

About This Book
  • Design, simulate, build, and program an interactive autonomous mobile robot
  • Leverage the power of ROS, Gazebo, and Python to enhance your robotic skills
  • A hands-on guide to creating an autonomous mobile robot with the help of ROS and Python
Who This Book Is For

This book is for those who are conducting research in mobile robotics and autonomous navigation. As well as the robotics research domain, this book is also for the robot hobbyist community. You're expected to have a basic understanding of Linux commands and Python.

What You Will Learn
  • Design a differential robot from scratch
  • Model a differential robot using ROS and URDF
  • Simulate a differential robot using ROS and Gazebo
  • Design robot hardware electronics
  • Interface robot actuators with embedded boards
  • Explore the interfacing of different 3D depth cameras in ROS
  • Implement autonomous navigation in ChefBot
  • Create a GUI for robot control
In Detail

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.

Style and approach

A step-by-step guide which will help you to create an autonomous mobile robot with the help of ROS and Python. It will help you to understand and implement the fundamental concepts of differential robots and teach you to create differential robot's simulation using Gazebo.

Table of Contents

  1. Title Page
  2. Copyright and Credits
    1. Learning Robotics using Python Second Edition
  3. Dedication
  4. Packt Upsell
    1. Why subscribe?
    2. PacktPub.com
  5. Contributors
    1. About the author
    2. About the reviewer
    3. Packt is searching for authors like you
  6. Preface
    1. Who this book is for
    2. What this book covers
    3. To get the most out of this book
      1. Download the example code files
      2. Download the color images
      3. Conventions used
    4. Get in touch
      1. Reviews
  7. Getting Started with Robot Operating System
    1. Technical requirements
    2. Introduction to ROS
      1. ROS concepts
        1. The ROS filesystem
        2. The ROS Computation Graph
        3. The ROS community level
      2. Installing ROS on Ubuntu
      3. Introducing catkin
      4. Creating a ROS package
        1. Hello_world_publisher.py
        2. Hello_world_subscriber.py
      5. Introducing Gazebo
        1. Installing Gazebo
        2. Testing Gazebo with the ROS interface
    3. Summary
    4. Questions
  8. Understanding the Basics of Differential Robots
    1. Mathematical modeling of the robot
      1. Introduction to the differential drive system and robot kinematics
    2. Forward kinematics of a differential robot
      1. Explanations of the forward kinematics equation
    3. Inverse kinematics
    4. Summary
    5. Questions
    6. Further information
  9. Modeling the Differential Drive Robot
    1. Technical requirements
    2. Requirements of a service robot
    3. Robot drive mechanism
      1. Selection of motors and wheels
        1. Calculation of RPM of motors
        2. Calculation of motor torque
      2. The design summary
      3. The robot chassis design
    4. Installing LibreCAD, Blender, and MeshLab
      1. Installing LibreCAD
      2. Installing Blender
      3. Installing MeshLab
    5. Creating 2D CAD drawing of a robot using LibreCAD
      1. The base plate designs
      2. Base plate pole design
      3. Wheel, motor, and motor clamp design
      4. Caster wheel design
      5. Middle plate design
      6. Top plate design
    6. Working with a 3D model of the robot using Blender
      1. Python scripting in Blender
      2. Introduction to Blender Python APIs
      3. Python script of the robot model
    7. Creating a URDF model of the robot
      1. Creating a Chefbot description ROS package
    8. Summary
    9. Questions
    10. Further reading
  10. Simulating a Differential Drive Robot Using ROS
    1. Technical requirements
    2. Getting started with the Gazebo simulator
      1. The Gazebo's graphical user interface
        1. The Scene
        2. The Left Panel
        3. Right Panel
          1. Gazebo toolbars
          2. Upper toolbar
        4. Bottom toolbar
    3. Working with a TurtleBot 2 simulation
      1. Moving the robot
    4. Creating a simulation of Chefbot
      1. Depth image to laser scan conversion
      2. URDF tags and plugins for Gazebo simulation
        1. Cliff sensor plugin
        2. Contact sensor plugin
        3. Gyroscope plugin
        4. Differential drive plugin
        5. Depth camera plugin
    5. Visualizing the robot sensor data
      1. Getting started with Simultaneous Localization and Mapping
        1. Implementing SLAM in the Gazebo environment
      2. Creating a map using SLAM
      3. Getting started with Adaptive Monte Carlo Localization
      4. Implementing AMCL in the Gazebo environment
      5. Autonomous navigation of Chefbot in the hotel using Gazebo
    6. Summary
    7. Questions
    8. Further reading
  11. Designing ChefBot Hardware and Circuits
    1. Technical requirements
    2. Specifications of the ChefBot's hardware
    3. Block diagram of the robot
      1. Motor and encoder
        1. Selecting motors, encoders, and wheels for the robot
      2. Motor driver
        1. Selecting a motor driver/controller
          1. Input pins
          2. Output pins
          3. Power supply pins
      3. Embedded controller board
      4. Ultrasonic sensors
        1. Selecting an ultrasonic sensor
      5. Inertial measurement unit
      6. Kinect/Orbbec Astra
      7. Central processing unit
      8. Speakers/mic
      9. Power supply/battery
    4. How ChefBot’s hardware works’?
    5. Summary
    6. Questions
    7. Further reading
  12. Interfacing Actuators and Sensors to the Robot Controller
    1. Technical requirements
    2. Interfacing DC geared motor to Tiva C LaunchPad
      1. Differential wheeled robot
      2. Installing Energia IDE
      3. Motor interfacing code
    3. Interfacing quadrature encoder with Tiva C Launchpad
      1. Processing encoder data
      2. Quadrature encoder interfacing code
    4. Working with Dynamixel actuators
    5. Working with ultrasonic distance sensors
      1. Interfacing HC-SR04 to Tiva C LaunchPad
        1. Working of HC-SR04
        2. Interfacing Code of Tiva C Launchpad
        3. Interfacing Tiva C LaunchPad with Python
    6. Working with the IR proximity sensor
    7. Working with Inertial Measurement Units
      1. Inertial navigation
      2. Interfacing MPU 6050 with Tiva C LaunchPad
        1. Setting the MPU 6050 library in Energia
      3. Interfacing code of Energia
    8. Summary
    9. Questions
    10. Further reading
  13. Interfacing Vision Sensors with ROS
    1. Technical requirements
    2. List of robotic vision sensors and image libraries
      1. Pixy2/CMUcam5
      2. Logitech C920 webcam
      3. Kinect 360
      4. Intel RealSense D400 series
      5. Orbbec Astra depth sensor
    3. Introduction to OpenCV, OpenNI, and PCL
      1. What is OpenCV?
        1. Installation of OpenCV from the source code in Ubuntu
        2. Reading and displaying an image using the Python-OpenCV interface
        3. Capturing from the web camera
      2. What is OpenNI?
        1. Installing OpenNI in Ubuntu
      3. What is PCL?
    4. Programming Kinect with Python using ROS, OpenCV, and OpenNI
      1. How to launch the OpenNI driver
      2. The ROS interface with OpenCV
        1. Creating a ROS package with OpenCV support
        2. Displaying Kinect images using Python, ROS, and cv_bridge
    5. Interfacing Orbbec Astra with ROS
      1. Installing the Astra–ROS driver
    6. Working with point clouds using Kinect, ROS, OpenNI, and PCL
      1. Opening the device and generating a point cloud
    7. Conversion of point cloud data to laser scan data
    8. Working with SLAM using ROS and Kinect
    9. Summary
    10. Questions
    11. Further reading
  14. Building ChefBot Hardware and the Integration of Software
    1. Technical requirements
    2. Building ChefBot hardware
    3. Configuring ChefBot PC and setting ChefBot ROS packages
    4. Interfacing ChefBot sensors to the Tiva-C LaunchPad
      1. Embedded code for ChefBot
    5. Writing a ROS Python driver for ChefBot
    6. Understanding ChefBot ROS launch files
    7. Working with ChefBot Python nodes and launch files
      1. Working with SLAM on ROS to build a map of the room
      2. Working with ROS localization and navigation
    8. Summary
    9. Questions
    10. Further reading
  15. Designing a GUI for a Robot Using Qt and Python
    1. Technical requirements
    2. Installing Qt on Ubuntu 16.04 LTS
    3. Working with Python bindings of Qt
      1. PyQt
        1. Installing PyQt in Ubuntu 16.04 LTS
      2. PySide
        1. Installing PySide on Ubuntu 16.04 LTS
    4. Working with PyQt and PySide
      1. Introducing Qt Designer
      2. Qt signals and slots
      3. Converting a UI file into Python code
      4. Adding a slot definition to PyQt code
      5. Operation of the Hello World GUI application
    5. Working with ChefBot's control GUI
    6. Installing and working with rqt in Ubuntu 16.04 LTS
    7. Summary
    8. Questions
    9. Further reading
  16. Assessments
    1. Chapter 1, Getting Started with the Robot Operating System
    2. Chapter 2, Understanding the Basics of Differential Robots
    3. Chapter 3, Modeling the Differential Drive Robot
    4. Chapter 4, Simulating a Differential Drive Robot Using ROS
    5. Chapter 5, Designing ChefBot Hardware and Circuits
    6. Chapter 6, Interfacing Actuators and Sensors to the Robot Controller
    7. Chapter 7, Interfacing Vision Sensors with ROS
    8. Chapter 8, Building ChefBot Hardware and Integration of Software
    9. Chapter 9, Designing a GUI for a Robot Using Qt and Python
  17. Other Books You May Enjoy
    1. Leave a review - let other readers know what you think
3.236.223.106