This repository contains a ready-to-use Docker-based ROS 1 Noetic development environment for working with Dingo Packages. It includes Visual Studio Code support, useful extensions, and common ROS 1 packages preinstalled β making it easy to get started with TurtleBot simulation and development on any Linux machine.
git clone https://github.com/Cobot-Maker-Space/ros1-container.gitAnd then go inside the folder.
Open the PC's terminal and run:
xhost +local:dockercd ros1-container/src
code .- Launch VS Code.
- Check in the file menu, if you can see
src/ - You should see a
.devcontainer/folder in the file tree.
Inside VS Code:
- Press
Ctrl+Shift+P - Type and select:
Dev Containers: Reopen in Container - VS Code will now build and launch your ROS 2 container
Inside the container terminal:
source /opt/ros/noetic/setup.bash
roscoreIf ROS 1 is installed correctly, youβll see roscore to start running.
Once the container is set up and you want to make changes and create packages which you want to persist even after the container is closed.
Try to add packages in the Dockerfile in the sequence of RUN apt-get update && apt-get install -y and in the same format as ros-noetic-<package_name> \.
By default, whatever you would be building and downloading in the src folder would persist without any extra step
| Issue | Solution |
|---|---|
Docker permission denied |
Make sure your user is added to the docker group: sudo usermod -aG docker $USER Then logout your user and then log back in and check. |
Cannot access /dev/video0 |
Add your user to the video group: sudo usermod -aG video $USER |
When launching Gazebo simulations, if it takes too much time and exits at Spawn service failed. Exiting. |
Do not press Ctrl + C Let it fail completely and cleanly and then close it and run it again. |
ros* command not found |
At times, teh container need to be rebuilt. After the 2nd Step above: Press Ctrl + Shift + P Choose Rebuild and Reopen in Container Wait for it to finish and then type in and check. |
- Default user inside container is
user1(root). - Workspace is mounted to
/home/catkin_ws/src. - Includes support for Gazebo, SLAM, Navigation2, Teleop, Cartographer, and more.
- VS Code extensions preinstalled for ROS, C++, Python, and Git.