mirror of
https://github.com/EECS-467-W20-RRRobot-Project/RRRobot.git
synced 2025-08-20 23:42:45 +00:00
File Comments & ROS Development Container
- Add comments to files explaining what the file is - Add ros-dev container for development
This commit is contained in:
@@ -5,13 +5,13 @@ version: '3'
|
||||
|
||||
# Define services
|
||||
services:
|
||||
# ROS Service
|
||||
ros:
|
||||
# Use Dockerfile in ros folder
|
||||
build: ./ros
|
||||
# Mount ros folder on host to app folder in container
|
||||
# ROS Development Service
|
||||
ros-dev:
|
||||
# Use Dockerfile in ros-dev folder
|
||||
build: ./ros-dev
|
||||
# Mount ros-dev folder on host to app folder in container
|
||||
volumes:
|
||||
- ./ros:/app
|
||||
- ./ros-dev:/app
|
||||
# Set DISPLAY variable and network mode for GUIs
|
||||
environment:
|
||||
- DISPLAY=${IP_ADDRESS}:0.0
|
||||
@@ -35,13 +35,27 @@ services:
|
||||
# Run turtlesim script when container is run
|
||||
command: bash -c "./turtlesim.sh"
|
||||
|
||||
# Gazebo Service
|
||||
gazebo:
|
||||
# Use Dockerfile in gazebo folder
|
||||
build: ./gazebo
|
||||
# Mount gazebo folder on host to app folder in container
|
||||
# ROS Production Service
|
||||
ros:
|
||||
# Use Dockerfile in ros folder
|
||||
build: ./ros
|
||||
# Mount ros folder on host to app folder in container
|
||||
volumes:
|
||||
- ./gazebo:/app
|
||||
- ./ros:/app
|
||||
# Set DISPLAY variable and network mode for GUIs
|
||||
environment:
|
||||
- DISPLAY=${IP_ADDRESS}:0.0
|
||||
network_mode: "host"
|
||||
# Set working directory in container to app folder
|
||||
working_dir: /app
|
||||
|
||||
# Gazebo Production Service
|
||||
gazebo:
|
||||
# Use Dockerfile in gazebo folder
|
||||
build: ./gazebo
|
||||
# Mount gazebo folder on host to app folder in container
|
||||
volumes:
|
||||
- ./gazebo/.gazebo:/root/.gazebo
|
||||
# Set DISPLAY variable and network mode for GUIs
|
||||
environment:
|
||||
- DISPLAY=${IP_ADDRESS}:0.0
|
||||
|
16
src/ros-dev/Dockerfile
Normal file
16
src/ros-dev/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
# ROS Development Dockerfile
|
||||
|
||||
# Use official image for ROS Melodic Morenia
|
||||
FROM ros:melodic
|
||||
|
||||
# Install dependencies for development
|
||||
RUN sudo apt-get update && apt-get install -y \
|
||||
# ROS Tutorial Dependencies
|
||||
ros-melodic-ros-tutorials \
|
||||
ros-melodic-rqt \
|
||||
ros-melodic-rqt-common-plugins \
|
||||
ros-melodic-turtlesim \
|
||||
# C++ Development: g++ compiler, etc.
|
||||
build-essential
|
||||
|
||||
CMD ["/bin/bash"]
|
@@ -1,4 +1,4 @@
|
||||
# ROS Dockerfile
|
||||
# ROS Turtlesim Dockerfile
|
||||
|
||||
# Use official image for ROS Melodic Morenia
|
||||
FROM ros:melodic
|
||||
|
@@ -1,3 +1,4 @@
|
||||
# turtlesim.sh
|
||||
#!/bin/bash
|
||||
|
||||
roscore &
|
||||
|
Reference in New Issue
Block a user