In this chapter, we discussed creating a GUI for ChefBot that can be used by an ordinary user who doesn't have any idea about the internal workings of a robot. We used Python binding of Qt called PyQt to create this GUI. Before we looked at the main GUI design, we looked at an Hello World application to get an easier understanding of PyQt. The UI design was done using the Qt Designer tool and the UI file was converted into its equivalent Python script using the Python UI compiler. After designing the main GUI in Qt Designer, we converted the UI file into Python script and inserted the necessary slots in the generated script. The ChefBot GUI can start the robot, select a table number, and command the robot to get into that position. The position of each table comes from the generated map where we hardcoded the positions in this Python script for testing. When a table...
Learning Robotics using Python - Second Edition
By :
Learning Robotics using Python - Second Edition
By:
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)
Preface
Free Chapter
Getting Started with Robot Operating System
Understanding the Basics of Differential Robots
Modeling the Differential Drive Robot
Simulating a Differential Drive Robot Using ROS
Designing ChefBot Hardware and Circuits
Interfacing Actuators and Sensors to the Robot Controller
Interfacing Vision Sensors with ROS
Building ChefBot Hardware and the Integration of Software
Designing a GUI for a Robot Using Qt and Python
Assessments
Other Books You May Enjoy
Customer Reviews