# ahmadshah-1/c_all architecture

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

- Interactive diagram: https://gitdiagram.com/ahmadshah-1/c_all
- Repository: https://github.com/ahmadshah-1/c_all

## Overview

This repository is an archive of iOS AR/LiDAR navigation prototypes, with experiments in depth-based obstacle avoidance, route guidance, Bluetooth communication, and voice destinations; it also contains standalone point-cloud tools. The likely user workflow is to obtain device location and AR depth, guide around obstacles, and present navigation cues, but the README is empty and sampled app wiring is limited. The graph preserves major implementation branches; edges are included only where sampled code demonstrates a call or data transfer.

Main entry points: [`Code/xCode/TestingTest/C_All_Test/C_All_Test/BluetoothManager.swift`](https://github.com/ahmadshah-1/c_all/blob/main/Code/xCode/TestingTest/C_All_Test/C_All_Test/BluetoothManager.swift) (Bluetooth manager), [`Code/Access_LiDAR/iPhoneAPI.py`](https://github.com/ahmadshah-1/c_all/blob/main/Code/Access_LiDAR/iPhoneAPI.py) (Record3D stream)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["AR Navigation"]
  node_navmanager["Geo obstacle guidance"]
  node_navloc["Location updates"]
  node_navview["AR navigation views<br/>[ContentView.swift]"]
  node_navar["AR frame wrapper<br/>[ARWrapper.swift]"]
end

subgraph group_connectivity["Bluetooth"]
  node_bluetooth2["Bluetooth service v2"]
  node_bluetooth3["Bluetooth service v3"]
  node_bluetooth4["Bluetooth service v4"]
  node_btmanager["Bluetooth manager"]
end

subgraph group_voice["Voice Input"]
  node_voiceinput["Speech capture"]
  node_voiceview["Voice input view"]
  node_intent["Navigation intents"]
end

subgraph group_lidar["LiDAR Tools"]
  node_record3d["Record3D stream<br/>[iPhoneAPI.py]"]
  node_pointcloud["Point cloud display<br/>[iPhoneAPI.py]"]
  node_lidarhelper["Record3D helper<br/>[Record3D.py]"]
  node_feedserver["Image feed server<br/>[main.py]"]
end

node_bledevice["BLE peripheral"]

node_btmanager -->|"writes values"| node_bledevice
node_record3d -->|"creates cloud"| node_pointcloud

click node_navmanager "https://github.com/ahmadshah-1/c_all/blob/main/Code/xCode/ARGeoTracking/ObstacleAvoidance/deprecated/Test10/C_ALL_With_Avoidance_Path/C_ALL_With_Avoidance_Path/GeoObstacleNavigationManager.swift"
click node_navloc "https://github.com/ahmadshah-1/c_all/blob/main/Code/xCode/ARGeoTracking/Bluetooth_Connection/Version3/C_ALL_With_Avoidance_Path/C_ALL_With_Avoidance_Path/LocationManager.swift"
click node_navview "https://github.com/ahmadshah-1/c_all/blob/main/Code/xCode/ARGeoTracking/Bluetooth_Connection/Version4/C_ALL_With_Avoidance_Path/C_ALL_With_Avoidance_Path/ContentView.swift"
click node_navar "https://github.com/ahmadshah-1/c_all/blob/main/Code/xCode/ARGeoTracking/Bluetooth_Connection/Version4/C_ALL_With_Avoidance_Path/C_ALL_With_Avoidance_Path/ARWrapper.swift"
click node_bluetooth2 "https://github.com/ahmadshah-1/c_all/blob/main/Code/xCode/ARGeoTracking/Bluetooth_Connection/Version2/Test11/C_ALL_With_Avoidance_Path/C_ALL_With_Avoidance_Path/BluetoothService.swift"
click node_bluetooth3 "https://github.com/ahmadshah-1/c_all/blob/main/Code/xCode/ARGeoTracking/Bluetooth_Connection/Version3/C_ALL_With_Avoidance_Path/C_ALL_With_Avoidance_Path/BluetoothService.swift"
click node_bluetooth4 "https://github.com/ahmadshah-1/c_all/blob/main/Code/xCode/ARGeoTracking/Bluetooth_Connection/Version4/C_ALL_With_Avoidance_Path/C_ALL_With_Avoidance_Path/BluetoothService.swift"
click node_btmanager "https://github.com/ahmadshah-1/c_all/blob/main/Code/xCode/TestingTest/C_All_Test/C_All_Test/BluetoothManager.swift"
click node_voiceinput "https://github.com/ahmadshah-1/c_all/blob/main/Code/xCode/ARGeoTracking/Bluetooth_Connection/Version4/C_ALL_With_Avoidance_Path/C_ALL_With_Avoidance_Path/VoiceInputManager.swift"
click node_voiceview "https://github.com/ahmadshah-1/c_all/blob/main/Code/xCode/ARGeoTracking/Bluetooth_Connection/Version4/C_ALL_With_Avoidance_Path/C_ALL_With_Avoidance_Path/VoiceInputView.swift"
click node_intent "https://github.com/ahmadshah-1/c_all/blob/main/Code/xCode/ARGeoTracking/Bluetooth_Connection/Version4/C_ALL_With_Avoidance_Path/C_ALL_With_Avoidance_Path/NavigationIntentHandler.swift"
click node_record3d "https://github.com/ahmadshah-1/c_all/blob/main/Code/Access_LiDAR/iPhoneAPI.py"
click node_pointcloud "https://github.com/ahmadshah-1/c_all/blob/main/Code/Access_LiDAR/iPhoneAPI.py"
click node_lidarhelper "https://github.com/ahmadshah-1/c_all/blob/main/Code/Access_LiDAR/Record3D.py"
click node_feedserver "https://github.com/ahmadshah-1/c_all/blob/main/Code/xCode/Deprecated/Test4/Secondary/Obtain_Feed/Live_Server/main.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_navmanager,node_navloc,node_navview,node_navar toneBlue
class node_bluetooth2,node_bluetooth3,node_bluetooth4,node_btmanager toneAmber
class node_voiceinput,node_voiceview,node_intent toneMint
class node_record3d,node_pointcloud,node_lidarhelper,node_feedserver toneRose
class node_bledevice toneIndigo
```

## Components

### AR Navigation

- [Geo obstacle guidance](https://github.com/ahmadshah-1/c_all/blob/main/Code/xCode/ARGeoTracking/ObstacleAvoidance/deprecated/Test10/C_ALL_With_Avoidance_Path/C_ALL_With_Avoidance_Path/GeoObstacleNavigationManager.swift): `Code/xCode/ARGeoTracking/ObstacleAvoidance/deprecated/Test10/C_ALL_With_Avoidance_Path/C_ALL_With_Avoidance_Path/GeoObstacleNavigationManager.swift`
- [Location updates](https://github.com/ahmadshah-1/c_all/blob/main/Code/xCode/ARGeoTracking/Bluetooth_Connection/Version3/C_ALL_With_Avoidance_Path/C_ALL_With_Avoidance_Path/LocationManager.swift): `Code/xCode/ARGeoTracking/Bluetooth_Connection/Version3/C_ALL_With_Avoidance_Path/C_ALL_With_Avoidance_Path/LocationManager.swift`
- [AR navigation views](https://github.com/ahmadshah-1/c_all/blob/main/Code/xCode/ARGeoTracking/Bluetooth_Connection/Version4/C_ALL_With_Avoidance_Path/C_ALL_With_Avoidance_Path/ContentView.swift): `Code/xCode/ARGeoTracking/Bluetooth_Connection/Version4/C_ALL_With_Avoidance_Path/C_ALL_With_Avoidance_Path/ContentView.swift`
- [AR frame wrapper](https://github.com/ahmadshah-1/c_all/blob/main/Code/xCode/ARGeoTracking/Bluetooth_Connection/Version4/C_ALL_With_Avoidance_Path/C_ALL_With_Avoidance_Path/ARWrapper.swift): `Code/xCode/ARGeoTracking/Bluetooth_Connection/Version4/C_ALL_With_Avoidance_Path/C_ALL_With_Avoidance_Path/ARWrapper.swift`

### Bluetooth

- [Bluetooth service v2](https://github.com/ahmadshah-1/c_all/blob/main/Code/xCode/ARGeoTracking/Bluetooth_Connection/Version2/Test11/C_ALL_With_Avoidance_Path/C_ALL_With_Avoidance_Path/BluetoothService.swift): `Code/xCode/ARGeoTracking/Bluetooth_Connection/Version2/Test11/C_ALL_With_Avoidance_Path/C_ALL_With_Avoidance_Path/BluetoothService.swift`
- [Bluetooth service v3](https://github.com/ahmadshah-1/c_all/blob/main/Code/xCode/ARGeoTracking/Bluetooth_Connection/Version3/C_ALL_With_Avoidance_Path/C_ALL_With_Avoidance_Path/BluetoothService.swift): `Code/xCode/ARGeoTracking/Bluetooth_Connection/Version3/C_ALL_With_Avoidance_Path/C_ALL_With_Avoidance_Path/BluetoothService.swift`
- [Bluetooth service v4](https://github.com/ahmadshah-1/c_all/blob/main/Code/xCode/ARGeoTracking/Bluetooth_Connection/Version4/C_ALL_With_Avoidance_Path/C_ALL_With_Avoidance_Path/BluetoothService.swift): `Code/xCode/ARGeoTracking/Bluetooth_Connection/Version4/C_ALL_With_Avoidance_Path/C_ALL_With_Avoidance_Path/BluetoothService.swift`
- [Bluetooth manager](https://github.com/ahmadshah-1/c_all/blob/main/Code/xCode/TestingTest/C_All_Test/C_All_Test/BluetoothManager.swift): `Code/xCode/TestingTest/C_All_Test/C_All_Test/BluetoothManager.swift`

### Voice Input

- [Speech capture](https://github.com/ahmadshah-1/c_all/blob/main/Code/xCode/ARGeoTracking/Bluetooth_Connection/Version4/C_ALL_With_Avoidance_Path/C_ALL_With_Avoidance_Path/VoiceInputManager.swift): `Code/xCode/ARGeoTracking/Bluetooth_Connection/Version4/C_ALL_With_Avoidance_Path/C_ALL_With_Avoidance_Path/VoiceInputManager.swift`
- [Voice input view](https://github.com/ahmadshah-1/c_all/blob/main/Code/xCode/ARGeoTracking/Bluetooth_Connection/Version4/C_ALL_With_Avoidance_Path/C_ALL_With_Avoidance_Path/VoiceInputView.swift): `Code/xCode/ARGeoTracking/Bluetooth_Connection/Version4/C_ALL_With_Avoidance_Path/C_ALL_With_Avoidance_Path/VoiceInputView.swift`
- [Navigation intents](https://github.com/ahmadshah-1/c_all/blob/main/Code/xCode/ARGeoTracking/Bluetooth_Connection/Version4/C_ALL_With_Avoidance_Path/C_ALL_With_Avoidance_Path/NavigationIntentHandler.swift): `Code/xCode/ARGeoTracking/Bluetooth_Connection/Version4/C_ALL_With_Avoidance_Path/C_ALL_With_Avoidance_Path/NavigationIntentHandler.swift`

### LiDAR Tools

- [Record3D stream](https://github.com/ahmadshah-1/c_all/blob/main/Code/Access_LiDAR/iPhoneAPI.py): `Code/Access_LiDAR/iPhoneAPI.py`
- [Point cloud display](https://github.com/ahmadshah-1/c_all/blob/main/Code/Access_LiDAR/iPhoneAPI.py): `Code/Access_LiDAR/iPhoneAPI.py`
- [Record3D helper](https://github.com/ahmadshah-1/c_all/blob/main/Code/Access_LiDAR/Record3D.py): `Code/Access_LiDAR/Record3D.py`
- [Image feed server](https://github.com/ahmadshah-1/c_all/blob/main/Code/xCode/Deprecated/Test4/Secondary/Obtain_Feed/Live_Server/main.py): `Code/xCode/Deprecated/Test4/Secondary/Obtain_Feed/Live_Server/main.py`

### Other components

- **BLE peripheral**

## Connections

- Bluetooth manager → BLE peripheral: writes values (evidence: `Code/xCode/TestingTest/C_All_Test/C_All_Test/BluetoothManager.swift`)
- Record3D stream → Point cloud display: creates cloud (evidence: `Code/Access_LiDAR/iPhoneAPI.py`)
