Driving a Robot with a Keyboard
Connect to your robot and log in, following the instructions in Connecting to your robot for the first time. Log in to the robot from an ssh window, as before.
After logging in, the magni_base program will be running under ROS. To verify this, type:
Next, start the keyboard teleop program. In the ssh window, type:
rosrun teleop_twist_keyboard teleop_twist_keyboard.py
This will launch the teleop program in the robot. The following screen will appear:
Reading from the keyboard and Publishing to Twist!
The robot will respond to keystrokes as follows:
|j||rotate counter clockwise|
|m||circle backwards left|
|.||circle backwards right|
You can also run teleop-twist keyboard with the program running in your workstation. To do this you must connect the robot to your local WiFi network, and set up ROS on the workstation. These are discussed under Doing More, below.