Skip to content

Deployment

Environment requirements

Hardware requirements

  • An Ethernet cable that complies with ISO/IEC 11801:2002 and EIA/TIA 568B, or ISO/IEC 11801:2002 and EIA/TIA 568-B.2-1
  • A development machine (Ubuntu 22.04, x86_64, Intel i9 or better CPU)

Network configuration

Use an Ethernet cable to connect the Debug port on the G2's interface panel to the development machine's network port, then configure a static IP on the development machine's network adapter:

IP: 10.42.1.xxx (10.42.1.10~10.42.1.99)
MASK: 255.255.255.0

On the development machine, verify that communication with the G2 is working correctly:

ping 10.42.1.101

Installing GDK

Hybrid deployment

Run the following command on the development machine to install GDK:

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

Getting the example code

Get the example code archive from the G2

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

This example folder mainly contains demos for motion control, camera images, sensor data reading, and more, covering three programming languages: C++, Python, and ROS.

Folder structure

├── cpp
│   ├── CMakeLists.txt
│   └── src
├── python
│   ├── camera_demo.py
│   ├── camera_web_viewer.py
│   ├── imu_demo.py
│   ├── lidar_demo.py
│   ├── mc_example.py
│   ├── move_chassis.py
│   ├── pnc_example.py
│   ├── robot_demo.py
│   ├── slam_demo.py
│   ├── uss_demo.py
│   ├── proto
│   └── saved_commands
└── ros
    ├── camera_example
    └── control_example