Files

176 lines
8.6 KiB
Markdown

# System Architecture
**Vision-Guided Robotic Pick-and-Place Simulation**
**NVIDIA Omniverse™ / Isaac Sim™ Ecosystem**
---
## 1. High-Level Modular Architecture
The simulation is architected as an Omniverse Kit extension (`omni.isaac.pick_place`) built upon modular, loosely-coupled Python subsystems. Every module is isolated with defined interfaces, configuration-driven, and relies strictly on native NVIDIA Omniverse and Isaac Sim 6.2 APIs.
```mermaid
graph TD
subgraph UI & Application Layer
UI[omni.ui Controller Window]
Ext[omni.ext.IExt Extension Lifecycle]
Cfg[ConfigManager YAML Loader]
end
subgraph Core Simulation & Physics
CSM[CoreSimulationManager]
PhysX[NVIDIA PhysX 5 / Fabric]
USD[OpenUSD Stage & Scene Prim Tree]
end
subgraph Environment & Articulation
Racks[Procedural Rack & Shelf Generator]
ObjGen[Object Randomizer & Spawner]
Robot[Franka Panda Articulation & Gripper]
end
subgraph Perception Pipeline
RTXCam[RTX Overhead Camera]
Rep[omni.replicator Annotators RGB-D-Sem]
Det[Semantic Object Detector]
PoseEst[Depth Back-Projection & PCA 6D Pose Estimator]
end
subgraph Motion Planning & Control
GraspPlan[Grasp Candidate Generator]
cuMotion[NVIDIA cuMotion RMPflow GPU Planner]
ColMon[SceneQuery Obstacle & Collision Monitor]
end
subgraph Task Execution & Analytics
FSM[Pick-and-Place Finite State Machine]
Recover[Recovery & Replanning Manager]
KPI[KPI Telemetry Collector & CSV/JSON Logger]
end
Ext --> UI
Ext --> CSM
Cfg --> CSM
Cfg --> Racks
Cfg --> ObjGen
Cfg --> Robot
Cfg --> RTXCam
Cfg --> cuMotion
CSM --> PhysX
CSM --> USD
USD --> Racks
USD --> ObjGen
USD --> Robot
RTXCam --> Rep
Rep --> Det
Det --> PoseEst
PoseEst --> GraspPlan
GraspPlan --> FSM
FSM --> cuMotion
cuMotion --> ColMon
cuMotion --> Robot
Robot --> PhysX
FSM --> Recover
FSM --> KPI
KPI --> UI
```
---
## 2. Directory Layout & Module Responsibilities
```
vision_guided_robot_simulation/
├── config/ # Centralized YAML configurations
│ ├── simulation_config.yaml # Physics dt, device, gravity, lighting
│ ├── environment_config.yaml # Rack dimensions, shelf elevations, object geometry
│ ├── robot_config.yaml # Robot articulation paths, joint limits, gripper
│ ├── vision_config.yaml # Camera resolution, intrinsics/extrinsics, depth thresholds
│ └── motion_config.yaml # cuMotion parameters, collision margins, FSM frames
├── exts/ # Custom Omniverse Kit extensions
│ └── omni.isaac.pick_place/
│ ├── config/
│ │ └── extension.toml # Kit package metadata and dependencies
│ └── omni/isaac/pick_place/
│ ├── __init__.py
│ ├── extension.py # omni.ext.IExt lifecycle entrypoint
│ └── ui/
│ └── window.py # omni.ui simulation control & KPI window
├── src/ # Core modular library
│ ├── __init__.py
│ ├── core/ # Simulation lifecycle & configuration management
│ │ ├── __init__.py
│ │ ├── config.py # ConfigManager class
│ │ └── simulation_manager.py # CoreSimulationManager class
│ ├── environment/ # Procedural environment and object generation (Phase 2)
│ ├── robot/ # Articulation and parallel-jaw gripper control (Phase 3)
│ ├── vision/ # Camera, detector, depth, and 6D pose estimation (Phases 4-5)
│ ├── motion/ # Grasp planning and cuMotion RMPflow (Phases 6-7)
│ ├── execution/ # FSM, orientation correction, and recovery (Phase 8)
│ └── metrics/ # Live KPI collection and reporting (Phase 10)
├── scripts/ # Standalone validation and execution scripts
│ ├── verify_environment.py # Automated system inspection probe
│ └── run_phase1_validation.py # Phase 1 startup & extension test
└── docs/ # Technical documentation suite
```
---
## 3. Data Flow and Coordinate Transformations
1. **Perception Frame to Camera Optical Frame:**
- 2D pixel coordinates $(u, v)$ with metric depth $Z = D(u, v)$ from `distance_to_image_plane`.
- Camera optical frame (ROS convention): $X_{\text{cam}}$ pointing right, $Y_{\text{cam}}$ pointing down, $Z_{\text{cam}}$ pointing forward.
- Pinhole back-projection:
$$X_{\text{cam}} = \frac{(u - c_x) \cdot Z}{f_x}, \quad Y_{\text{cam}} = \frac{(v - c_y) \cdot Z}{f_y}$$
2. **Camera Optical Frame to USD World Frame:**
- Camera extrinsic matrix $T_{\text{world} \leftarrow \text{cam}} = \begin{bmatrix} R_{\text{cam}} & t_{\text{cam}} \\ 0 & 1 \end{bmatrix}$.
- $P_{\text{world}} = T_{\text{world} \leftarrow \text{cam}} \cdot P_{\text{cam}}$.
3. **World Frame to Robot Base Frame:**
- Robot base mounted at $T_{\text{world} \leftarrow \text{robot}}$.
- $P_{\text{robot}} = T_{\text{world} \leftarrow \text{robot}}^{-1} \cdot P_{\text{world}}$.
4. **Robot End-Effector to Gripper Contact Frame:**
- Tool frame offset $T_{\text{ee} \leftarrow \text{grasp}}$ aligned with fingertip center between `panda_leftfinger` and `panda_rightfinger`.
---
## 4. Multi-Bay Warehouse Layout & Inventory Taxonomy
### 4.1 Aisle Geometry & Corridor Clearance
The warehouse storage environment is organized into two parallel multi-bay storage aisles separated by a central robot movement corridor:
- **Right Aisle ($Y = -0.48\text{ m}$):**
- `source_rack` at $[0.46, -0.48, 0.0]\text{ m}$ (prim/home/dmhai/isaacsim/python.sh /home/dmhai/Desktop/nvidia-omniverse/vision_guided_robot_simulation/scripts/view_phase6_deliverables.py
ary picking bay, Shelf 1 active)
- `source_rack_bay2` at $[1.00, -0.48, 0.0]\text{ m}$ (extended forward storage bay)
- `rear_rack_right` at $[-0.60, -0.48, 0.0]\text{ m}$ (rear logistics staging bay)
- **Left Ai/home/dmhai/isaacsim/python.sh /home/dmhai/Desktop/nvidia-omniverse/vision_guided_robot_simulation/scripts/view_phase6_deliverables.py
sle ($Y = +0.48\text{ m}$):**
- `destination_rack` at $[0.46, 0.48, 0.0]\text{ m}$ (primary placement bay, Shelf 1 active)
- `destination_rack_bay2` at $[1.00, 0.48, 0.0]\text{ /home/dmhai/isaacsim/python.sh /home/dmhai/Desktop/nvidia-omniverse/vision_guided_robot_simulation/scripts/view_phase6_deliverables.py
m}$ (extended forward storage bay)
- `rear_rack_left` at $[-0.60, 0.48, 0.0]\text{ m}$ (rear logistics staging bay)
- **Central Corridor:**
- Inner rack edge distance: $0.61\text{ m}$ ($61\text{ cm}$).
- Robot mounting: Franka base centered at $[0.0, 0.0, 0.0]\text{ m}$.
- Clearance: Franka arm elbow width $\approx 0.25\text{ m}$, leaving $> 0.18\text{ m}$ safety margin on both lateral sides during $180^\circ$ yaw transitions.
### 4.2 Shelf Allocation & Procedural Inventory Boxes
- **Active Shelf 1 (Source Bay):** Reserved for randomized target manipulation objects (cube, cuboid, cylinder) with `object_*` semantic tags.
- **Active Shelf 1 (Destination Bay):** Kept clear for collision-free placement.
- **Non-Active Shelves (16 shelves):** Populated with 32 procedural inventory boxes across 6 size and material tiers:
| Box Type | Min Dimensions (m) | Max Dimensions (m) | Mass (kg) | Material Appearance | Semantic Tag |
| :--- | :--- | :--- | :--- | :--- | :--- |
| **Small Carton** | $0.05 \times 0.04 \times 0.05$ | $0.07 \times 0.06 \times 0.07$ | 0.12 | Kraft Brown | `inventory_carton_small` |
| **Medium Carton** | $0.08 \times 0.06 \times 0.07$ | $0.11 \times 0.09 \times 0.10$ | 0.25 | Shipping Tan | `inventory_carton_medium` |
| **Large Carton** | $0.12 \times 0.09 \times 0.10$ | $0.15 \times 0.12 \times 0.14$ | 0.40 | Master Carton Dark Brown | `inventory_carton_large` |
| **Flat Parcel** | $0.10 \times 0.08 \times 0.04$ | $0.13 \times 0.11 \times 0.05$ | 0.18 | Express White | `inventory_parcel_flat` |
| **Storage Tote** | $0.13 \times 0.10 \times 0.08$ | $0.16 \times 0.12 \times 0.10$ | 0.50 | Industrial Blue | `inventory_tote` |
| **Canister Drum** | $R=0.025, H=0.080$ | $R=0.038, H=0.120$ | 0.22 | Metallic Steel | `inventory_canister` |