1.6.3 Teleoperating the TurtleBot3
Now that you have the TurtleBot3 running in simulation, you can control it using teleoperation. This will help you understand how nodes and topics work in ROS by sending commands to move the robot.
Step 1: Teleoperate the TurtleBot3
In a new terminal, use the teleoperation package to control the robot:
ros2 run turtlebot3_teleop teleop_keyboardThis command allows you to move the TurtleBot3 using your keyboard:
W: Move forward
S: Move backward
A: Turn left
D: Turn right
Context: In a real-world robotics project, you might teleoperate a robot to perform tasks like exploring an area or mapping a room before implementing more autonomous features. Teleoperation simulates real-life joystick or remote control applications, allowing you to test movements without sensors.
Previous1.6.2 Launching the TurtleBot3 SimulationNextPART 2: Practical ROS 2 Applications with Hardware
Last updated