Code:
## 🟦 1. Connect your laptop to the robot over Wi‑Fi
This part is easy:
- Turn on the robot.
- On the robot’s screen, find the **Wi‑Fi settings**.
- Connect the robot to your home Wi‑Fi (or hotspot).
- On your laptop, connect to the **same Wi‑Fi network**.
Now both devices are on the same network.
### Find the robot’s IP
On the robot’s screen, it will show something like:
```
192.168.1.57
```
That number is the robot’s “address.”
---
## đźź© 2. SSH into the robot (no cable needed)
On your laptop:
### Windows:
Open **PowerShell**.
### Mac/Linux:
Open **Terminal**.
Then type:
```
ssh unitree@ROBOT_IP_HERE
```
Example:
```
ssh [email protected]
```
Press Enter.
Type the robot’s password (from the manual).
If you see:
```
unitree@robot:~$
```
You are **inside the robot’s computer**.
---
## đźź§ 3. Upload your entire Python project to the robot
Let’s say your project folder is named `myproject`.
### Windows (PowerShell):
```
scp -r C:\Users\fuki\myproject [email protected]:/home/unitree/
```
### Mac/Linux:
```
scp -r ~/myproject [email protected]:/home/unitree/
```
Now your project is stored on the robot.
---
## 🟥 4. Install your project’s Python requirements on the robot
Inside the SSH window:
```
cd /home/unitree/myproject
pip3 install -r requirements.txt
```
If you use SQLite, it already works on Linux — no extra setup needed.
---
## 🟦 5. Test run your project on the robot
Still inside SSH:
```
python3 main.py
```
If your project uses the Unitree SDK, it will run normally because you’re running it **inside the robot**.
---
## 🟩 6. Make your project auto‑start every time the robot turns on
This makes the robot run your code **offline**, **automatically**, **forever**, without your laptop.
Inside SSH:
```
sudo nano /etc/systemd/system/myproject.service
```
Paste this:
```
[Unit]
Description=My Python Project
After=network.target
[Service]
Type=simple
User=unitree
WorkingDirectory=/home/unitree/myproject
ExecStart=/usr/bin/python3 /home/unitree/myproject/main.py
Restart=always
[Install]
WantedBy=multi-user.target
```
Save:
- Press **Ctrl+O**, Enter
- Press **Ctrl+X**
Activate it:
```
sudo systemctl daemon-reload
sudo systemctl enable myproject.service
sudo systemctl start myproject.service
```
Now your robot will:
- boot up
- automatically run your Python project
- use your SQLite file
- work offline
- keep running even if Wi‑Fi disconnects
---
## đźź§ 7. Check logs if something goes wrong
```
journalctl -u myproject.service -f
``