Hello everyone,
As someone who’s been developing robots with ROS 2 for quite some time, I’ve recently transitioned to using Docker for its convenience. Integrating the VSCode devcontainer extension has been a game-changer, especially when working with multiple ROS development environments simultaneously. Having a consistent development environment across the team has been incredibly beneficial.
After iterative improvements, I’m excited to share a devcontainer configuration that works neatly and is super easy to configure. Even if you have basic experience with Docker, Linux, and Bash, you can make changes effortlessly.
Here is a part of the .env
file:
# ROS Frameworks
# ros2_control
# nav2
# plansys2
IFRAMEWORKS='$ros2_control && $nav2'
Adding tools, frameworks, and ROS tools is now as simple as that!
Additionally, I’ve included features like VSCode tasks and bash history synchronization between the host and Docker environment to enhance the development experience.
GitHub repository: https://github.com/manojm-dev/devcontainer_for_ros
I’d love to hear your thoughts and suggestions on this setup. Please share your feedback and ideas