2021-12-22 17:20:23 +01:00
|
|
|
#!/bin/sh
|
|
|
|
# Script running rosaria inside docker container
|
2023-02-27 14:55:20 +01:00
|
|
|
echo "ID: $(hostname | sed 's/[^0-9]//g')"
|
2021-12-22 17:20:23 +01:00
|
|
|
|
2023-02-27 14:55:20 +01:00
|
|
|
docker run --network=host --device=/dev/ttyS0 -i -e ROS_IP=$(hostname -I | awk '{print $1}') -e PIONIER_ID=$(hostname | sed 's/[^0-9]//g') \
|
|
|
|
irth7/rosaria-legacy:latest &
|
2023-01-20 14:53:06 +01:00
|
|
|
|
|
|
|
if [ -e "/dev/decawave" ]; then
|
|
|
|
echo "found tag"
|
2023-01-24 11:55:50 +01:00
|
|
|
docker run --network=host --device=/dev/decawave -e PIONIER_ID=$(hostname | sed 's/[^0-9]//g') decawave &
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -e "/dev/hokuyo" ]; then
|
|
|
|
echo "found lidar"
|
|
|
|
docker run --network=host --device=/dev/hokuyo -e PIONIER_ID=$(hostname | sed 's/[^0-9]//g') hokuyo &
|
2023-01-20 14:53:06 +01:00
|
|
|
fi
|