Skip to content

Commit

Permalink
README.md: Initial readme with badges/shields & basic usage
Browse files Browse the repository at this point in the history
  • Loading branch information
wltjr committed Jun 30, 2024
1 parent 7943fcf commit 271bf13
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# docker-ros2-jazzy-gz-rviz2
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg?style=plastic)](https://github.com/UNF-Robotics/docker-ros2-jazzy-gz-rviz2/blob/master/LICENSE.txt)
[![Docker Image Status](https://github.com/UNF-Robotics/docker-ros2-jazzy-gz-rviz2/actions/workflows/main.yml/badge.svg/)](https://github.com/UNF-Robotics/docker-ros2-jazzy-gz-rviz2/actions)

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](https://hub.docker.com/r/unfrobotics/docker-ros2-jazzy-gz-rviz2/tags)

## Docker Pull Command
```bash
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
```bash
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.
```bash
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
```

0 comments on commit 271bf13

Please sign in to comment.