# bezzzzdar/quadrotor-rrt-matlab-app architecture

> Architecture diagram of the GitHub repository bezzzzdar/quadrotor-rrt-matlab-app, 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/bezzzzdar/quadrotor-rrt-matlab-app
- Repository: https://github.com/bezzzzdar/quadrotor-rrt-matlab-app

## Overview

The tree indicates a MATLAB quadrotor path-planning and simulation product, with an app and scripts for running experiments, planning, and demos. Its apparent workflow spans scenario/configuration, RRT planning and collision checks, quadrotor trajectory simulation, and metrics or visualization. The README is empty and no source excerpts are available, so these roles are inferred from filenames; there is no evidence to establish call or data-flow edges.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App and experiments"]
  node_app["Quadrotor RRT app<br/>[QuadrotorRRTApp.m]"]
  node_experiment["Single experiment"]
  node_plan_script["Analysis runner<br/>[run_analysis.m]"]
  node_app_script["App runner<br/>[run_app.m]"]
  node_demo_script["Demo runner<br/>[run_demo.m]"]
end

subgraph group_planning["Planning and geometry"]
  node_rrt_plan["RRT planner<br/>[plan.m]"]
  node_rrt_nearest["Nearest-node search<br/>[findNearestNode.m]"]
  node_rrt_steer["RRT steering<br/>[steer.m]"]
  node_rrt_restore["Path restoration<br/>[restorePath.m]"]
  node_rrt_smooth["Path smoothing"]
  node_geometry_validate["Scenario validation<br/>[validateScenario.m]"]
  node_geometry_map["Map bounds check<br/>[isPointInsideMap.m]"]
  node_geometry_obstacles["Obstacle check"]
  node_geometry_collision["Segment collision check"]
end

subgraph group_flight["Quadrotor simulation"]
  node_quad_dynamics["Quadrotor dynamics<br/>[dynamics.m]"]
  node_quad_reference["Reference trajectory"]
  node_quad_tracking["Position tracking input"]
  node_quad_simulation["Path simulation<br/>[simulateOnPath.m]"]
  node_quad_motors["Thrust and motor conversion"]
  node_quad_motor_inverse["Motor allocation"]
end

subgraph group_results["Metrics and visualization"]
  node_metrics["Path metrics<br/>[pathMetrics.m]"]
  node_metric_length["Path length"]
  node_metric_curvature["Path curvature"]
  node_metric_interpolate["Path interpolation<br/>[interpolatePath.m]"]
  node_viz_scenario["Scenario visualization<br/>[plotScenario.m]"]
  node_viz_obstacles["Obstacle drawing<br/>[drawObstacles.m]"]
  node_viz_tree["Tree visualization<br/>[plotTree.m]"]
  node_viz_derivatives["Trajectory derivatives plot"]
end

subgraph group_config["Configuration"]
  node_config_quad["Quadrotor defaults<br/>[defaultQuadrotor.m]"]
  node_config_controller["Controller defaults"]
  node_config_scenario["Scenario defaults<br/>[defaultScenario.m]"]
end

