2023-07-26 11:02:21 +00:00
|
|
|
version: "3.9"
|
2023-08-02 13:56:21 +00:00
|
|
|
|
2023-07-26 11:02:21 +00:00
|
|
|
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
|
2023-08-02 09:34:51 +00:00
|
|
|
- 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-08-09 07:45:03 +00:00
|
|
|
devices:
|
|
|
|
- /dev/input/js0:/dev/input/js0
|
2023-07-26 11:02:21 +00:00
|
|
|
|
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
|
2023-08-02 09:34:51 +00:00
|
|
|
- linux/amd64
|
2023-08-02 13:56:21 +00:00
|
|
|
volumes:
|
|
|
|
- .:/repo
|
2023-08-03 06:33:30 +00:00
|
|
|
command: >
|
|
|
|
/bin/bash
|
2023-08-02 09:34:51 +00:00
|
|
|
|
2023-08-02 13:56:21 +00:00
|
|
|
# Additional dependencies for GUI applications
|
|
|
|
guis:
|
|
|
|
extends: overlay
|
|
|
|
image: ghcr.io/bjoernellens1/ros2_rmp/rmp:guis
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: docker/Dockerfile
|
|
|
|
tags:
|
|
|
|
- ghcr.io/bjoernellens1/ros2_rmp/rmp:guis
|
|
|
|
target: guis
|
|
|
|
x-bake:
|
|
|
|
platforms:
|
|
|
|
- linux/arm64
|
|
|
|
- linux/amd64
|
|
|
|
#entrypoint: /bin/bash
|
|
|
|
command: >
|
|
|
|
/bin/bash
|
2023-07-26 11:02:21 +00:00
|
|
|
|
|
|
|
# Robot State Publisher
|
2023-08-10 07:04:23 +00:00
|
|
|
rsp:
|
2023-07-26 11:02:21 +00:00
|
|
|
extends: overlay
|
|
|
|
command: >
|
2023-08-08 08:51:25 +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-08-08 09:37:57 +00:00
|
|
|
environment:
|
|
|
|
- ROS_DOMAIN_ID=5
|
2023-07-26 11:02:21 +00:00
|
|
|
|
2023-07-31 08:13:01 +00:00
|
|
|
# Controller
|
2023-07-26 11:02:21 +00:00
|
|
|
controller:
|
2023-08-17 08:51:15 +00:00
|
|
|
extends: base
|
2023-07-26 11:02:21 +00:00
|
|
|
command: >
|
2023-08-17 08:51:15 +00:00
|
|
|
ros2 run segwayrmp SmartCar --ros-args -r cmd_vel:=cmd_vel_out -p serial_full_name:=/dev/ttyUSB0
|
2023-07-26 11:02:21 +00:00
|
|
|
devices:
|
|
|
|
- /dev/ttyUSB0:/dev/ttyUSB0
|
|
|
|
# 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-08-08 09:37:57 +00:00
|
|
|
environment:
|
|
|
|
- ROS_DOMAIN_ID=5
|
2023-08-08 10:03:11 +00:00
|
|
|
restart: unless-stopped
|
2023-07-26 11:02:21 +00:00
|
|
|
|
2023-07-31 08:13:01 +00:00
|
|
|
# teleop
|
|
|
|
teleop:
|
2023-08-18 08:03:42 +00:00
|
|
|
extends: base
|
2023-07-31 08:13:01 +00:00
|
|
|
command: >
|
2023-08-17 08:51:15 +00:00
|
|
|
ros2 launch rmp220_teleop robot_joystick.launch.py
|
2023-07-31 08:13:01 +00:00
|
|
|
devices:
|
|
|
|
- /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-08 09:37:57 +00:00
|
|
|
environment:
|
|
|
|
- ROS_DOMAIN_ID=5
|
2023-07-31 08:13:01 +00:00
|
|
|
|
2023-07-31 08:07:09 +00:00
|
|
|
# lidar
|
|
|
|
lidar:
|
2023-07-26 11:02:21 +00:00
|
|
|
extends: overlay
|
|
|
|
command: >
|
2023-08-28 09:31:22 +00:00
|
|
|
ros2 launch cps_rmp220_support robot_lidar.launch.py serial_port:=/dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_3453995662b3af4f81f4a69eba5f3f29-if00-port0
|
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-08-09 08:36:40 +00:00
|
|
|
# depends_on:
|
|
|
|
# - robot_state_publisher
|
2023-08-08 09:37:57 +00:00
|
|
|
environment:
|
|
|
|
- ROS_DOMAIN_ID=5
|
2023-08-09 09:58:24 +00:00
|
|
|
devices:
|
2023-08-09 10:03:10 +00:00
|
|
|
- /dev/ttyUSB1:/dev/ttyUSB1
|
|
|
|
- /dev/ttyUSB0:/dev/ttyUSB0
|
2023-07-26 11:02:21 +00:00
|
|
|
|
2023-08-22 07:05:48 +00:00
|
|
|
# localiaztion by ekf node
|
|
|
|
ekf:
|
|
|
|
extends: overlay
|
|
|
|
command: >
|
|
|
|
ros2 launch cps_rmp220_support robot_localization.launch.py
|
|
|
|
# Interactive shell
|
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
|
|
|
# Networking and IPC for ROS 2
|
|
|
|
network_mode: host
|
|
|
|
ipc: host
|
|
|
|
environment:
|
|
|
|
- ROS_DOMAIN_ID=5
|
|
|
|
|
2023-07-26 11:02:21 +00:00
|
|
|
# mapping
|
|
|
|
mapping:
|
|
|
|
extends: overlay
|
|
|
|
command: >
|
2023-08-08 08:51:25 +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
|
2023-08-08 09:37:57 +00:00
|
|
|
environment:
|
|
|
|
- ROS_DOMAIN_ID=5
|
2023-07-26 11:02:21 +00:00
|
|
|
|
2023-08-22 10:06:18 +00:00
|
|
|
# slam_localization
|
|
|
|
localization:
|
|
|
|
extends: overlay
|
|
|
|
command: >
|
2023-08-23 06:32:04 +00:00
|
|
|
ros2 launch cps_rmp220_support robot_mapping_localization.launch.py map_file_name:=/repo/maps/map.yaml
|
2023-08-23 06:16:20 +00:00
|
|
|
# Interactive shell
|
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
|
|
|
# Networking and IPC for ROS 2
|
|
|
|
network_mode: host
|
|
|
|
ipc: host
|
|
|
|
environment:
|
|
|
|
- ROS_DOMAIN_ID=5
|
|
|
|
|
2023-08-23 06:32:04 +00:00
|
|
|
# amcl_localization
|
2023-08-23 06:16:20 +00:00
|
|
|
amcl:
|
|
|
|
extends: overlay
|
|
|
|
command: >
|
2023-08-23 06:32:04 +00:00
|
|
|
ros2 launch cps_rmp220_support robot_amcl.launch.py map:=/repo/maps/map.yaml
|
2023-08-22 10:06:18 +00:00
|
|
|
# Interactive shell
|
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
|
|
|
# Networking and IPC for ROS 2
|
|
|
|
network_mode: host
|
|
|
|
ipc: host
|
|
|
|
environment:
|
|
|
|
- ROS_DOMAIN_ID=5
|
|
|
|
|
2023-07-26 11:02:21 +00:00
|
|
|
# navigation
|
|
|
|
navigation:
|
|
|
|
extends: overlay
|
|
|
|
command: >
|
2023-08-08 08:51:25 +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-08-08 09:37:57 +00:00
|
|
|
environment:
|
|
|
|
- ROS_DOMAIN_ID=5
|
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-08-03 15:23:47 +00:00
|
|
|
devices:
|
|
|
|
- /dev/input/js0:/dev/input/js0
|
2023-08-08 09:34:04 +00:00
|
|
|
environment:
|
|
|
|
- ROS_DOMAIN_ID=5
|
2023-07-26 11:02:21 +00:00
|
|
|
|
2023-08-02 13:56:21 +00:00
|
|
|
# rviz2
|
|
|
|
rviz2:
|
|
|
|
extends: guis
|
|
|
|
# command: >
|
2023-08-08 08:51:25 +00:00
|
|
|
# ros2 launch cps_rmp220_support robot_rviz2.launch.py
|
2023-08-02 13:56:21 +00:00
|
|
|
command: >
|
2023-08-22 06:34:05 +00:00
|
|
|
ros2 launch cps_rmp220_support rviz.launch.py
|
2023-08-02 13:56: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
|
2023-08-08 09:37:57 +00:00
|
|
|
- ROS_DOMAIN_ID=5
|
2023-08-02 13:56:21 +00:00
|
|
|
volumes:
|
|
|
|
# Allows graphical programs in the container.
|
|
|
|
- /tmp/.X11-unix:/tmp/.X11-unix:rw
|
|
|
|
- ${XAUTHORITY:-$HOME/.Xauthority}:/root/.Xauthority
|