[Documentation] [TitleIndex] [WordIndex

Note: This tutorial assumes that you have completed the previous tutorials: ROS tutorials.
(!) Please ask about problems and questions regarding this tutorial on answers.ros.org. Don't forget to include in your question the link to this page, the versions of your OS & ROS, and also add appropriate tags.

How to Use a SpaceNavigator with the spacenav_node

Description: This tutorial is an introduction to using the 3DConnexion SpaceNavigator connected to a desktop. After reading this, you should be able to bring up the spacenav_node and display the data.

Keywords: spacenavigator, 3DConnexion, joystick, driver

Tutorial Level: BEGINNER

Next Tutorial: Writing a Teleoperation Node for the SpaceNavigator

Compiling

Start by getting the dependencies and compiling the driver.

$ sudo apt install spacenavd
$ sudo apt install ros-indigo-spacenav-node

Plugged In

Make sure that your SpaceNavigator is plugged into the USB port.

Running the spacenav_node

$ roslaunch spacenav_node classic.launch

Viewing the data

The spacenav_node publishes four topics:

rostopic list

You will see something similar to:

To see that everything is working and data is being published to ROS, in a new terminal:

$ rostopic echo /spacenav/joy

You will see something similar to:

Move the spacenavigator around to see the data change.



2019-06-15 13:12