ROS2 Dev Container Feature + Workspace Update

I’ve been working on a ROS2 Dev Container Feature and just updated my VSCode ROS2 Workspace Template to use it instead of my pre-built ROS Docker images.

The feature is here:

Source:

The main thing I wanted was to select the ROS distro once in devcontainer.json and have both local development and CI use that same configuration.

" Package devcontainers/ros2 · GitHub ": {

“distro”: “lyrical”,

“package”: “desktop”

}

I also cleaned up a bunch of the old X11/WSLg configuration. WSL2 GUI support now works through the normal VS Code Dev Container setup, and native Linux X11 support is available as a separate opt-in feature.

If you’re using ROS2 with Dev Containers, I’d be interested to hear how it works for your setup!

6 Likes