Skip to content

My setup for running ROS with GUIs (e.g. gazebo, rviz) from inside a docker container.

License

Notifications You must be signed in to change notification settings

ezhang887/ros-docker-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ros-docker-setup

What / Why

This repo contains a setup to run ROS Noetic with graphical applications (e.g. rviz and Gazebo) from in a docker container.

It's originally created for the CS 588 class at UIUC, but it can be useful in other similar settings. I had to run a set of ROS packages (with Gazebo for simulation and rviz for visualization) built on top of ROS Noetic, but my own machine was unable to run ROS Noetic due to it having an older version of linux (ROS Noetic requires Ubuntu 20).

Usage

Docker and the NVIDIA Container Toolkit (nvidia-docker2) are required for this to work. Here's some installation instructions:

To run the script:

./run.sh <path_to_ros_workspace_on_host>

It will first build a docker image called cs588-ros-simulator:latest based on the Dockerfile in this repo. Then, it will start a docker container using that image that is able to run ROS Noetic, rviz, and Gazebo with working GUIs. The <path_to_ros_workspace_on_host> will be mounted as /root/workspace in the docker container, so the files in the ROS workspace will be accessible / reusable even after the container has exited.

Demo

Demo video link: https://youtu.be/e3t--Cn2jRw

Useful Sources

Here's some of the very helpful sources I used to get this working:

About

My setup for running ROS with GUIs (e.g. gazebo, rviz) from inside a docker container.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published