Skip to content

Python quick start

Installation

Connect the development machine directly to the G02 robot with an Ethernet cable, and configure the development machine's static IP as 10.42.1.102. Make sure ping 10.42.1.101 works correctly.

Install the GDK dependencies on the development machine:

curl -sSL http://10.42.1.101:8849/install.sh | bash

Running the example

Declare the Python path

source ~/.cache/agibot/app/env.sh

Run the motion control example code

cd ~/.cache/agibot/app/gdk/examples/python
python3 mc_example.py

Controls

Key Function
a/d Switch joint
w/s Adjust joint angle
m Switch action sequence
p Play action sequence
q Exit program