Skip to content

Commit

Permalink
added ros2router to demo setup
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikN committed Dec 5, 2023
1 parent 49f33f6 commit 06d9943
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions tools/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,43 @@ services:
build:
context: ../
dockerfile: tools/Dockerfile
network_mode: host
ipc: host
devices:
- ${SERIAL_PORT-:/dev/null}
- ${SERIAL_PORT:?err}
environment:
- ROS_LOCALHOST_ONLY=1
- ROS_LOCALHOST_ONLY=0
- ROS_DOMAIN_ID=42
- FASTRTPS_DEFAULT_PROFILES_FILE=/shm-only.xml
command: >
ros2 launch rosbot_bringup combined.launch.py
mecanum:=${MECANUM:-False}
serial_port:=$SERIAL_PORT
serial_baudrate:=576000
namespace:=robot1
ros2router:
image: husarnet/ros2router:1.4.0
network_mode: host
ipc: host
environment:
- USE_HUSARNET=FALSE
- ROS_LOCALHOST_ONLY=1
- ROS_DISTRO
- |
LOCAL_PARTICIPANT=
- name: LocalParticipant
kind: local
domain: 0
transport: udp
- name: LocalDockerParticipant
kind: local
domain: 42
transport: shm
- |
FILTER=
allowlist:
- name: "rt/robot1/cmd_vel"
type: "geometry_msgs::msg::dds_::Twist_"
blocklist: []
builtin-topics: []

0 comments on commit 06d9943

Please sign in to comment.