Hello Robot Stretch 3¶
Please note that this workspace is only tested in simulation.
🐳 Start Container¶
Make sure your system meets the system requirements and have followed the setup instructions before using this workspace.
Run the following commands in a Ubuntu desktop environment. If you are using a remote server, make sure you're using a terminal within a remote desktop session (e.g., VNC) instead of SSH (i.e., don't use ssh -X or ssh -Y).
cd ~/ros2-essentials/stretch3_ws/docker
docker compose build
xhost +local:docker
docker compose up -d
# The initial build will take a while, please wait patiently.
If your user's UID is
1000, you may replace thedocker compose buildcommand withdocker compose pull.
The commands in the following sections assume that you are inside the Docker container:
If the initial build somehow failed, run:
Once you have finished testing, you can stop and remove the container with:
If you encountered unexpected issues when using Isaac Sim, see Known Issues for more details.
Isaac Sim Keyboard Control¶
Run ~/isaacsim/isaac-sim.sh and open /home/ros2-essentials/stretch3_ws/isaacsim/assets/stretch3_og_wasd.usda in Isaac Sim, and then press Play and use WASD to control the robot.
ROS2 Keyboard Control¶
RTAB-Map SLAM Demo¶
Use tmux to open multiple terminals:
-
Run
~/isaacsim/isaac-sim.shand open/home/ros2-essentials/stretch3_ws/isaacsim/assets/stretch3_og_wasd.usdain Isaac Sim, and then press Play. -
Launch rtabmap SLAM:
-
Launch rviz2:
In rviz2, use 2D Goal Pose to set a goal pose for the robot. Nav2 system will guide the robot to the goal pose.

Cartographer SLAM Demo¶
Use tmux to open multiple terminals:
-
Run
~/isaacsim/isaac-sim.shand open/home/ros2-essentials/stretch3_ws/isaacsim/assets/stretch3_og_wasd.usdain Isaac Sim, and then press Play. -
Launch cartographer SLAM:
-
Launch rviz2:
In rviz2, use 2D Goal Pose to set a goal pose for the robot. Nav2 system will guide the robot to the goal pose.
Known Issues¶
If the robot moves too fast, it will cause skidding and the robot will need sometime to correct itself.
Also, the robot turning very slowly, sometimes it stuck when turning around.