# kainakamura/rbe3001 architecture

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

- Interactive diagram: https://gitdiagram.com/kainakamura/rbe3001
- Repository: https://github.com/kainakamura/rbe3001

## Overview

RBE 3001 is a camera-guided pick-and-place robot that detects colored balls and sorts them with a robotic arm. Its documented technical capabilities include computer vision, forward and inverse kinematics, and trajectory generation. The source tree names supporting robot, arm, motor, model, color, and logging modules, but no source excerpts were provided, so their call relationships and detailed runtime roles cannot be verified. The main workflow edges reflect the README; the camera-to-vision link is unverified.

Main entry points: [`src/ImageProcessing.m`](https://github.com/kainakamura/rbe3001/blob/main/src/ImageProcessing.m) (Image Processing), [`src/Camera.m`](https://github.com/kainakamura/rbe3001/blob/main/src/Camera.m) (Camera), [`src/Robot.m`](https://github.com/kainakamura/rbe3001/blob/main/src/Robot.m) (Robot)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_vision["Vision"]
  node_camera["Camera<br/>[Camera.m]"]
  node_image_processing["Image Processing<br/>[ImageProcessing.m]"]
  node_color["Color<br/>[Color.m]"]
end

subgraph group_motion["Motion Planning"]
  node_kinematics["Kinematics<br/>[Kinematics.m]"]
  node_trajectory["Trajectory Planner"]
end

subgraph group_robot["Robot Hardware"]
  node_robot["Robot<br/>[Robot.m]"]
  node_arm["OM X Arm<br/>[OM_X_arm.m]"]
  node_motor["DX XM430 W350<br/>[DX_XM430_W350.m]"]
end

subgraph group_support["Models And Logging"]
  node_model["Model<br/>[Model.m]"]
  node_logger["Logger<br/>[Logger.m]"]
  node_robot_logger["Robot Logger<br/>[RobotLogger.m]"]
end

node_balls(("Colored Balls"))
node_main["Main<br/>[main.m]"]

node_balls -->|"detects"| node_image_processing
node_image_processing -->|"guides sorting"| node_robot
node_camera -.->|"feeds vision"| node_image_processing

click node_camera "https://github.com/kainakamura/rbe3001/blob/main/src/Camera.m"
click node_image_processing "https://github.com/kainakamura/rbe3001/blob/main/src/ImageProcessing.m"
click node_color "https://github.com/kainakamura/rbe3001/blob/main/src/Color.m"
click node_kinematics "https://github.com/kainakamura/rbe3001/blob/main/src/Kinematics.m"
click node_trajectory "https://github.com/kainakamura/rbe3001/blob/main/src/TrajectoryPlanner.m"
click node_robot "https://github.com/kainakamura/rbe3001/blob/main/src/Robot.m"
click node_arm "https://github.com/kainakamura/rbe3001/blob/main/src/OM_X_arm.m"
click node_motor "https://github.com/kainakamura/rbe3001/blob/main/src/DX_XM430_W350.m"
click node_model "https://github.com/kainakamura/rbe3001/blob/main/src/Model.m"
click node_logger "https://github.com/kainakamura/rbe3001/blob/main/src/Logger.m"
click node_robot_logger "https://github.com/kainakamura/rbe3001/blob/main/src/RobotLogger.m"
click node_main "https://github.com/kainakamura/rbe3001/blob/main/src/main.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_camera,node_image_processing,node_color toneBlue
class node_kinematics,node_trajectory toneAmber
class node_robot,node_arm,node_motor toneMint
class node_model,node_logger,node_robot_logger toneRose
class node_balls toneIndigo
class node_main toneTeal
```

## Components

### Vision

- [Camera](https://github.com/kainakamura/rbe3001/blob/main/src/Camera.m): `src/Camera.m`
- [Image Processing](https://github.com/kainakamura/rbe3001/blob/main/src/ImageProcessing.m): `src/ImageProcessing.m`
- [Color](https://github.com/kainakamura/rbe3001/blob/main/src/Color.m): `src/Color.m`

### Motion Planning

- [Kinematics](https://github.com/kainakamura/rbe3001/blob/main/src/Kinematics.m): `src/Kinematics.m`
- [Trajectory Planner](https://github.com/kainakamura/rbe3001/blob/main/src/TrajectoryPlanner.m): `src/TrajectoryPlanner.m`

### Robot Hardware

- [Robot](https://github.com/kainakamura/rbe3001/blob/main/src/Robot.m): `src/Robot.m`
- [OM X Arm](https://github.com/kainakamura/rbe3001/blob/main/src/OM_X_arm.m): `src/OM_X_arm.m`
- [DX XM430 W350](https://github.com/kainakamura/rbe3001/blob/main/src/DX_XM430_W350.m): `src/DX_XM430_W350.m`

### Models And Logging

- [Model](https://github.com/kainakamura/rbe3001/blob/main/src/Model.m): `src/Model.m`
- [Logger](https://github.com/kainakamura/rbe3001/blob/main/src/Logger.m): `src/Logger.m`
- [Robot Logger](https://github.com/kainakamura/rbe3001/blob/main/src/RobotLogger.m): `src/RobotLogger.m`

### Other components

- **Colored Balls**
- [Main](https://github.com/kainakamura/rbe3001/blob/main/src/main.m): `src/main.m`

## Connections

- Colored Balls → Image Processing: detects (evidence: `README.md`)
- Image Processing → Robot: guides sorting (evidence: `README.md`)
- Camera → Image Processing: feeds vision
