Dixon/utils/deploy_dixon
Russell Gilbert 2f0cb6e359 Renames RobotNode to Dixon and adds Rustylee core
Refactors the existing `RobotNode` module by renaming its directory and associated files to `Dixon`. This consolidates the core C++ robot node under a new name.

Introduces the initial `rustylee` module, establishing a foundational structure for the robot's brain. This new Rust component includes:
- A state machine (Starting, Running, Stopping, Stopped) to manage the brain's operational lifecycle.
- Graceful shutdown capabilities using a `ctrlc` signal handler.
- A main watchdog loop that orchestrates state transitions and responds to shutdown requests.
2026-02-26 11:00:48 +00:00

22 lines
654 B
Bash
Executable file

#!/bin/bash
# Configuration
LOCAL_BIN="$HOME/dev/Dixon/src/Dixon/cmake-build-pi5-debug/dixon"
REMOTE_TARGET="russellg59@dixon1"
REMOTE_DIR="/home/russellg59/dixon"
REMOTE_EXE="$REMOTE_DIR/dixon"
# Check if the monster PC actually finished the build
if [ ! -f "$LOCAL_BIN" ]; then
echo "Error: Binary not found at $LOCAL_BIN"
exit 1
fi
echo "Cleaning remote path and pushing binary..."
# Remove the target first to prevent the 'directory' bug, then push and fix permissions
ssh $REMOTE_TARGET "rm -rf $REMOTE_EXE"
scp "$LOCAL_BIN" $REMOTE_TARGET:"$REMOTE_EXE"
ssh $REMOTE_TARGET "chmod +x $REMOTE_EXE"
echo "Deployment complete: $REMOTE_EXE"