diff --git a/ssl-vision/README.md b/ssl-vision/README.md index 8597e8d..def2937 100644 --- a/ssl-vision/README.md +++ b/ssl-vision/README.md @@ -6,11 +6,12 @@ Users connect to this computer with VNC from another computer next to the field. The scripts set up such a computer. ## Preparation -The scripts assume a *Xubuntu 22.04* installation. +The scripts assume a *Xubuntu 24.04* installation. During installation, select the *Minimal Installation* and the following user settings: * Username: `vision` * Hostname: `ssl-vision-x` (as labeled on the NUC) +* Require my password to login: No * Automatic Login: Yes ## Execution @@ -23,6 +24,14 @@ To configure everything in the correct order, run: There is some interaction required. +### Vision Processor + +To setup a nuc with [vision-processor](https://github.com/TIGERs-Mannheim/vision-processor) instead, run: +```shell +./configure.sh vp +``` + + ## Configure chrony for multiple camera setups If there is more than one camera for one field, like in division A, the clocks of all computers, that are running ssl-vision, have to be synchronized. The scripts install chrony, an NTP server implementation and interactively ask for the server IP. You can run the script again for reconfiguration: diff --git a/ssl-vision/configure-vision-processor.sh b/ssl-vision/configure-vision-processor.sh new file mode 100755 index 0000000..b047b1e --- /dev/null +++ b/ssl-vision/configure-vision-processor.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +set -euo pipefail + +echo +echo "### Clone and prepare VisionProcessor" +echo + +target_folder=~/vision-processor +if [ ! -d "${target_folder}" ]; then + git clone https://github.com/TIGERs-Mannheim/vision-processor.git "${target_folder}" +fi +cd "${target_folder}" +git pull +./setup.sh + +# Add section in the future to add basic configuration for Div A and Div B setups and setup the autostarts accordingly diff --git a/ssl-vision/configure.sh b/ssl-vision/configure.sh index 97df96e..02249f2 100755 --- a/ssl-vision/configure.sh +++ b/ssl-vision/configure.sh @@ -15,4 +15,10 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" "${SCRIPT_DIR}"/configure-chrony.sh "${SCRIPT_DIR}"/configure-vnc.sh "${SCRIPT_DIR}"/configure-spinnaker.sh -"${SCRIPT_DIR}"/configure-ssl-vision.sh +if [ "$1" == "vp" ]; + then + "${SCRIPT_DIR}"/configure-vision-processor.sh + else + "${SCRIPT_DIR}"/configure-ssl-vision.sh +fi +