# stevejaman/unitree_go2_agricultural architecture

> Architecture diagram of the GitHub repository stevejaman/unitree_go2_agricultural, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/stevejaman/unitree_go2_agricultural
- Repository: https://github.com/stevejaman/unitree_go2_agricultural

## Overview

This repository adds autonomous exploration, navigation orchestration, live camera viewing, and D1-T arm control to the Go2 platform; it also includes a Gazebo simulation and archived CMU mapping software. The main user workflow starts navigation through the runtime script, explores using the frontier node and Nav2, and sends motion to the robot; arm operation is an independent optional workflow. The README documents these system-level connections. Several implementation links, especially explorer-to-Nav2 and simulation wiring, are not shown in the excerpts, so they are omitted or marked unverified.

Main entry points: [`scripts/runtime/wifi_nav.sh`](https://github.com/stevejaman/unitree_go2_agricultural/blob/main/scripts/runtime/wifi_nav.sh) (Wi-Fi navigation launcher), [`scripts/nodes/frontier_explorer.py`](https://github.com/stevejaman/unitree_go2_agricultural/blob/main/scripts/nodes/frontier_explorer.py) (Frontier explorer), [`cmu-legacy/go2_integration_pkg/launch/nav2_bringup.launch.py`](https://github.com/stevejaman/unitree_go2_agricultural/blob/main/cmu-legacy/go2_integration_pkg/launch/nav2_bringup.launch.py) (Nav2 navigation stack), [`scripts/runtime/start_arm.sh`](https://github.com/stevejaman/unitree_go2_agricultural/blob/main/scripts/runtime/start_arm.sh) (Arm startup and fold)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["Navigation and exploration"]
  node_nav_launcher["Wi-Fi navigation launcher<br/>[wifi_nav.sh]"]
  node_network_discovery["Robot network discovery<br/>[go2_net.sh]"]
  node_frontier_explorer["Frontier explorer"]
  node_nav2["Nav2 navigation stack"]
  node_go2_robot["Go2 robot and motors"]
end

subgraph group_arm["Arm control"]
  node_arm_launcher["Arm startup and fold<br/>[start_arm.sh]"]
  node_arm_controller["D1 arm controller<br/>[d1_arm_control.py]"]
  node_arm_calibration["Arm calibration"]
  node_arm_device["Unitree D1-T arm"]
end

subgraph group_simulation["Simulation"]
  node_gazebo_model["Go2 and arm model builder<br/>[build_model.py]"]
  node_sim_bridge["Simulation robot bridge"]
  node_gazebo["Gazebo simulator"]
end

subgraph group_mapping["Archived mapping"]
  node_legacy_map_node["Legacy map ROS node<br/>[map_node.py]"]
  node_legacy_mapping_core["Occupancy and point-cloud mapping<br/>[mapping.py]"]
end

subgraph group_interfaces["Camera and operator interface"]
  node_explore_panel["RViz exploration panel<br/>[explore_panel.cpp]"]
  node_camera_relay["Live camera relay"]
  node_tour_export["Waypoint tour export<br/>[export_tour.py]"]
end

node_operator(("Operator"))

node_operator -->|"starts navigation"| node_nav_launcher
node_nav_launcher -->|"resolves addresses"| node_network_discovery
node_nav_launcher -.->|"launches navigation"| node_frontier_explorer
node_frontier_explorer -.->|"requests navigation"| node_nav2
node_nav2 -->|"sends velocity"| node_go2_robot
node_operator -->|"toggles exploration"| node_explore_panel
node_explore_panel -.->|"publishes resume"| node_frontier_explorer
node_go2_robot -.->|"provides camera stream"| node_camera_relay
node_operator -->|"requests arm fold"| node_arm_launcher
node_nav_launcher -->|"starts optionally"| node_arm_launcher
node_arm_launcher -.->|"commands arm"| node_arm_controller
node_arm_controller -->|"sends DDS commands"| node_arm_device
node_operator -->|"calibrates joints"| node_arm_calibration
node_arm_calibration -->|"uses arm control"| node_arm_controller
node_gazebo_model -.->|"generates robot model"| node_gazebo
node_gazebo -.->|"provides simulated data"| node_sim_bridge
node_sim_bridge -.->|"bridges robot topics"| node_nav2
node_legacy_map_node -->|"uses mapping core"| node_legacy_mapping_core

click node_nav_launcher "https://github.com/stevejaman/unitree_go2_agricultural/blob/main/scripts/runtime/wifi_nav.sh"
click node_network_discovery "https://github.com/stevejaman/unitree_go2_agricultural/blob/main/scripts/runtime/go2_net.sh"
click node_frontier_explorer "https://github.com/stevejaman/unitree_go2_agricultural/blob/main/scripts/nodes/frontier_explorer.py"
click node_nav2 "https://github.com/stevejaman/unitree_go2_agricultural/blob/main/cmu-legacy/go2_integration_pkg/launch/nav2_bringup.launch.py"
click node_explore_panel "https://github.com/stevejaman/unitree_go2_agricultural/blob/main/src/go2_explore_panel/src/explore_panel.cpp"
click node_camera_relay "https://github.com/stevejaman/unitree_go2_agricultural/blob/main/scripts/nodes/go2_camera_relay.py"
click node_arm_launcher "https://github.com/stevejaman/unitree_go2_agricultural/blob/main/scripts/runtime/start_arm.sh"
click node_arm_controller "https://github.com/stevejaman/unitree_go2_agricultural/blob/main/scripts/nodes/d1_arm_control.py"
click node_arm_calibration "https://github.com/stevejaman/unitree_go2_agricultural/blob/main/scripts/nodes/d1_arm_calibration.py"
click node_gazebo_model "https://github.com/stevejaman/unitree_go2_agricultural/blob/main/gazebo/sim/build_model.py"
click node_sim_bridge "https://github.com/stevejaman/unitree_go2_agricultural/blob/main/gazebo/sim/sim_robot_bridge.py"
click node_legacy_map_node "https://github.com/stevejaman/unitree_go2_agricultural/blob/main/cmu-legacy/go2_integration_pkg/go2_integration_pkg/map_node.py"
click node_legacy_mapping_core "https://github.com/stevejaman/unitree_go2_agricultural/blob/main/cmu-legacy/go2_integration_pkg/go2_integration_pkg/core/mapping.py"
click node_tour_export "https://github.com/stevejaman/unitree_go2_agricultural/blob/main/scripts/tools/export_tour.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_nav_launcher,node_network_discovery,node_frontier_explorer,node_nav2,node_go2_robot toneBlue
class node_arm_launcher,node_arm_controller,node_arm_calibration,node_arm_device toneAmber
class node_gazebo_model,node_sim_bridge,node_gazebo toneMint
class node_legacy_map_node,node_legacy_mapping_core toneRose
class node_explore_panel,node_camera_relay,node_tour_export,node_operator toneIndigo
```

## Components

### Navigation and exploration

- [Wi-Fi navigation launcher](https://github.com/stevejaman/unitree_go2_agricultural/blob/main/scripts/runtime/wifi_nav.sh): `scripts/runtime/wifi_nav.sh`
- [Robot network discovery](https://github.com/stevejaman/unitree_go2_agricultural/blob/main/scripts/runtime/go2_net.sh): `scripts/runtime/go2_net.sh`
- [Frontier explorer](https://github.com/stevejaman/unitree_go2_agricultural/blob/main/scripts/nodes/frontier_explorer.py): `scripts/nodes/frontier_explorer.py`
- [Nav2 navigation stack](https://github.com/stevejaman/unitree_go2_agricultural/blob/main/cmu-legacy/go2_integration_pkg/launch/nav2_bringup.launch.py): `cmu-legacy/go2_integration_pkg/launch/nav2_bringup.launch.py`
- **Go2 robot and motors**

### Arm control

- [Arm startup and fold](https://github.com/stevejaman/unitree_go2_agricultural/blob/main/scripts/runtime/start_arm.sh): `scripts/runtime/start_arm.sh`
- [D1 arm controller](https://github.com/stevejaman/unitree_go2_agricultural/blob/main/scripts/nodes/d1_arm_control.py): `scripts/nodes/d1_arm_control.py`
- [Arm calibration](https://github.com/stevejaman/unitree_go2_agricultural/blob/main/scripts/nodes/d1_arm_calibration.py): `scripts/nodes/d1_arm_calibration.py`
- **Unitree D1-T arm**

### Simulation

- [Go2 and arm model builder](https://github.com/stevejaman/unitree_go2_agricultural/blob/main/gazebo/sim/build_model.py): `gazebo/sim/build_model.py`
- [Simulation robot bridge](https://github.com/stevejaman/unitree_go2_agricultural/blob/main/gazebo/sim/sim_robot_bridge.py): `gazebo/sim/sim_robot_bridge.py`
- **Gazebo simulator**

### Archived mapping

- [Legacy map ROS node](https://github.com/stevejaman/unitree_go2_agricultural/blob/main/cmu-legacy/go2_integration_pkg/go2_integration_pkg/map_node.py): `cmu-legacy/go2_integration_pkg/go2_integration_pkg/map_node.py`
- [Occupancy and point-cloud mapping](https://github.com/stevejaman/unitree_go2_agricultural/blob/main/cmu-legacy/go2_integration_pkg/go2_integration_pkg/core/mapping.py): `cmu-legacy/go2_integration_pkg/go2_integration_pkg/core/mapping.py`

### Camera and operator interface

- [RViz exploration panel](https://github.com/stevejaman/unitree_go2_agricultural/blob/main/src/go2_explore_panel/src/explore_panel.cpp): `src/go2_explore_panel/src/explore_panel.cpp`
- [Live camera relay](https://github.com/stevejaman/unitree_go2_agricultural/blob/main/scripts/nodes/go2_camera_relay.py): `scripts/nodes/go2_camera_relay.py`
- [Waypoint tour export](https://github.com/stevejaman/unitree_go2_agricultural/blob/main/scripts/tools/export_tour.py): `scripts/tools/export_tour.py`

### Other components

- **Operator**

## Connections

- Operator → Wi-Fi navigation launcher: starts navigation (evidence: `README.md`)
- Wi-Fi navigation launcher → Robot network discovery: resolves addresses (evidence: `README.md`)
- Wi-Fi navigation launcher → Frontier explorer: launches navigation
- Frontier explorer → Nav2 navigation stack: requests navigation
- Nav2 navigation stack → Go2 robot and motors: sends velocity (evidence: `README.md`)
- Operator → RViz exploration panel: toggles exploration (evidence: `src/go2_explore_panel/src/explore_panel.cpp`)
- RViz exploration panel → Frontier explorer: publishes resume
- Go2 robot and motors → Live camera relay: provides camera stream (evidence: `README.md`)
- Operator → Arm startup and fold: requests arm fold (evidence: `README.md`)
- Wi-Fi navigation launcher → Arm startup and fold: starts optionally (evidence: `README.md`)
- Arm startup and fold → D1 arm controller: commands arm
- D1 arm controller → Unitree D1-T arm: sends DDS commands (evidence: `README.md`)
- Operator → Arm calibration: calibrates joints (evidence: `README.md`)
- Arm calibration → D1 arm controller: uses arm control
- Go2 and arm model builder → Gazebo simulator: generates robot model
- Gazebo simulator → Simulation robot bridge: provides simulated data
- Simulation robot bridge → Nav2 navigation stack: bridges robot topics
- Legacy map ROS node → Occupancy and point-cloud mapping: uses mapping core (evidence: `cmu-legacy/go2_integration_pkg/go2_integration_pkg/map_node.py`)
