Ubuntu 22.04: Setting up your computer with Docker and VS Code
Install Docker Engine:
Follow instructions at: https://docs.docker.com/engine/install/ubuntu/
Then do the post install (lets your user run without sudo):
https://docs.docker.com/engine/install/linux-postinstall/
DO NOT Install Docker Desktop For Linux!
Check it works:
docker run hello-world
Clone The Workspace Repo
After the final wsl.exe is finished, it should drop you into a ubuntu shell. If not type ubuntu
Now we will clone the workspace repository with the following command:
git clone https://github.com/johnny555/4robots_ws.git
Next we will move into the new directory created by that command
cd 4robots_ws
And now we will start vs code from inside that folder. This will open vscode inside the repository we just cloned from the internet.
code .
Install the "Dev Containers" extension
Back in VS Code, install the Dev Containers extension. Either click the extension icon on the left, or use the keyboard shortcut Ctrl+Shift+X.
Search for the "Dev Contianers" extension and install it.
Open Folder In Dev Container
In VS Code hit Ctrl+Shift+P and then search for/select
Dev Containers: Open Folder In Container...
To open the current folder in a dev container. Look for the green Dev Container text in the bottom left to know you have completed the step.
Start Gazebo
Use the command Ctl+Shift+P and then "Tasks: Run Task" and run the task named "Day 2" to start gazebo.