click node_app "https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/apps/QuadrotorRRTApp.m"
click node_experiment "https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/runSingleExperiment.m"
click node_plan_script "https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/scripts/run_analysis.m"
click node_app_script "https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/scripts/run_app.m"
click node_demo_script "https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/scripts/run_demo.m"
click node_rrt_plan "https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Brrt/plan.m"
click node_rrt_nearest "https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Brrt/findNearestNode.m"
click node_rrt_steer "https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Brrt/steer.m"
click node_rrt_restore "https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Brrt/restorePath.m"
click node_rrt_smooth "https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Brrt/shortcutSmoothPath.m"
click node_geometry_validate "https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bgeometry/validateScenario.m"
click node_geometry_map "https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bgeometry/isPointInsideMap.m"
click node_geometry_obstacles "https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bgeometry/isPointInObstacles.m"
click node_geometry_collision "https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bgeometry/isSegmentCollisionFree.m"
click node_quad_dynamics "https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bquadrotor/dynamics.m"
click node_quad_reference "https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bquadrotor/buildReferenceTrajectory.m"
click node_quad_tracking "https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bquadrotor/positionTrackingInput.m"
click node_quad_simulation "https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bquadrotor/simulateOnPath.m"
click node_quad_motors "https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bquadrotor/motorsToThrustMoment.m"
click node_quad_motor_inverse "https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bquadrotor/thrustMomentToMotors.m"
click node_metrics "https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bmetrics/pathMetrics.m"
click node_metric_length "https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bmetrics/calculatePathLength.m"
click node_metric_curvature "https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bmetrics/calculateCurvature.m"
click node_metric_interpolate "https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bmetrics/interpolatePath.m"
click node_viz_scenario "https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bviz/plotScenario.m"
click node_viz_obstacles "https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bviz/drawObstacles.m"
click node_viz_tree "https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bviz/plotTree.m"
click node_viz_derivatives "https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bviz/plotTrajectoryDerivatives.m"
click node_config_quad "https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bconfig/defaultQuadrotor.m"
click node_config_controller "https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bconfig/defaultController.m"
click node_config_scenario "https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bconfig/defaultScenario.m"

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_app,node_experiment,node_plan_script,node_app_script,node_demo_script toneBlue
class node_rrt_plan,node_rrt_nearest,node_rrt_steer,node_rrt_restore,node_rrt_smooth,node_geometry_validate,node_geometry_map,node_geometry_obstacles,node_geometry_collision toneAmber
class node_quad_dynamics,node_quad_reference,node_quad_tracking,node_quad_simulation,node_quad_motors,node_quad_motor_inverse toneMint
class node_metrics,node_metric_length,node_metric_curvature,node_metric_interpolate,node_viz_scenario,node_viz_obstacles,node_viz_tree,node_viz_derivatives toneRose
class node_config_quad,node_config_controller,node_config_scenario toneIndigo
```

## Components

### App and experiments

- [Quadrotor RRT app](https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/apps/QuadrotorRRTApp.m): `apps/QuadrotorRRTApp.m`
- [Single experiment](https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/runSingleExperiment.m): `src/runSingleExperiment.m`
- [Analysis runner](https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/scripts/run_analysis.m): `scripts/run_analysis.m`
- [App runner](https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/scripts/run_app.m): `scripts/run_app.m`
- [Demo runner](https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/scripts/run_demo.m): `scripts/run_demo.m`

### Planning and geometry

- [RRT planner](https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Brrt/plan.m): `src/+rrt/plan.m`
- [Nearest-node search](https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Brrt/findNearestNode.m): `src/+rrt/findNearestNode.m`
- [RRT steering](https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Brrt/steer.m): `src/+rrt/steer.m`
- [Path restoration](https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Brrt/restorePath.m): `src/+rrt/restorePath.m`
- [Path smoothing](https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Brrt/shortcutSmoothPath.m): `src/+rrt/shortcutSmoothPath.m`
- [Scenario validation](https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bgeometry/validateScenario.m): `src/+geometry/validateScenario.m`
- [Map bounds check](https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bgeometry/isPointInsideMap.m): `src/+geometry/isPointInsideMap.m`
- [Obstacle check](https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bgeometry/isPointInObstacles.m): `src/+geometry/isPointInObstacles.m`
- [Segment collision check](https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bgeometry/isSegmentCollisionFree.m): `src/+geometry/isSegmentCollisionFree.m`

### Quadrotor simulation

- [Quadrotor dynamics](https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bquadrotor/dynamics.m): `src/+quadrotor/dynamics.m`
- [Reference trajectory](https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bquadrotor/buildReferenceTrajectory.m): `src/+quadrotor/buildReferenceTrajectory.m`
- [Position tracking input](https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bquadrotor/positionTrackingInput.m): `src/+quadrotor/positionTrackingInput.m`
- [Path simulation](https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bquadrotor/simulateOnPath.m): `src/+quadrotor/simulateOnPath.m`
- [Thrust and motor conversion](https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bquadrotor/motorsToThrustMoment.m): `src/+quadrotor/motorsToThrustMoment.m`
- [Motor allocation](https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bquadrotor/thrustMomentToMotors.m): `src/+quadrotor/thrustMomentToMotors.m`

### Metrics and visualization

- [Path metrics](https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bmetrics/pathMetrics.m): `src/+metrics/pathMetrics.m`
- [Path length](https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bmetrics/calculatePathLength.m): `src/+metrics/calculatePathLength.m`
- [Path curvature](https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bmetrics/calculateCurvature.m): `src/+metrics/calculateCurvature.m`
- [Path interpolation](https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bmetrics/interpolatePath.m): `src/+metrics/interpolatePath.m`
- [Scenario visualization](https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bviz/plotScenario.m): `src/+viz/plotScenario.m`
- [Obstacle drawing](https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bviz/drawObstacles.m): `src/+viz/drawObstacles.m`
- [Tree visualization](https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bviz/plotTree.m): `src/+viz/plotTree.m`
- [Trajectory derivatives plot](https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bviz/plotTrajectoryDerivatives.m): `src/+viz/plotTrajectoryDerivatives.m`

### Configuration

- [Quadrotor defaults](https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bconfig/defaultQuadrotor.m): `src/+config/defaultQuadrotor.m`
- [Controller defaults](https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bconfig/defaultController.m): `src/+config/defaultController.m`
- [Scenario defaults](https://github.com/bezzzzdar/quadrotor-rrt-matlab-app/blob/master/src/%2Bconfig/defaultScenario.m): `src/+config/defaultScenario.m`
