17 lines
596 B
Bash
Executable File
17 lines
596 B
Bash
Executable File
#!/bin/sh
|
|
# Script running rosaria inside docker container
|
|
echo "ID: $(hostname | sed 's/[^0-9]//g')"
|
|
|
|
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 &
|
|
|
|
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
|
|
|
|
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 &
|
|
fi
|