Author: Jordi Pages < email@example.com >
Maintainer: Sara Cooper < firstname.lastname@example.org >
|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.|
Teleoperating the mobile base with the keyboardDescription: How to move ARI using the key_teleop package.
Keywords: teleoperation, mobile base, key_teleop
Tutorial Level: BEGINNER
Next Tutorial: Move the base through velocity commands
This tutorial shows a way to teleoperate ARI using the keyboard. This relies on the ROS package key_teleop which is compatible with most of ROS enabled robots.
First make sure that the tutorials are properly installed along with the ARI simulation, as shown in the Tutorials Installation Section.
First open two consoles and source the public simulation workspace as follows:
$ cd ~/ari_public_ws $ source ./devel/setup.bash
Launching the simulation
In the first console launch for example the following simulation
roslaunch ari_gazebo ari_gazebo.launch public_sim:=true world:=simple_office_with_people
Gazebo will show up with ARI in the following world.
In the second console run key_teleop as follows
rosrun key_teleop key_teleop.py
which will transform the appearance of the console into this
Now pressing the up and down arrows will make the robot go forward and backward respectively. Left and right arrows will cause the robot to turn about itself in the corresponding directions.