-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
README.md: Initial readme with badges/shields & basic usage
- Loading branch information
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |