To start using this environment:
- Navigate to the GitHub repository
- Click on the "Code" button
- Select the "Codespaces" tab
- Click "Create codespace on Workshop-2"
This will launch a cloud-based development environment with VS Code in your browser, complete with ROS2 Humble already installed and configured.
To view graphical simulations like turtlesim or Gazebo in your Codespace, follow these steps:
Open a terminal in your Codespace and run:
/usr/local/bin/start-vnc.shIn the Codespace UI, go to the Ports tab.
Find the port mapped to 6080.
Click the 🌍 globe icon next to it to open the URL in your browser.
When the browser tab opens, select vnc.html
Click Connect (no password is required).
You should now see the graphical desktop where you can run tools like RViz or Gazebo.
Open a terminal in your Codespace and run:
ros2 launch sim/sim.launch.pyOpen a new terminal in your Codespace and run:
ros2 topic listTo display the messages on a topic (e.g. /cmd_vel) run
ros2 topic info /cmd_vel --verbose