# jainaayush2006/cobt architecture

> Architecture diagram of the GitHub repository jainaayush2006/cobt, 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/jainaayush2006/cobt
- Repository: https://github.com/jainaayush2006/cobt

## Overview

CoBT is a research artifact repository for collaborative behavior-tree programming from demonstrations. Its central documented workflow is a recorded manipulation demonstration represented as memory data, followed by segmented state variables and segmentation graphs, and task-specific generated behavior trees. The repository also includes pilot-study response data. The README describes these capabilities, but the implementation that transforms demonstrations into the outputs is not present in the supplied tree, so the workflow edges are documented rather than code-traced.

Main entry points: [`Memory`](https://github.com/jainaayush2006/cobt/tree/main/Memory) (Demonstration Memory), [`Segmented_state_Variables`](https://github.com/jainaayush2006/cobt/tree/main/Segmented_state_Variables) (Segmented Variables), [`Memory/reader.py`](https://github.com/jainaayush2006/cobt/blob/main/Memory/reader.py) (Memory Plotter), [`Segmentation_graphs`](https://github.com/jainaayush2006/cobt/tree/main/Segmentation_graphs) (Segmentation Graphs)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_demonstrations["Demonstration Data"]
  node_memory_data["Demonstration Memory"]
  node_memory_reader["Memory Plotter<br/>[reader.py]"]
end

subgraph group_segmentation["Segmentation Artifacts"]
  node_segmented_variables["Segmented Variables"]
  node_segmentation_graphs["Segmentation Graphs"]
end

subgraph group_behavior_trees["Behavior Trees"]
  node_generated_bts["Generated BTs"]
end

subgraph group_study["User Study"]
  node_study_responses["Study Responses"]
  node_general_info["General Information"]
  node_nasa_tlx["NASA-TLX Responses<br/>[NASA-TLX.xlsx]"]
  node_sus["SUS Responses<br/>[SUS.xlsx]"]
end

node_participant(("Participant"))

node_participant -->|"records demonstration"| node_memory_data
node_memory_reader -->|"loads Cube2"| node_memory_data
node_memory_data -->|"informs segmentation"| node_segmented_variables
node_memory_data -->|"informs segmentation"| node_segmentation_graphs
node_segmented_variables -->|"conditions inform"| node_generated_bts
node_participant -->|"provides details"| node_general_info
node_participant -->|"submits survey"| node_nasa_tlx
node_participant -->|"submits survey"| node_sus

click node_memory_data "https://github.com/jainaayush2006/cobt/tree/main/Memory"
click node_memory_reader "https://github.com/jainaayush2006/cobt/blob/main/Memory/reader.py"
click node_segmented_variables "https://github.com/jainaayush2006/cobt/tree/main/Segmented_state_Variables"
click node_segmentation_graphs "https://github.com/jainaayush2006/cobt/tree/main/Segmentation_graphs"
click node_generated_bts "https://github.com/jainaayush2006/cobt/tree/main/Generated_BTs"
click node_study_responses "https://github.com/jainaayush2006/cobt/tree/main/User-study_Responses"
click node_general_info "https://github.com/jainaayush2006/cobt/blob/main/User-study_Responses/General_information.xlsx"
click node_nasa_tlx "https://github.com/jainaayush2006/cobt/blob/main/User-study_Responses/NASA-TLX.xlsx"
click node_sus "https://github.com/jainaayush2006/cobt/blob/main/User-study_Responses/SUS.xlsx"

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_memory_data,node_memory_reader toneBlue
class node_segmented_variables,node_segmentation_graphs toneAmber
class node_generated_bts toneMint
class node_study_responses,node_general_info,node_nasa_tlx,node_sus toneRose
class node_participant toneIndigo
```

## Components

### Demonstration Data

- [Demonstration Memory](https://github.com/jainaayush2006/cobt/tree/main/Memory): `Memory`
- [Memory Plotter](https://github.com/jainaayush2006/cobt/blob/main/Memory/reader.py): `Memory/reader.py`

### Segmentation Artifacts

- [Segmented Variables](https://github.com/jainaayush2006/cobt/tree/main/Segmented_state_Variables): `Segmented_state_Variables`
- [Segmentation Graphs](https://github.com/jainaayush2006/cobt/tree/main/Segmentation_graphs): `Segmentation_graphs`

### Behavior Trees

- [Generated BTs](https://github.com/jainaayush2006/cobt/tree/main/Generated_BTs): `Generated_BTs`

### User Study

- [Study Responses](https://github.com/jainaayush2006/cobt/tree/main/User-study_Responses): `User-study_Responses`
- [General Information](https://github.com/jainaayush2006/cobt/blob/main/User-study_Responses/General_information.xlsx): `User-study_Responses/General_information.xlsx`
- [NASA-TLX Responses](https://github.com/jainaayush2006/cobt/blob/main/User-study_Responses/NASA-TLX.xlsx): `User-study_Responses/NASA-TLX.xlsx`
- [SUS Responses](https://github.com/jainaayush2006/cobt/blob/main/User-study_Responses/SUS.xlsx): `User-study_Responses/SUS.xlsx`

### Other components

- **Participant**

## Connections

- Participant → Demonstration Memory: records demonstration (evidence: `README.md`)
- Memory Plotter → Demonstration Memory: loads Cube2 (evidence: `Memory/reader.py`)
- Demonstration Memory → Segmented Variables: informs segmentation (evidence: `README.md`)
- Demonstration Memory → Segmentation Graphs: informs segmentation (evidence: `README.md`)
- Segmented Variables → Generated BTs: conditions inform (evidence: `README.md`)
- Participant → General Information: provides details (evidence: `README.md`)
- Participant → NASA-TLX Responses: submits survey (evidence: `README.md`)
- Participant → SUS Responses: submits survey (evidence: `README.md`)
