Welcome to your ROS 2 Jazzy lab! You will be using a cloud computer that has two main parts:
- VS Code: Where you write your code.
- Virtual Desktop (VNC): Where you see the robot (Turtlesim/RViz) moving.
- You have 60 hours of free usage per month.
- Closing the browser tab DOES NOT stop the timer. The machine keeps running for 30 minutes after you leave.
- You must manually "Stop" the Codespace when you finish to save hours (see Step 6).
- Click the green Code button at the top of this repository.
- Select the Codespaces tab.
- Click Create codespace on main.
- Wait: It will take 2–5 minutes to build the computer.
- Once it loads, you will see VS Code inside your browser.

Before starting, ensure your environment is ready:
- Open the Integrated Terminal:
- Press
Ctrl+Shift+p. - Or Click the "Hamburger Menu" (≡) top-left → Terminal → New Terminal (with profile) → Bash.
- Press
- Check Extensions:
We need to manually start the connection to the robot's screen.
- Copy and paste this exact command into your terminal and press Enter:
(Note: If you see a "Job" number like
websockify --web=/usr/lib/novnc 6080 localhost:5901 &[1] 1234, that is good! It means it is running in the background.)
Note, if the novnc webpage asks for a password try with ubuntu.
Now that the connection is running, open the screen: Note: You might not need steps 1-4 on all machines; skip this section if the display already opens for you.
- Look at the bottom panel and click the PORTS tab.
- Don't see it? Press
F1, type "Ports", and select "Focus on Ports View".
- Don't see it? Press
- Find Port 6080 (Label:
Ubuntu Desktop (VNC)). - Right-click the row and verify Port Visibility is set to Public.
- Click the Globe Icon 🌐 (Open in Browser) next to Port 6080.
- A new tab will open. Click Connect. You should see a gray desktop.

You now have two browser tabs open.
- Tab A (VS Code): Use this to edit files.
- Your workspace is in
/workspaces/EADAros2codespaces.
- Your workspace is in
- Tab B (Virtual Desktop): Use this to run commands.
- Right-click the gray background → System Tools → Terminator.
- Type:
ros2 run turtlesim turtlesim_node.
Note: Any file you save in VS Code appears instantly in the Virtual Desktop.

When you are done with the lab, do not just close the browser.
- In VS Code, press F1 (or
Ctrl+Shift+P). - Type Stop.
- Select Codespaces: Stop Current Codespace.
- Wait until you see the "Codespace is stopped" message.
This stops the billing timer immediately.
If you want a copy of your work outside the Codespace, you need to download it or push it to GitHub (for example, by forking this repo and pushing your changes).

