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:
On the development machine, verify that communication with the G2 is working correctly:
Installing GDK¶
Hybrid deployment¶
Run the following command on the development machine to install GDK:
Getting the example code¶
Get the example code archive from the G2¶
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