2025/12/19
sudo usermod -aG video robo
sudo usermod -aG dialout roboCreating pyenv
python3 -m venv .venv --system-site-packagespip install --break-system-packages uvuv init
uv add opencv-python ultralytics gradio_imageslider gradio matplotlib torch torchvision pyserial Pillow huggingface-hub depth-anything-v2
Modify
include-system-site-packages = true
uv run python main.pyThe robot runs as a systemd service with automatic restart capabilities.
- Copy service files to systemd directory:
sudo cp robot.service robot.path robot-restart.service /etc/systemd/system/- Reload systemd and enable services:
sudo systemctl daemon-reload
sudo systemctl enable robot.service robot.path
sudo systemctl start robot.service robot.path- Check status:
sudo systemctl status robot.service
sudo systemctl status robot.pathTo restart the robot service remotely or via automation:
touch /home/robo/restart.triggerThis will automatically trigger a service restart via the path monitoring mechanism.
- robot.service: Main robot process (runs continuously)
- robot.path: Monitors
/home/robo/restart.triggerfor changes - robot-restart.service: Oneshot service that restarts robot.service when triggered
rm /etc/ssh/sshd_config.d/rename_user.conf