Machine Learning Trainer
Training environment to make a walk model for the hexapod generated code that will be checked
This commit is contained in:
@@ -6,8 +6,7 @@ It uses IKPy for inverse kinematics, PyBullet for optional simulation, and can s
|
||||
|
||||
## Requirements
|
||||
|
||||
- Python 3.12 recommended on Windows
|
||||
- Python 3.11 / 3.12 is safest for `pygame` compatibility
|
||||
- Python 3.12 is safest for `pygame` compatibility
|
||||
- Required Python packages:
|
||||
- `numpy`
|
||||
- `pygame`
|
||||
@@ -18,22 +17,22 @@ It uses IKPy for inverse kinematics, PyBullet for optional simulation, and can s
|
||||
|
||||
## Setup
|
||||
|
||||
### Linux / macOS (Bash)
|
||||
### Linux (Bash)
|
||||
|
||||
```bash
|
||||
python3 -m venv .venv
|
||||
python3.12 -m venv .venv
|
||||
source .venv/bin/activate
|
||||
python -m pip install --upgrade pip setuptools wheel
|
||||
pip install numpy pygame ikpy pybullet pyserial matplotlib
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
### Windows (PowerShell)
|
||||
|
||||
```powershell
|
||||
python -m venv .venv
|
||||
python3.12 -m venv .venv
|
||||
.\.venv\Scripts\Activate.ps1
|
||||
python -m pip install --upgrade pip setuptools wheel
|
||||
pip install numpy pygame ikpy pybullet pyserial matplotlib
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
If PowerShell blocks activation:
|
||||
@@ -51,6 +50,19 @@ From the repository root:
|
||||
python main.py
|
||||
```
|
||||
|
||||
If Linux breaks with
|
||||
```
|
||||
ExampleBrowserThreadFunc started
|
||||
X11 functions dynamically loaded using dlopen/dlsym OK!
|
||||
|
||||
cannot connect to X server
|
||||
```
|
||||
run:
|
||||
```
|
||||
export DISPLAY=:0
|
||||
python main.py
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
Edit `config.py` before running:
|
||||
|
||||
Reference in New Issue
Block a user