Python controllers for OnRobot devices connected through the Compute Box.
This repository integrates the former onrobot-rg, onrobot-vg, and onrobot-sd repositories.
| Device | Class | Interface |
|---|---|---|
| RG2 / RG6 gripper | RG |
Modbus TCP |
| VG10 / VGC10 vacuum gripper | VG |
Modbus TCP |
| Screwdriver | SD |
XML-RPC |
- Python 3.7+
- pymodbus==2.5.3
git clone [email protected]:takuya-ki/onrobot_python.git && cd onrobot_python && pip install -r requirements.txt
- Connect the cable between Compute Box and Tool Changer.
- Connect an ethernet cable between Compute Box and your computer.
- Execute the demo script for your device.
python src/demo.py <device> -hshows the options.
python src/demo.py rg --gripper rg6 --ip 192.168.1.1 --port 502
python src/demo.py vg --ip 192.168.1.1 --port 502
python src/demo.py sd --id 0 --bit_ext 100 --ip 192.168.1.1
from onrobot import RG # run from src/ or add src/ to PYTHONPATH rg = RG('rg6', '192.168.1.1', 502) rg.move_gripper(800) # target width in 1/10 mm rg.close_connection()
This software is released under the MIT License, see LICENSE.


