rosaria/run.sh

12 lines
515 B
Bash
Raw Normal View History

2021-12-22 17:20:23 +01:00
#!/bin/sh
# Script running rosaria inside docker container
echo "ID: $PIONIER_ID"
2023-01-20 14:53:06 +01:00
docker run -d --privileged --network=host --device=/dev/ttyS0 -i -e ROS_IP=$(hostname -I | awk '{print $1}') -e PIONIER_ID=$(hostname | sed 's/[^0-9]//g'
2023-01-20 15:23:35 +01:00
) --mount type=bind,source=/home/lab1_5/rosaria/Legacy/ws_linux,target=/home/lab1_5/ws/ws_linux irth7/rosaria-legacy
2023-01-20 14:53:06 +01:00
if [ -e "/dev/decawave" ]; then
echo "found tag"
docker run --network=host --device=/dev/decawave -e PIONIER_ID=$(hostname | sed 's/[^0-9]//g') decawave
fi