Migrates the ulite6 Python dora node from dora_littlehand into a
self-contained repository following the dora-zed structure. Adds
command lifecycle state ("started"/"done"/"failed") and type
("command"/"error") to the status output so coordinator nodes can
reliably sequence robot actions without polling.
22 lines
558 B
Bash
Executable File
22 lines
558 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Install dependencies for dora-ulite6.
|
|
# Requires: Python >=3.8
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
REPO_DIR="${SCRIPT_DIR}/.."
|
|
|
|
# Install uv if not present
|
|
if ! command -v uv &>/dev/null; then
|
|
echo ">>> Installing uv..."
|
|
curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
fi
|
|
|
|
# Create venv and install
|
|
echo ">>> Installing dora-ulite6 in editable mode..."
|
|
cd "$REPO_DIR"
|
|
uv venv --seed --allow-existing
|
|
uv pip install -e ".[dev]"
|
|
|
|
echo ">>> Done. Activate with: source .venv/bin/activate"
|