A template repository for teaching robotics with ROS2
You can use this repository to start developing your ROS2 modules. It provides a preconfigured Development Container with ROS2 installed, and a VNC based light Desktop integrated directly.
This is a repository template, ready for you to either fork it (being able to pull in changes that happen in this repository later, recommended) or use this template to create your own independent repository.
Go to https://github.com/LCAS/ros2-teaching-ws and click on
to create a GitHub Fork in your own GitHub account. Then continue to clone this repository on your computer. Learn more about GitHub Forks here.
Go to https://github.com/LCAS/ros2-teaching-ws and click on
to create a new repository in your own GitHub account. Then continue to clone this repository on your computer. *Note: This repository is detached from the original one, so any changes in https://github.com/LCAS/ros2-teaching-ws happening after you created your own repository will have to be manually added.
- Make sure you have VSCode installed: https://code.visualstudio.com/download
- Make sure you have the
Docker
and theDev Containers
extension in VSCode installed and working: https://code.visualstudio.com/docs/containers/overview and https://code.visualstudio.com/docs/devcontainers/containers- ensure docker is working, i.e. try
docker run --rm hello-world
and check it succeeds for your user
- ensure docker is working, i.e. try
- The docker image used to provide the Development Container is provided by the L-CAS Container Registry. You must log in to use it. For simple read access, the username and password is public and is username
lcas
, password:lincoln
. So, to log in dodocker login -u lcas -p lincoln lcas.lincoln.ac.uk
(you should only have to do this once, as the credentials should be cached unless your home directory is wiped).
-
Open your own repository (forked or generated from this template) in VSCode: https://code.visualstudio.com/docs/sourcecontrol/intro-to-git (or any other way you prefer), e.g. click on "Clone Respository" in VSCode:
-
VSCode should prompt you that there is a devcontainer configured and ask if you want to reopen in container. Re-open in the container
-
Click on the "Port" in VSCode, find the "novnc" port, right click on it to open the menu, and then choose either "Open in Browser" to open it outside of VSCode or "Preview in Editor" to have it open within VSCode:
-
(recommended) Set the dekstop scaling by clicking on the settings cog and choose scaling mode "Remote Resizing" if it's not set
-
click on "Connect" and enter the password
vscode
when prompted: