Skip to content

Docker ROS 2 Jazzy graphical development environment with Gazebo and RViz2

License

Notifications You must be signed in to change notification settings

UNF-Robotics/docker-ros2-jazzy-gz-rviz2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-ros2-jazzy-gz-rviz2

License Docker Image Status

Docker image with ROS 2 Jazzy Development Environment with Gazebo and RViz2 for various robotics purposes at UNF, club, research, and development. This container contains the initial environment to build and run ROS 2 simulations using Gazebo and RViz2.

Latest

Docker Pull Command

docker pull unfrobotics/docker-ros2-jazzy-gz-rviz2:latest

enable X11 ssh forwarding

Enable in sshd and restart

sudo nano /etc/ssh/sshd_config

X11Forwarding yes

Enable X server access

sudo xhost +local:docker
sudo xhost +

Development Environment Usage

Inside the container, there is an initial folder /opt/ros_ws/src that is intended for use for to build ROS packages. ROS package sources can either be downloaded into the container, or local mount, to allow for development using a local IDE.

Run Command on Linux

The following command will open a terminal to the newly created container that uses the host computers network. It also assumes that the sources have been downloaded locally in ~/mypkg_ros/ and shared as a volume in the folder inside the container. Inside the container run gazebo or rviz2, attach another shell to run both and/or other ROS commands.

docker run --net=host --rm -it --env DISPLAY=$DISPLAY --privileged \
    -v /dev:/dev -v ~/mypkg_ros/:/opt/ros_ws/src/mypkg_ros \
    unfrobotics/docker-ros2-jazzy-gz-rviz2:latest

About

Docker ROS 2 Jazzy graphical development environment with Gazebo and RViz2

Resources

License

Stars

Watchers

Forks

Packages

No packages published