ros2lab

THE LAB

Every demo at full size.

The browser terminal with its 8 missions, the link to ROS 2 on your own PC, and three replays of real ROS 2 recordings. Nothing heavy loads until you press its button.

LEVEL 1

The terminal lab

0/8 missions

TurtleSim

No turtlesim window yet.
It opens when you run
ros2 run turtlesim turtlesim_node

  1. In Pane 1: Start the turtlesim node. It keeps this pane busy, like on Ubuntu:
  2. In Pane 2 (it opens by itself): List the running nodes:
  • turtlesim_node is running
  • You listed the nodes while it ran
student@ros2lab: ~ — Terminator
Pane 1 — turtlesim_node
A ROS 2 Jazzy terminal for turtlesim. Type help for the commands.

Real ROS 2 commands. The terminal is a JavaScript model of the ROS 2 CLI in your browser that prints the same output as real ROS 2 Jazzy (tested against 152 outputs recorded on Ubuntu 24.04). Run the same commands on your own PC.

YOUR PC

Same commands. Real ROS 2. Your machine.

Practise here in the browser: it moves the turtle at the top of this page. Then, if you like (it is optional), run the same commands on real ROS 2 Jazzy on your own computer.

Browser practice

Always works

The turtle at the top of the page moves. See it

student@ros2lab: ~ — Terminator
Pane 1 — your commands
Type a ros2 command. It runs in the same browser turtlesim as the top of the page.

A JavaScript model of the ROS 2 CLI that prints what real ROS 2 Jazzy prints.

Your PC — real ROS 2 Jazzy

Waiting for your PC
  1. Paste one command

    Ubuntu. Ubuntu 22.04 or 24.04: open a terminal (Ctrl+Alt+T), paste the whole line, press Enter.

    curl -fsSL https://www.ros2lab.com/install/try.sh | bash

    No curl? This does the same with wget:

    wget -qO- https://www.ros2lab.com/install/try.sh | bash
    It says curl: (6) or curl: (7)?

    Your computer could not download from www.ros2lab.com. Check that the internet works. A school or office network (or a wrong proxy setting) can block it: try another network, for example your phone's hotspot, then paste the line again.

    Tested on Ubuntu 24.04. Read the script before you run it.

    Other OS?

    What it does, how big it is, how to remove it

    It checks your PC, installs ROS 2 Jazzy and turtlesim into the folder ros2lab-try in your home folder (no administrator password, your PATH is not changed), opens turtlesim, and starts a small helper. The helper connects out to ros2lab.com with a one-time secret; it opens no port on your PC.

    First install in the video: 291 seconds, about 330 MB to download, 941 MB on disk (Ubuntu 24.04). Two other first installs took 100 s and 226 s: most of the time is the download. Windows and macOS are not measured yet.

    To remove it: close the turtle window, then delete the folder ros2lab-try in your home folder.

    The helper's source: ros2lab-try.py. It runs only ros2 commands for turtlesim. Press Ctrl+C in its window to stop it.

  2. Your browser opens by itself and turns green

    Nothing to allow. The helper opens www.ros2lab.com/pc in your browser and it says Connected.

    Open the PC page at full size

Advanced: connect directly (only if the steps above do not work)

For a college network that blocks the relay: your browser talks to the helper on your own PC (127.0.0.1, port 7777). Start the helper with --direct. Your browser asks once; choose Allow. It looks like this:

LEVEL 4

Planner Explorer

The course arm between two tables and a pillar, with an orange claw trail that goes around the pillar

Planned by real MoveIt 2 on Ubuntu 24.04 + ROS 2 Jazzy, replayed in your browser. In Level 4 you run the planner yourself.

924 real planning runs: 7 goals × 3 scenes × 7 planners (OMPL RRTConnect / RRT* / PRM 10 runs each, Pilz PTP / LIN 2, CHOMP / STOMP 5). Failures are MoveIt's own answers. Times were measured on one laptop while other work was running: compare planners with each other, not with your PC.

Level 4 on the home page

LEVEL 2

Mobile robot replay

my_bot on a grid, red lidar points outlining the boxes around it, and its blue odometry trail

Lidar and camera recorded from my_bot in Gazebo with real ROS 2 Jazzy (ros2 bag, MCAP), replayed in your browser.

The course robot from Level 2. The front camera was added for this demo only (the course's my_bot has a lidar only).

Level 2 on the home page

LEVEL 3

ros2_control replay

The course arm, and a plot of commanded and actual angles of three joints

A joint trajectory controller running in real ros2_control (ROS 2 Jazzy): commanded vs actual joint angles, recorded at 50 Hz, replayed in your browser.

In these recorded messages, mock hardware's actual angle matches the command (largest gap 0.00092 rad). In Gazebo the joints lag behind it (largest gap 0.072 rad).

Level 3 on the home page