https://github.com/waveshareteam/waveshare_roarm_sdk
This is a python API for serial or http communication with waveshare roarm and controlling it.
https://github.com/waveshareteam/waveshare_roarm_sdk
http python roarm robotics serial waveshare
Last synced: 7 months ago
JSON representation
This is a python API for serial or http communication with waveshare roarm and controlling it.
- Host: GitHub
- URL: https://github.com/waveshareteam/waveshare_roarm_sdk
- Owner: waveshareteam
- License: agpl-3.0
- Created: 2025-02-15T02:08:54.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-05-09T10:52:31.000Z (9 months ago)
- Last Synced: 2025-06-03T06:10:50.200Z (8 months ago)
- Topics: http, python, roarm, robotics, serial, waveshare
- Language: Python
- Homepage: https://www.waveshare.com
- Size: 207 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Waveshare Roarm SDK


This is a python API for serial or http communication with waveshare roarm and controlling it.
[Waveshare RoArm-M2 Series](https://www.waveshare.com/roarm-m2-s.htm): **RoArm-M2-S**, **RoArm-M2-Pro**.
[Waveshare RoArm-M3 Series](https://www.waveshare.com/roarm-m3.htm): **RoArm-M3-S**, **RoArm-M3-Pro**.
## Installation
### Pip install
```bash
pip install roarm-sdk==0.1.0
```
### Source code
```bash
git clone https://https://github.com/waveshareteam/waveshare_roarm_sdk.git
cd /waveshare_roarm_sdk
# Install
[sudo] python2 setup.py install
# or
[sudo] python3 setup.py install
```
## Usage:
```python
from roarm_sdk.roarm import roarm
# for roarm_m2 Serial communication example
roarm = roarm(roarm_type="roarm_m2", port="/dev/ttyUSB0", baudrate=115200)
# for roarm_m3 Serial communication example
#roarm = roarm(roarm_type="roarm_m3", port="/dev/ttyUSB0", baudrate=115200)
```
The [`demo`](./demo) directory stores some test case files.
You can find out which interfaces roarm_sdk provides in [`./doc/README.md`](./doc/RADME.md).
 
[roarm_m2 api 说明](./doc/roarm_m2_zh.md) | [roarm_m2 api Description](./doc/roarm_m2_en.md)
[roarm_m3 api 说明](./doc/roarm_m3_zh.md) | [roarm_m3 api Description](./doc/roarm_m3_en.md)