Skip to content

Commit

Permalink
Minor doc. update
Browse files Browse the repository at this point in the history
  • Loading branch information
SeniorKullken committed Aug 23, 2024
1 parent 29d62b7 commit e853dfa
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 2 deletions.
9 changes: 7 additions & 2 deletions amd64-jazzy-full-pico/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# Prerequisite - On docker host:
# I) That the ROS2 WorkSpace(folder) '/home/$USER/ws_ros2/'' exist before starting the Image/Containner.
# II) That '$ xhost local:docker' is run before container is started - To enable GUI/X11 applications inside container
#
#----------------------
# Commands:
# 1a) Create/Start Container from Image :
# $ docker compose up --detach --build
Expand All @@ -22,12 +22,17 @@
# $ docker conpose pause / unpause
# $ docker compose stop / start
# $ docker compose down (stop & remove container)
#
#----------------------
# Maintainer: stefan.kull@gmail.com
# Licens: MIT
# https://github.com/Pet-Series
#
# "noetic" = ROS1
# "focal" = Ubuntu 20.04
#----------------------
# More info: https://github.com/Pet-Series/pet_docker
# More info: https://hub.docker.com/repositories/kullken
# More info: https://hub.docker.com/repository/docker/kullken/ros1_amd64
services:
ros2-microros:
build: .
Expand Down
41 changes: 41 additions & 0 deletions amd64-noetic/docker-compose_ROS2talker-ROS1listener.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# ROS2 test/tutorial - Pull down/Run/Launch two nodes in two separate docker containers.
# Using the built in ros2 package 'demo_nodes_cpp' with the two nodes 'talker' & 'listener'
#
# 1) Launch the nodes
# $ docker compose --file docker-compose_ROS2talker-ROS1listener.yml up
# ... ✔ Container1: ???
# ... ✔ Container2: ???
#
# 2) ...press <Ctrl><C> to stop
#
# 3) Remove the two containers AND the Network "amd64-jazzy_default"
# More info:
# - https://docs.ros.org/en/jazzy/How-To-Guides/Run-2-nodes-in-single-or-separate-docker-containers.html
# - https://hub.docker.com/_/ros
#
services:
talker:
image: osrf/ros:noetic-desktop-full
command: roslaunch roscpp_tutorials talker_listener_launch]
network_mode: host

listener:
image: osrf/ros:jazzy-desktop
environment:
- "ROS_HOSTNAME=listener"
- "ROS_MASTER_URI=http://ros1:11311"
command: ros2 run ros1_bridge dynamic_bridge
depends_on:
- talker
network_mode: host

bridge:
image: osrf/ros:jazzy-desktop
environment:
- "ROS_HOSTNAME=bridge"
- "ROS_MASTER_URI=http://ros1:11311"
depends_on:
- talker
- listener
network_mode: host
command: ros2 run ros1_bridge dynamic_bridge

0 comments on commit e853dfa

Please sign in to comment.