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 working of a robot. We used Python binding of Qt called PyQt to create this GUI. Before we go to the main GUI design, we saw a 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 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 is acquired from the generated map we hardcoded the positions in this Python script for testing. When a table is selected, we set a goal position on the map, and when we click on the Go button, the robot will move into the goal position. The...
Learning Robotics using Python
Learning Robotics using Python
Overview of this book
Table of Contents (19 chapters)
Learning Robotics Using Python
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Introduction to Robotics
Mechanical Design of a Service Robot
Working with Robot Simulation Using ROS and Gazebo
Designing ChefBot Hardware
Working with Robotic Actuators and Wheel Encoders
Working with Robotic Sensors
Programming Vision Sensors Using Python and ROS
Working with Speech Recognition and Synthesis Using Python and ROS
Applying Artificial Intelligence to ChefBot Using Python
Integration of ChefBot Hardware and Interfacing it into ROS, Using Python
Designing a GUI for a Robot Using Qt and Python
The Calibration and Testing of ChefBot
Index
Customer Reviews