Book Image

Learning Robotics using Python - Second Edition

By : Lentin Joseph
Book Image

Learning Robotics using Python - Second Edition

By: Lentin Joseph

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)

Installing and working with rqt in Ubuntu 16.04 LTS

rqt is a software framework in ROS, which implements various GUI tools in the form of plugins. We can add plugins as dockable windows in rqt.

Installing rqt in Ubuntu 16.04 can be done using the following command. Before installing rqt, ensure that you have the full installation of ROS Indigo.

    $ sudo apt-get install ros-<ros_version>-rqt  

After installing the rqt packages, we can access the GUI implementation of rqt, called rqt_gui, in which we can dock rqt plugins in a single window.

Let's start using rqt_gui.

Run the roscore command before running rqt_gui:

    $ roscore  

Run the following command to start rqt_gui:

    $ rosrun rqt_gui rqt_gui  

We will get the following window if the commands work fine:

Running rqt

We can load and unload plugins at runtime. To analyze the ROS message log, we can load the Console...