47 lines
980 B
YAML
47 lines
980 B
YAML
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
|
|
|
ros-master:
|
|
image: git.spirirobotics.com/spiri/services-ros1-core:main
|
|
command: stdbuf -o L roscore
|
|
environment:
|
|
- "ROS_MASTER_URI=http://ros-master:11311"
|
|
restart: always
|
|
ports:
|
|
- "11311:11311"
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 1G
|
|
# Madness, setting a low ulimit here fixes memory leaks
|
|
# https://answers.ros.org/question/336963/rosout-high-memory-usage/
|
|
ulimits:
|
|
nofile:
|
|
soft: 1024
|
|
hard: 524288
|
|
networks:
|
|
- sim_network
|
|
|
|
xbee-mav:
|
|
command: tail -f /dev/null
|
|
# command: rosrun xbee_ros_node xbee_config /dev/ttyUSB0 9600
|
|
container_name: xbee-mav
|
|
depends_on:
|
|
- ros-master
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
devices:
|
|
- /dev/ttyUSB0:/dev/ttyUSB0
|
|
environment:
|
|
- "ROS_MASTER_URI=http://ros-master:11311"
|
|
networks:
|
|
- sim_network
|
|
|
|
networks:
|
|
sim_network:
|
|
driver: bridge
|