2023-07-26 11:02:21 +00:00
|
|
|
version: "3.9"
|
|
|
|
services:
|
|
|
|
# Base image containing dependencies.
|
|
|
|
base:
|
|
|
|
image: ghcr.io/bjoernellens1/ros2_rmp/rmp:base
|
|
|
|
build:
|
|
|
|
context: .
|
2023-07-28 08:07:09 +00:00
|
|
|
dockerfile: docker/Dockerfile
|
2023-07-26 11:02:21 +00:00
|
|
|
args:
|
|
|
|
ROS_DISTRO: humble
|
|
|
|
target: base
|
2023-07-28 08:07:09 +00:00
|
|
|
x-bake:
|
|
|
|
platforms:
|
|
|
|
- linux/arm64
|
|
|
|
# - linux/amd64
|
2023-07-26 11:02:21 +00:00
|
|
|
# Interactive shell
|
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
|
|
|
# Networking and IPC for ROS 2
|
|
|
|
network_mode: host
|
|
|
|
ipc: host
|
|
|
|
# Needed to display graphical applications
|
|
|
|
privileged: true
|
|
|
|
environment:
|
|
|
|
# Allows graphical programs in the container.
|
|
|
|
- DISPLAY=${DISPLAY}
|
|
|
|
- QT_X11_NO_MITSHM=1
|
|
|
|
- NVIDIA_DRIVER_CAPABILITIES=all
|
|
|
|
volumes:
|
|
|
|
# Allows graphical programs in the container.
|
|
|
|
- /tmp/.X11-unix:/tmp/.X11-unix:rw
|
|
|
|
- ${XAUTHORITY:-$HOME/.Xauthority}:/root/.Xauthority
|
|
|
|
|
2023-07-28 08:07:09 +00:00
|
|
|
# Overlay image containing the project specific source code.
|
2023-07-26 11:02:21 +00:00
|
|
|
overlay:
|
|
|
|
extends: base
|
|
|
|
image: ghcr.io/bjoernellens1/ros2_rmp/rmp:overlay
|
|
|
|
build:
|
|
|
|
context: .
|
2023-07-28 08:07:09 +00:00
|
|
|
dockerfile: docker/Dockerfile
|
2023-07-28 09:11:54 +00:00
|
|
|
tags:
|
|
|
|
- ghcr.io/bjoernellens1/ros2_rmp/rmp:overlay
|
2023-07-26 11:02:21 +00:00
|
|
|
target: overlay
|
2023-07-28 08:07:09 +00:00
|
|
|
x-bake:
|
|
|
|
platforms:
|
|
|
|
- linux/arm64
|
|
|
|
# - linux/amd64
|
2023-07-26 11:02:21 +00:00
|
|
|
|
|
|
|
# Robot State Publisher
|
|
|
|
robot_state_publisher:
|
|
|
|
extends: overlay
|
|
|
|
command: >
|
2023-07-31 08:05:30 +00:00
|
|
|
ros2 launch cps_rmp220_support rsp.launch.py
|
2023-07-26 11:02:21 +00:00
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
|
|
|
# Networking and IPC for ROS 2
|
|
|
|
network_mode: host
|
|
|
|
ipc: host
|
|
|
|
|
2023-07-31 08:13:01 +00:00
|
|
|
# Controller
|
2023-07-26 11:02:21 +00:00
|
|
|
controller:
|
|
|
|
extends: overlay
|
|
|
|
command: >
|
2023-07-31 08:05:30 +00:00
|
|
|
ros2 launch cps_rmp220_support robot_controller.launch.py
|
2023-07-26 11:02:21 +00:00
|
|
|
devices:
|
|
|
|
- /dev/ttyUSB0:/dev/ttyUSB0
|
|
|
|
- /dev/ttyACM0:/dev/ttyACM0
|
|
|
|
- /dev/input/js0:/dev/input/js0
|
|
|
|
# Interactive shell
|
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
|
|
|
# Networking and IPC for ROS 2
|
|
|
|
network_mode: host
|
|
|
|
ipc: host
|
|
|
|
# Needed to display graphical applications
|
|
|
|
privileged: true
|
2023-08-01 09:03:47 +00:00
|
|
|
# depends_on:
|
|
|
|
# - robot_state_publisher
|
2023-07-26 11:02:21 +00:00
|
|
|
|
2023-07-31 08:13:01 +00:00
|
|
|
# teleop
|
|
|
|
teleop:
|
|
|
|
extends: overlay
|
|
|
|
command: >
|
|
|
|
ros2 launch cps_rmp220_support robot_joystick.launch.py
|
|
|
|
devices:
|
|
|
|
- /dev/ttyUSB0:/dev/ttyUSB0
|
|
|
|
- /dev/ttyACM0:/dev/ttyACM0
|
|
|
|
- /dev/input/js0:/dev/input/js0
|
|
|
|
# Interactive shell
|
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
|
|
|
# Networking and IPC for ROS 2
|
|
|
|
network_mode: host
|
|
|
|
ipc: host
|
|
|
|
# Needed to display graphical applications
|
|
|
|
privileged: true
|
|
|
|
|
2023-07-31 08:07:09 +00:00
|
|
|
# lidar
|
|
|
|
lidar:
|
2023-07-26 11:02:21 +00:00
|
|
|
extends: overlay
|
|
|
|
command: >
|
2023-07-31 08:05:30 +00:00
|
|
|
ros2 launch cps_rmp220_support robot_lidar.launch.py
|
2023-07-26 11:02:21 +00:00
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
|
|
|
# Networking and IPC for ROS 2
|
|
|
|
network_mode: host
|
|
|
|
ipc: host
|
|
|
|
depends_on:
|
|
|
|
- robot_state_publisher
|
|
|
|
|
|
|
|
# mapping
|
|
|
|
mapping:
|
|
|
|
extends: overlay
|
|
|
|
command: >
|
2023-07-31 08:05:30 +00:00
|
|
|
ros2 launch cps_rmp220_support robot_mapping.launch.py
|
2023-07-26 11:02:21 +00:00
|
|
|
# Interactive shell
|
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
|
|
|
# Networking and IPC for ROS 2
|
|
|
|
network_mode: host
|
|
|
|
ipc: host
|
|
|
|
|
|
|
|
# navigation
|
|
|
|
navigation:
|
|
|
|
extends: overlay
|
|
|
|
command: >
|
2023-07-31 08:05:30 +00:00
|
|
|
ros2 launch cps_rmp220_support robot_navigation.launch.py
|
2023-07-26 11:02:21 +00:00
|
|
|
map_subscribe_transient_local:=true
|
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
|
|
|
# Networking and IPC for ROS 2
|
|
|
|
network_mode: host
|
|
|
|
ipc: host
|
2023-07-28 09:36:43 +00:00
|
|
|
|
|
|
|
# bash
|
|
|
|
bash:
|
|
|
|
extends: overlay
|
|
|
|
command: >
|
|
|
|
/bin/bash
|
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
|
|
|
# Networking and IPC for ROS 2
|
|
|
|
network_mode: host
|
|
|
|
ipc: host
|
2023-07-26 11:02:21 +00:00
|
|
|
|
|
|
|
# # Behavior demo using Python and py_trees
|
|
|
|
# demo-behavior-py:
|
|
|
|
# extends: overlay
|
|
|
|
# command: >
|
|
|
|
# ros2 launch tb3_autonomy tb3_demo_behavior_py.launch.py
|
|
|
|
# tree_type:=${BT_TYPE:?}
|
|
|
|
# enable_vision:=${ENABLE_VISION:?}
|
|
|
|
# target_color:=${TARGET_COLOR:?}
|
|
|
|
|
|
|
|
# # Behavior demo using C++ and BehaviorTree.CPP
|
|
|
|
# demo-behavior-cpp:
|
|
|
|
# extends: overlay
|
|
|
|
# command: >
|
|
|
|
# ros2 launch tb3_autonomy tb3_demo_behavior_cpp.launch.py
|
|
|
|
# tree_type:=${BT_TYPE:?}
|
|
|
|
# enable_vision:=${ENABLE_VISION:?}
|
|
|
|
# target_color:=${TARGET_COLOR:?}
|