This project is based on the ROS 2 VS Code template developed by @athackst. As a reference here is the original readme file
Test and make this container work on mac os without any compromises
- Install XQuartz
(optional) run
brew install --cask xquartz
- Enable X11 connections from localhost
xhost +localhost
- Modify the line
"DISPLAY": "${localEnv:0}"
on .devcontainer/devcontainer.json - Now the container based GUI apps will open under XQuartz
- Clone this repo:
git clone https://github.com/ivanrulik/ros2_dev_container.git
- Go to the File menu of VS Code and open the project folder
- Press
Ctrl+P
orCmd+P
and type `>Dev Containers: Open Folder in Container... - After the image and container have been built VS code should show
Figure: Dev Container Indicator
Here is a detailed list of common error encountered while working on this project READ