Book Image

Robot Operating System Cookbook

By : Kumar Bipin
Book Image

Robot Operating System Cookbook

By: Kumar Bipin

Overview of this book

This book will leverage the power of ROS with an introduction to its core and advanced concepts through exciting recipes. You will get acquainted with the use of different synchronous and asynchronous communication methods, including messages, services, and actions. You will learn how to use the various debugging and visualization tools used in development and how to interface sensors and actuators with the ROS framework. Firstly, you will get to grips with ROS simulation frameworks, such as Gazebo and RotorS for modeling and simulating any physical robot and virtual environment. You will also cover mobile robotics, micro-aerial vehicles, and robotic arms, which are the leading branches of robotic applications. Robot Operating System Cookbook will also guide you in the development of an autonomous navigation framework for both mobile robots and micro-aerial vehicles. Finally, you will explore ROS-Industrial, an open source project that extends the advanced capabilities of ROS software to manufacturing industries.
Table of Contents (12 chapters)

Using a joystick or a gamepad in ROS

A joystick is an input device that can be used for controlling the movement of the cursor or a pointer on a computer device. However, with this device, we can perform or control a wide range of actions.

In this section, we will discuss how to interface the joystick device to the ROS framework and control a real or simulated robot. A wide range of joystick devices is available for use in several applications.

How to do it...

  1. Install the necessary packages and driver, before working with the joystick.
  2. To install these packages in Ubuntu, we have to execute the following command:
$ sudo apt-get install ros-kinetic-joystick-drivers
$ rosstack profile & rospack profile
  1. Download the joystick_drivers...