2024-08-02 10:47:47 -03:00
|
|
|
# Flash Xbee devices
|
|
|
|
# ---------------------------------------------------------------------------------
|
|
|
|
# 1. To flash a single device, modify the .env file like shown below:
|
|
|
|
# DEVICE_PATH=/dev/ttyUSB0
|
|
|
|
# BAUD_RATE=230400
|
|
|
|
# Then use the cmd: docker compose -f docker-compose-flash-device.yml up --build
|
|
|
|
#
|
|
|
|
# 2. To flash multiple devices, modify the .env file like shown below:
|
|
|
|
# DEVICES="
|
|
|
|
# /dev/ttyUSB0,230400
|
|
|
|
# /dev/ttyUSB1,230400
|
|
|
|
# /dev/ttyUSB2,230400
|
|
|
|
# "
|
|
|
|
# Then run the bash script using: sh ./flash-devices-batch.sh
|
|
|
|
# -----------------------------------------------------------------------------------
|
|
|
|
|
2024-06-25 18:14:32 -03:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
|
|
|
xbee-mav:
|
2024-08-01 12:59:13 -03:00
|
|
|
command: rosrun xbee_ros_node xbee_config ${DEVICE_PATH} ${BAUD_RATE}
|
2024-06-25 18:14:32 -03:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
devices:
|
2024-08-01 12:59:13 -03:00
|
|
|
- ${DEVICE_PATH}:${DEVICE_PATH}
|
2024-06-25 18:14:32 -03:00
|
|
|
|
2024-06-26 19:10:52 -03:00
|
|
|
|