Skip to Content
Robot Operating System Cookbook
book

Robot Operating System Cookbook

by Kumar Bipin
June 2018
Intermediate to advanced
484 pages
11h 36m
English
Packt Publishing
Content preview from Robot Operating System Cookbook

How it works…

After installing the packages, we will connect our joystick to the computer system and check whether the joystick is recognized or not by using the following command:

$ ls /dev/input/

This will produce an output showing that all device nodes in the system correspond to input devices, as shown in the following screenshot:

System input devices

You will find that the js0 device node was created by the driver when the joystick was plugged into the computer system. Next, we can use the jstest command so we can check whether it is working or not:

$ sudo jstest /dev/input/js0

The output is shown in the following screenshot:

jstest ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mobile Intelligent Autonomous Systems

Mobile Intelligent Autonomous Systems

Jitendra R. Raol, Ajith K. Gopal
Wheeled Mobile Robotics

Wheeled Mobile Robotics

Gregor Klancar, Andrej Zdesar, Saso Blazic, Igor Skrjanc

Publisher Resources

ISBN: 9781783987443Supplemental Content