Skip to content

Docker Image with ROS 2 Iron Development Environment with Gazebo and RViz2

License

Notifications You must be signed in to change notification settings

Osprey-Robotics/docker-ros2-iron-gz-rviz2

Repository files navigation

docker-ros2-iron-gz-rviz2

License Docker Image Status

Docker image with ROS 2 Iron 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 ospreyrobotics/docker-ros2-iron-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 the opsrey_ros package. This can either be downloaded into the container, or the recommended local mount, which allows 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 ~/osprey_ros/ and shared as a volume in the folder inside the container. Inside the container run gazebo or rviz2, attach another shell, or run command again to run both.

docker run --net=host --rm -it --env DISPLAY=$DISPLAY --privileged \
    -v /dev:/dev -v /projects/osprey_ros/:/opt/ros_ws/src/osprey_ros \
    ospreyrobotics/docker-ros2-iron-gz-rviz2:latest 

About

Docker Image with ROS 2 Iron Development Environment with Gazebo and RViz2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published