- Linux (x11)
- Linux (wayland)
- Docker
- Visual Studio Code (vscode)
- Remote Development vscode plugin
- Adding few variables and cmd to
.profiles
file to give gui access for the container
- Open
~/.profiles
file in a text editor and add the below lines
# docker
xhost +SI:localuser:$USER
# devcontainer
export DISPLAY_NUM=${DISPLAY#:}
# after exiting source .profile for first time only
source ~/.profile
- Clone this repository and open in
vscode
git clone https://github.com/manojm-dev/devcontainer_for_ros.git ros_ws
cd ros_ws && code .
- Open the
.env
file placed inside the.devcontainer
folder for adding or removing pkg as per your need.
- Example
# ROS Frameworks # ros2_control # nav2 # plansys2 # 1) you can add or remove pkg listed above # 2) Don't forget to add `&&` when adding a another pkg trailing to it # 3) Also add `$` before the pkg name IFRAMEWORKS='$ros2_control && $nav2'
- Opening the devcontianer
- Press
Control + Shift + P
to openCommand Pallete
- Find
Dev Containers: Reopen in Container
and click to the lanch the devcontainer environment
- Using the devcontainer on daily basis