From 942aeae0425b7110205a5b47a4f2cb642cb2b572 Mon Sep 17 00:00:00 2001 From: nerdfire Date: Mon, 9 Jun 2025 00:28:05 +0200 Subject: [PATCH 1/3] Update README.md Update readme and perhaps scripts to prepare the upgrade of the vision system to 24 LTS for this years Tournament --- ssl-vision/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ssl-vision/README.md b/ssl-vision/README.md index 8597e8d..55db344 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 From 6ebe7fbab7e35a95f1d1b2f45798a58a8fba9846 Mon Sep 17 00:00:00 2001 From: nerdfire Date: Thu, 12 Jun 2025 20:13:28 +0200 Subject: [PATCH 2/3] Added script and choice in the default script to install vision-processor instead of ssl-vision for now only the frist installation steps and no parts of the configuration are covered --- ssl-vision/README.md | 8 ++++++++ ssl-vision/configure-vision-processor.sh | 16 ++++++++++++++++ ssl-vision/configure.sh | 8 +++++++- 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100755 ssl-vision/configure-vision-processor.sh diff --git a/ssl-vision/README.md b/ssl-vision/README.md index 8597e8d..1afc497 100644 --- a/ssl-vision/README.md +++ b/ssl-vision/README.md @@ -23,6 +23,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 + From 326b233b52fce1c19096d5be78406456a6672866 Mon Sep 17 00:00:00 2001 From: nerdfire Date: Mon, 9 Jun 2025 00:28:05 +0200 Subject: [PATCH 3/3] Update README.md Update readme and perhaps scripts to prepare the upgrade of the vision system to 24 LTS for this years Tournament --- ssl-vision/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ssl-vision/README.md b/ssl-vision/README.md index 1afc497..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