Teleoperation
Teleoperation allows you to control TurtleBot manually. There are different ways: keyboard, joystick, QT teleop, interactive markers. Our tutorial will cover keyboard and interactive markers method.
In this lesson we will show the tricks in terminal:
- Using Up and Down Arrow keys you can switch between the last-used commands.
- Use
Ctrl+R
combination to invokereverse-i-search
. Type letters,gaz
for instance, and you will get a match for the recent command in your history which hasgaz
. You can pressCtrl+R
again to go to the previous command in this search. When you see the proper command pressEnter
to execute it or Right Arrow to choose this command for editing.
We show using these tricks in tutorial videos for this lesson with explanations. Later we will assume that you understand how it works.
Keyboard
While Gazebo and Rviz are running, open a new terminal and run:
NOTE: The terminal with teleop launching has to be active all the time otherwise you will not be able to operate the TurtleBot.
TurtleBot can move forward and backward, rotate. Also you can increase/decrease the speed. See the instructions in the terminal output:
You can watch how it works in this video:
Interactive Markers
You can control TurtleBot in Rviz. Check that you have the interactive markers packages installed:
While Gazebo and Rviz are running, open a new terminal and run:
Follow the steps below to see the robot’s movements:
- Enable
Interactive Markers
option from left-bar. - Select the
Interact
tool in the tool panel on the top of the screen. You will see blue ring and red arrows. - Drag the red arrows to drive the TurtleBot forward and backward.
- Drag the blue ring to rotate the TurtleBot.
- You can drag the blue ring to rotate and drive simultaneously.
You can watch how it works in this video: