# adrianomcr/vectorfield_stack architecture

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

- Interactive diagram: https://gitdiagram.com/adrianomcr/vectorfield_stack
- Repository: https://github.com/adrianomcr/vectorfield_stack

## Overview

vectorfield_stack is a ROS navigation-control stack: a user supplies a reference path, a distance-based vector field guides the robot, and robot-specific controllers produce motion commands. It also includes several simple robot simulators and runnable examples. The sampled controller and field sources show their internal calls; simulator and example relationships are included where the README documents them. Simulator internals beyond the drone excerpt were not sampled.

Main entry points: [`examples/launch`](https://github.com/adrianomcr/vectorfield_stack/tree/main/examples/launch) (Example launches), [`ground_robot/scripts/groundrobot_class.py`](https://github.com/adrianomcr/vectorfield_stack/blob/main/ground_robot/scripts/groundrobot_class.py) (Ground control), [`ground_robot/scripts/differential_node.py`](https://github.com/adrianomcr/vectorfield_stack/blob/main/ground_robot/scripts/differential_node.py) (Differential node), [`ground_robot/scripts/skidsteer_node.py`](https://github.com/adrianomcr/vectorfield_stack/blob/main/ground_robot/scripts/skidsteer_node.py) (Skid-steer node)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["Field navigation"]
  node_distance_node["Standalone field node<br/>[simple_node.py]"]
  node_field["Distance vector field"]
  node_path_msg["Path messages<br/>[Path.msg]"]
end

subgraph group_controllers["Robot controllers"]
  node_ground_diff_node["Differential node"]
  node_ground_skid_node["Skid-steer node<br/>[skidsteer_node.py]"]
  node_ground_control["Ground control"]
  node_quad_node["Quadcopter node<br/>[quad_node.py]"]
  node_quad_control["Quadcopter control<br/>[quadrobot_class.py]"]
end

subgraph group_simulation["Robot simulation"]
  node_holonomic_sim["Holonomic simulator<br/>[integrator_sim.py]"]
  node_differential_sim["Differential simulator"]
  node_skid_sim["Skid-steer simulator<br/>[skidsteer_sim.py]"]
  node_drone_sim["Drone simulator<br/>[drone_sim.py]"]
end

subgraph group_examples["Usage examples"]
  node_example_path["Example path publisher<br/>[example_path.py]"]
  node_example_launch["Example launches"]
end

subgraph group_math["Math utilities"]
  node_math_utils["Math utilities<br/>[math_utils.py]"]
end

node_operator(("Operator"))
node_reference["Reference path"]

node_operator -->|"runs example"| node_example_launch
node_example_path -.->|"publishes path"| node_path_msg
node_reference -->|"provides path"| node_distance_node
node_path_msg -->|"configures path"| node_distance_node
node_distance_node -->|"queries field"| node_field
node_reference -->|"provides path"| node_ground_diff_node
node_reference -->|"provides path"| node_ground_skid_node
node_ground_diff_node -->|"delegates control"| node_ground_control
node_ground_skid_node -->|"delegates control"| node_ground_control
node_ground_control -->|"queries field"| node_field
node_reference -->|"provides path"| node_quad_node
node_quad_node -->|"delegates control"| node_quad_control
node_quad_control -->|"queries field"| node_field
node_ground_control -.->|"uses math"| node_math_utils
node_quad_control -->|"uses math"| node_math_utils
node_example_launch -->|"launches simulator"| node_holonomic_sim
node_example_launch -->|"launches simulator"| node_differential_sim
node_example_launch -->|"launches simulator"| node_skid_sim
node_example_launch -->|"launches simulator"| node_drone_sim
node_ground_diff_node -.->|"controls robot"| node_differential_sim
node_ground_skid_node -.->|"controls robot"| node_skid_sim
node_quad_node -.->|"controls robot"| node_drone_sim

click node_distance_node "https://github.com/adrianomcr/vectorfield_stack/blob/main/distancefield/scripts/distancefield/simple_node.py"
click node_field "https://github.com/adrianomcr/vectorfield_stack/blob/main/distancefield/scripts/distancefield/distancefield_class.py"
click node_path_msg "https://github.com/adrianomcr/vectorfield_stack/blob/main/distancefield/msg/Path.msg"
click node_ground_diff_node "https://github.com/adrianomcr/vectorfield_stack/blob/main/ground_robot/scripts/differential_node.py"
click node_ground_skid_node "https://github.com/adrianomcr/vectorfield_stack/blob/main/ground_robot/scripts/skidsteer_node.py"
click node_ground_control "https://github.com/adrianomcr/vectorfield_stack/blob/main/ground_robot/scripts/groundrobot_class.py"
click node_quad_node "https://github.com/adrianomcr/vectorfield_stack/blob/main/quad_robot/scripts/quad_node.py"
click node_quad_control "https://github.com/adrianomcr/vectorfield_stack/blob/main/quad_robot/scripts/quadrobot_class.py"
click node_holonomic_sim "https://github.com/adrianomcr/vectorfield_stack/blob/main/robotsim/scripts/integrator_sim.py"
click node_differential_sim "https://github.com/adrianomcr/vectorfield_stack/blob/main/robotsim/scripts/differential_sim.py"
click node_skid_sim "https://github.com/adrianomcr/vectorfield_stack/blob/main/robotsim/scripts/skidsteer_sim.py"
click node_drone_sim "https://github.com/adrianomcr/vectorfield_stack/blob/main/robotsim/scripts/drone_sim.py"
click node_example_path "https://github.com/adrianomcr/vectorfield_stack/blob/main/examples/scripts/example_path.py"
click node_example_launch "https://github.com/adrianomcr/vectorfield_stack/tree/main/examples/launch"
click node_math_utils "https://github.com/adrianomcr/vectorfield_stack/blob/main/math_utils/scripts/math_utils/math_utils.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_distance_node,node_field,node_path_msg toneBlue
class node_ground_diff_node,node_ground_skid_node,node_ground_control,node_quad_node,node_quad_control toneAmber
class node_holonomic_sim,node_differential_sim,node_skid_sim,node_drone_sim toneMint
class node_example_path,node_example_launch toneRose
class node_math_utils,node_operator,node_reference toneIndigo
```

## Components

### Field navigation

- [Standalone field node](https://github.com/adrianomcr/vectorfield_stack/blob/main/distancefield/scripts/distancefield/simple_node.py): `distancefield/scripts/distancefield/simple_node.py`
- [Distance vector field](https://github.com/adrianomcr/vectorfield_stack/blob/main/distancefield/scripts/distancefield/distancefield_class.py): `distancefield/scripts/distancefield/distancefield_class.py`
- [Path messages](https://github.com/adrianomcr/vectorfield_stack/blob/main/distancefield/msg/Path.msg): `distancefield/msg/Path.msg`

### Robot controllers

- [Differential node](https://github.com/adrianomcr/vectorfield_stack/blob/main/ground_robot/scripts/differential_node.py): `ground_robot/scripts/differential_node.py`
- [Skid-steer node](https://github.com/adrianomcr/vectorfield_stack/blob/main/ground_robot/scripts/skidsteer_node.py): `ground_robot/scripts/skidsteer_node.py`
- [Ground control](https://github.com/adrianomcr/vectorfield_stack/blob/main/ground_robot/scripts/groundrobot_class.py): `ground_robot/scripts/groundrobot_class.py`
- [Quadcopter node](https://github.com/adrianomcr/vectorfield_stack/blob/main/quad_robot/scripts/quad_node.py): `quad_robot/scripts/quad_node.py`
- [Quadcopter control](https://github.com/adrianomcr/vectorfield_stack/blob/main/quad_robot/scripts/quadrobot_class.py): `quad_robot/scripts/quadrobot_class.py`

### Robot simulation

- [Holonomic simulator](https://github.com/adrianomcr/vectorfield_stack/blob/main/robotsim/scripts/integrator_sim.py): `robotsim/scripts/integrator_sim.py`
- [Differential simulator](https://github.com/adrianomcr/vectorfield_stack/blob/main/robotsim/scripts/differential_sim.py): `robotsim/scripts/differential_sim.py`
- [Skid-steer simulator](https://github.com/adrianomcr/vectorfield_stack/blob/main/robotsim/scripts/skidsteer_sim.py): `robotsim/scripts/skidsteer_sim.py`
- [Drone simulator](https://github.com/adrianomcr/vectorfield_stack/blob/main/robotsim/scripts/drone_sim.py): `robotsim/scripts/drone_sim.py`

### Usage examples

- [Example path publisher](https://github.com/adrianomcr/vectorfield_stack/blob/main/examples/scripts/example_path.py): `examples/scripts/example_path.py`
- [Example launches](https://github.com/adrianomcr/vectorfield_stack/tree/main/examples/launch): `examples/launch`

### Math utilities

- [Math utilities](https://github.com/adrianomcr/vectorfield_stack/blob/main/math_utils/scripts/math_utils/math_utils.py): `math_utils/scripts/math_utils/math_utils.py`

### Other components

- **Operator**
- **Reference path**

## Connections

- Operator → Example launches: runs example (evidence: `README.md`)
- Example path publisher → Path messages: publishes path
- Reference path → Standalone field node: provides path (evidence: `distancefield/scripts/distancefield/simple_node.py`)
- Path messages → Standalone field node: configures path (evidence: `distancefield/scripts/distancefield/simple_node.py`)
- Standalone field node → Distance vector field: queries field (evidence: `distancefield/scripts/distancefield/simple_node.py`)
- Reference path → Differential node: provides path (evidence: `ground_robot/scripts/differential_node.py`)
- Reference path → Skid-steer node: provides path (evidence: `ground_robot/scripts/skidsteer_node.py`)
- Differential node → Ground control: delegates control (evidence: `ground_robot/scripts/differential_node.py`)
- Skid-steer node → Ground control: delegates control (evidence: `ground_robot/scripts/skidsteer_node.py`)
- Ground control → Distance vector field: queries field (evidence: `ground_robot/scripts/groundrobot_class.py`)
- Reference path → Quadcopter node: provides path (evidence: `quad_robot/scripts/quad_node.py`)
- Quadcopter node → Quadcopter control: delegates control (evidence: `quad_robot/scripts/quad_node.py`)
- Quadcopter control → Distance vector field: queries field (evidence: `quad_robot/scripts/quadrobot_class.py`)
- Ground control → Math utilities: uses math
- Quadcopter control → Math utilities: uses math (evidence: `quad_robot/scripts/quadrobot_class.py`)
- Example launches → Holonomic simulator: launches simulator (evidence: `README.md`)
- Example launches → Differential simulator: launches simulator (evidence: `README.md`)
- Example launches → Skid-steer simulator: launches simulator (evidence: `README.md`)
- Example launches → Drone simulator: launches simulator (evidence: `README.md`)
- Differential node → Differential simulator: controls robot
- Skid-steer node → Skid-steer simulator: controls robot
- Quadcopter node → Drone simulator: controls robot
