# agibot-routeplanner **Repository Path**: MechaForge/agibot-routeplanner ## Basic Information - **Project Name**: agibot-routeplanner - **Description**: Using natural language to organize the route for the robot. - **Primary Language**: Python - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-04-16 - **Last Updated**: 2026-05-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Agibot Route Planner A command-line route planning tool for the ZSL-1 robot dog, allowing you to plan action sequences through simple English commands. ![Python](https://img.shields.io/badge/Python-3.10-blue.svg) ![License](https://img.shields.io/badge/License-MIT-green.svg) --- ## Features - **Command-line Interface**: Easy-to-use text-based interface - **Action Queue**: Plan multiple actions and execute them in sequence - **Multiple Movement Modes**: Walk, turn, side-walk, and special moves - **Safety First**: Automatic safe shutdown on errors or interrupts - **SDK Integration**: Works with the ZSL-1 robot SDK --- ## Requirements - Python 3.10. The included SDK extension files are built for CPython 3.10. - ZSL-1 Robot SDK - Robot connected via Wi-Fi (IP: 192.168.234.1) --- ## Installation 1. Clone this repository: ```bash git clone https://gitee.com/bob-ho/agibot-routeplanner.git cd agibot-routeplanner ``` 2. Set up the SDK path (choose one): - Place the script in the SDK directory - Set environment variable: `export AGIBOT_SDK_PATH=/path/to/agibot_sdk` --- ## Quick Start 1. Connect to the robot's Wi-Fi network 2. Run the program: ```bash python3.10 robot.py ``` 3. Enter commands to plan your route 4. Type `run` to execute the action sequence --- ## Commands ### Movement Commands | Command | Description | Example | |---------|-------------|---------| | `walk` | Walk forward/backward along X-axis | `walk fwd 2m slow` | | `turn` | Turn left/right | `turn left 90` | | `sideWalk` | Side walk along Y-axis | `sideWalk left 1m med` | | `twoLegStand` | Walk on two legs | `twoLegStand fwd 0.5m left 45` | ### Action Commands | Command | Description | Example | |---------|-------------|---------| | `jump` | Jump in place | `jump` | | `frontjump` | Jump forward | `frontjump` | | `backflip` | Backflip | `backflip` | | `shakehand` / `wave` | Wave hand | `shakehand` | ### System Commands | Command | Description | |---------|-------------| | `run` | Execute all queued actions | | `help` | Show help information | | `quit` / `exit` / `q` | Exit the program | ### Speed Options | Speed | Walk Speed | SideWalk Speed | |-------|------------|----------------| | `slow` | 0.5 m/s | 0.2 m/s | | `med` | 1.0 m/s | 0.5 m/s | | `high` | 2.0 m/s | 1.0 m/s | --- ## Usage Example ``` > walk fwd 2m slow {'type': 'move', 'vx': '0.5', 'vy': '0', 'yaw_rate': '0', 'time': '4.0'} > turn left 90 {'type': 'move', 'vx': '0', 'vy': '0', 'yaw_rate': '0.5', 'time': '3.141592653589793'} > jump {'type': 'jump'} > run ``` --- ## Project Structure ``` agibot-routeplanner/ ├── robot.py # Main program (SDK connection, action execution) ├── ui.py # User interface (command parsing, queue management) ├── template.py # Template file ├── README.md # This file ├── README_中文.md # Chinese version ├── PROJECT_PLAN.md # Development plan └── demo/ # SDK demo programs └── zsl-1/ ├── cpp/ # C++ examples └── python/ # Python examples ``` --- ## Safety Features - **Emergency Shutdown**: Press Ctrl+C to stop and make the robot lie down safely - **Auto Recovery**: Automatic lie-down on errors - **Movement Reset**: Robot stops after each action --- ## SDK Function Mapping | UI Command | SDK Function | Parameters | |------------|--------------|------------| | walk fwd | move(vx, vy, yaw_rate) | vx=speed, vy=0, yaw_rate=0 | | walk bwd | move(vx, vy, yaw_rate) | vx=-speed, vy=0, yaw_rate=0 | | turn | move(vx, vy, yaw_rate) | vx=0, vy=0, yaw_rate=±0.5 | | sideWalk | move(vx, vy, yaw_rate) | vx=0, vy=±speed, yaw_rate=0 | | twoLegStand | twoLegStand(vx, yaw_rate) | As specified | | jump | jump() | None | | frontjump | frontJump() | None | | backflip | backflip() | None | | shakehand | shakeHand() | None | --- ## Future Enhancements - [ ] Graphical User Interface (GUI) - [ ] Path Visualization - [ ] Configuration File Support - [ ] Action Script Save/Load - [ ] Batch Action Editing - [ ] History Feature --- ## Contact - **Author**: Bob Ho - **Email**: bobho.cn@icloud.com - **Gitee**: https://gitee.com/bob-ho/agibot-routeplanner --- ## License MIT License