# rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco architecture

> Architecture diagram of the GitHub repository rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco
- Repository: https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco

## Overview

This repository is an end-to-end vision-based robotic pick-and-place project. Its main workflow prepares object imagery and synthetic labeled scenes, trains a YOLOv8 detector, then runs a MuJoCo arm simulation that detects and localizes objects before planning, executing, and verifying pick-and-place actions. Additional documented capabilities include multi-camera localization, stereo triangulation, a ground-truth fallback, and experiment logging. Some links are supported by the README rather than sampled call sites; unsampled implementation details are not inferred.

Main entry points: [`03_mujoco_arm_robot/yolo_perception.py`](https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/blob/main/03_mujoco_arm_robot/yolo_perception.py) (Detection and localization), [`03_mujoco_arm_robot/so101_pickplace_fixed.py`](https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/blob/main/03_mujoco_arm_robot/so101_pickplace_fixed.py) (Pick-place controller), [`01_synthetic_dataset/generate_dataset.py`](https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/blob/main/01_synthetic_dataset/generate_dataset.py) (Synthetic scene generator), [`01_synthetic_dataset/convert_images.py`](https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/blob/main/01_synthetic_dataset/convert_images.py) (Image preparation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Synthetic Data"]
  node_image_converter["Image preparation<br/>[convert_images.py]"]
  node_dataset_generator["Synthetic scene generator"]
  node_synthetic_data["Labeled dataset"]
end

subgraph group_training["Detector Training"]
  node_trainer["YOLOv8 training and validation<br/>[train.py]"]
  node_trained_model["Trained weights<br/>[best.pt]"]
  node_robot_weights["Robot detector weights<br/>[best.pt]"]
end

subgraph group_vision["Perception"]
  node_perception["Detection and localization<br/>[yolo_perception.py]"]
  node_camera_localization["Camera projection and stereo<br/>[yolo_perception.py]"]
  node_fallback["Ground-truth fallback<br/>[yolo_perception.py]"]
end

subgraph group_robot["Simulation and Manipulation"]
  node_arm_model["MuJoCo arm and cameras"]
  node_controller["Pick-place controller"]
  node_motion["Grasp and place execution"]
  node_verification["Placement verification"]
  node_results["Experiment results and logs"]
end

node_user(("Project operator"))

node_user -->|"prepares imagery"| node_image_converter
node_user -->|"generates scenes"| node_dataset_generator
node_image_converter -.->|"prepares object images"| node_dataset_generator
node_dataset_generator -->|"writes labeled scenes"| node_synthetic_data
node_synthetic_data -->|"trains on"| node_trainer
node_trainer -->|"produces weights"| node_trained_model
node_trained_model -->|"supplied as detector"| node_robot_weights
node_user -->|"runs simulation"| node_controller
node_controller -->|"loads model"| node_arm_model
node_controller -->|"calls perception"| node_perception
node_perception -->|"uses object variants"| node_controller
node_robot_weights -->|"initializes detector"| node_perception
node_perception -->|"projects detections"| node_camera_localization
node_camera_localization -->|"falls back when unresolved"| node_fallback
node_perception -->|"provides world objects"| node_controller
node_controller -->|"plans and executes"| node_motion
node_motion -->|"checks placement"| node_verification
node_verification -->|"logs outcomes"| node_results
node_perception -.->|"saves detection outputs"| node_results

click node_image_converter "https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/blob/main/01_synthetic_dataset/convert_images.py"
click node_dataset_generator "https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/blob/main/01_synthetic_dataset/generate_dataset.py"
click node_synthetic_data "https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/tree/main/01_synthetic_dataset"
click node_trainer "https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/blob/main/02_yolov8_training/train.py"
click node_trained_model "https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/blob/main/02_yolov8_training/runs/detect/runs/train/yolov8_cpu_run/weights/best.pt"
click node_robot_weights "https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/blob/main/03_mujoco_arm_robot/models/best.pt"
click node_perception "https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/blob/main/03_mujoco_arm_robot/yolo_perception.py"
click node_camera_localization "https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/blob/main/03_mujoco_arm_robot/yolo_perception.py"
click node_fallback "https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/blob/main/03_mujoco_arm_robot/yolo_perception.py"
click node_arm_model "https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/blob/main/03_mujoco_arm_robot/so101_6dof_yolo.xml"
click node_controller "https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/blob/main/03_mujoco_arm_robot/so101_pickplace_fixed.py"
click node_motion "https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/blob/main/03_mujoco_arm_robot/so101_pickplace_fixed.py"
click node_verification "https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/blob/main/03_mujoco_arm_robot/so101_pickplace_fixed.py"
click node_results "https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/tree/main/04_results"

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_image_converter,node_dataset_generator,node_synthetic_data toneBlue
class node_trainer,node_trained_model,node_robot_weights toneAmber
class node_perception,node_camera_localization,node_fallback toneMint
class node_arm_model,node_controller,node_motion,node_verification,node_results toneRose
class node_user toneIndigo
```

## Components

### Synthetic Data

- [Image preparation](https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/blob/main/01_synthetic_dataset/convert_images.py): `01_synthetic_dataset/convert_images.py`
- [Synthetic scene generator](https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/blob/main/01_synthetic_dataset/generate_dataset.py): `01_synthetic_dataset/generate_dataset.py`
- [Labeled dataset](https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/tree/main/01_synthetic_dataset): `01_synthetic_dataset`

### Detector Training

- [YOLOv8 training and validation](https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/blob/main/02_yolov8_training/train.py): `02_yolov8_training/train.py`
- [Trained weights](https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/blob/main/02_yolov8_training/runs/detect/runs/train/yolov8_cpu_run/weights/best.pt): `02_yolov8_training/runs/detect/runs/train/yolov8_cpu_run/weights/best.pt`
- [Robot detector weights](https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/blob/main/03_mujoco_arm_robot/models/best.pt): `03_mujoco_arm_robot/models/best.pt`

### Perception

- [Detection and localization](https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/blob/main/03_mujoco_arm_robot/yolo_perception.py): `03_mujoco_arm_robot/yolo_perception.py`
- [Camera projection and stereo](https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/blob/main/03_mujoco_arm_robot/yolo_perception.py): `03_mujoco_arm_robot/yolo_perception.py`
- [Ground-truth fallback](https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/blob/main/03_mujoco_arm_robot/yolo_perception.py): `03_mujoco_arm_robot/yolo_perception.py`

### Simulation and Manipulation

- [MuJoCo arm and cameras](https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/blob/main/03_mujoco_arm_robot/so101_6dof_yolo.xml): `03_mujoco_arm_robot/so101_6dof_yolo.xml`
- [Pick-place controller](https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/blob/main/03_mujoco_arm_robot/so101_pickplace_fixed.py): `03_mujoco_arm_robot/so101_pickplace_fixed.py`
- [Grasp and place execution](https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/blob/main/03_mujoco_arm_robot/so101_pickplace_fixed.py): `03_mujoco_arm_robot/so101_pickplace_fixed.py`
- [Placement verification](https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/blob/main/03_mujoco_arm_robot/so101_pickplace_fixed.py): `03_mujoco_arm_robot/so101_pickplace_fixed.py`
- [Experiment results and logs](https://github.com/rakibsheikh3337-hue/vision-based-robotic-manipulation-using-yolov8-and-mujoco/tree/main/04_results): `04_results`

### Other components

- **Project operator**

## Connections

- Project operator → Image preparation: prepares imagery (evidence: `01_synthetic_dataset/convert_images.py`)
- Project operator → Synthetic scene generator: generates scenes (evidence: `README.md`)
- Image preparation → Synthetic scene generator: prepares object images
- Synthetic scene generator → Labeled dataset: writes labeled scenes (evidence: `README.md`)
- Labeled dataset → YOLOv8 training and validation: trains on (evidence: `README.md`)
- YOLOv8 training and validation → Trained weights: produces weights (evidence: `README.md`)
- Trained weights → Robot detector weights: supplied as detector (evidence: `README.md`)
- Project operator → Pick-place controller: runs simulation (evidence: `README.md`)
- Pick-place controller → MuJoCo arm and cameras: loads model (evidence: `03_mujoco_arm_robot/so101_pickplace_fixed.py`)
- Pick-place controller → Detection and localization: calls perception (evidence: `03_mujoco_arm_robot/so101_pickplace_fixed.py`)
- Detection and localization → Pick-place controller: uses object variants (evidence: `03_mujoco_arm_robot/yolo_perception.py`)
- Robot detector weights → Detection and localization: initializes detector (evidence: `README.md`)
- Detection and localization → Camera projection and stereo: projects detections (evidence: `03_mujoco_arm_robot/yolo_perception.py`)
- Camera projection and stereo → Ground-truth fallback: falls back when unresolved (evidence: `03_mujoco_arm_robot/yolo_perception.py`)
- Detection and localization → Pick-place controller: provides world objects (evidence: `03_mujoco_arm_robot/so101_pickplace_fixed.py`)
- Pick-place controller → Grasp and place execution: plans and executes (evidence: `README.md`)
- Grasp and place execution → Placement verification: checks placement (evidence: `03_mujoco_arm_robot/so101_pickplace_fixed.py`)
- Placement verification → Experiment results and logs: logs outcomes (evidence: `03_mujoco_arm_robot/so101_pickplace_fixed.py`)
- Detection and localization → Experiment results and logs: saves detection outputs (evidence: `README.md`)
