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)

Visualizing the robot sensor data

In this section, we learn how to visualize the sensor data from the simulated robot. In the chefbot_gazebo package, there are launch files to start the robot in an empty world or in a hotel-like environment. The custom environment can be built using Gazebo itself. Just create the environment using primitive meshes and save as a *. world file, which can be the input of the gazebo_ros node in the launch file. For starting the hotel environment in Gazebo, you can use the following command:

    $ roslaunch chefbot_gazebo chefbot_hotel_world.launch      
The Chefbot in Gazebo in the hotel environment

The nine cubes inside the space represent nine tables. The robot can navigate to any of the tables to deliver food. We will learn how to do this, but before that, we will learn how to visualize the different kinds of sensor data from the robot model.

...