Git is warning that local files exist that aren't tracked by sparse checkout yet. This is expected since we created some files directly on the Pi.
cd ~/EDTH2025/Erewhon
# Check what's changed
git status
# Add the Pi-specific files
git add PI_COMMANDS.md test_pi_model.sh requirements_pi_*.txt PI_SETUP.md ADD_LEROBOT_TO_PI.md
# Commit them
git commit -m "Add Pi deployment files and test script"
# Now add LeRobot to sparse checkout
git sparse-checkout add src/policies/ACT/lerobot/src
# Pull to get the LeRobot files
git pull
# You may need to push your commit first if there's a conflict
git pushcd ~/EDTH2025/Erewhon
# Stash local changes
git stash
# Add LeRobot to sparse checkout
git sparse-checkout add src/policies/ACT/lerobot/src
# Pull the files
git pull
# Restore your changes
git stash popcd ~/EDTH2025/Erewhon
# Force reapply sparse checkout patterns
git sparse-checkout reapply
# Add LeRobot
git sparse-checkout add src/policies/ACT/lerobot/src
# Pull
git pullOnce the sparse checkout is updated and you have the LeRobot files:
# Verify LeRobot is there
ls -la src/policies/ACT/lerobot/src/lerobot/
# Clean up manually copied directory
rm -rf lerobot/
# Install missing packages
source venv/bin/activate
pip install -r requirements_pi_others.txt
# Test the model
./test_pi_model.shThe files you created on the Pi (test scripts, requirements, docs) are useful and should be committed back to the repo so they're version controlled and available on other machines.