Files
Pick-And-Place-Simulation-P…/docs/ENVIRONMENT_SETUP.md
T

145 lines
8.3 KiB
Markdown

# Environment Setup and Verification Guide
**Vision-Guided Robotic Pick-and-Place Simulation**
**NVIDIA Omniverse™ / Isaac Sim™ Ecosystem**
---
## 1. Executive Summary & Verification Status
Prior to implementing simulation modules, a full environmental inspection was executed on the host workstation. All required simulation, rendering, physics, articulation, vision, and GPU-accelerated motion planning subsystems were probed and validated against Isaac Sim 6.2 (Kit 110.4) using an automated headless verification test suite.
| Verification Item | Target Subsystem | Status | Observed Characteristic / Metric |
| :--- | :--- | :---: | :--- |
| **Operating System** | Ubuntu 24.04 LTS (Noble) | **VERIFIED** | Linux Kernel `7.0.0-38-generic`, x86_64 architecture |
| **NVIDIA GPU** | RTX 5090 (Blackwell sm_120) | **VERIFIED** | 32 GB GDDR7 VRAM, Driver `580.178.04`, CUDA 13.0 |
| **Storage Capacity** | Root Mount `/dev/nvme0n1p4` | **CONSTRAINED** | **9.36 GB available** (93.9% used). STRICT CAUTION. |
| **Isaac Sim Version** | Isaac Sim 6.2 | **VERIFIED** | `6.2.0-rc.14+release.52805.02189a84.gl` at `/home/dmhai/isaacsim` |
| **Omniverse Kit SDK** | Kit Kernel 110.4 | **VERIFIED** | Python 3.12.14, Carbonite plugin runtime |
| **USD Composer** | Omniverse Hub / OpenUSD Runtime | **VERIFIED** | Hub 2.3.0 installed; full USD Composer runtime via Kit 110.4 |
| **OpenUSD & Physics** | PhysX / Fabric / UsdPhysics | **VERIFIED** | Rigid body drop test passed (Z: 1.0m -> 0.10m contact) |
| **RTX Sensor Pipeline** | RTX Camera & Replicator | **VERIFIED** | RGB (512x512x4), Depth (512x512), Semantic Annotator |
| **Robot Articulation** | Franka Panda Articulation | **VERIFIED** | Multiphysics USD Articulation support confirmed |
| **Motion Planning API** | NVIDIA cuMotion RMPflow | **VERIFIED** | `load_cumotion_supported_robot("franka")` tool frames active |
| **Asset Delivery** | NVIDIA S3 CDN | **VERIFIED** | Cloud asset root HTTP 200 OK without local disk bloat |
---
## 2. Workstation Hardware & System Architecture
### 2.1 Host Specifications
- **Operating System:** Ubuntu 24.04.3 LTS (Noble Numbat)
- **Linux Kernel:** `7.0.0-38-generic` SMP PREEMPT_DYNAMIC
- **CPU Architecture:** x86_64
- **Host Memory:** Physical RAM with jemalloc runtime memory allocator
- **Active Workspace Directory:** `/home/dmhai/Desktop/nvidia-omniverse/vision_guided_robot_simulation`
### 2.2 GPU & Acceleration Subsystems
- **GPU Model:** NVIDIA GeForce RTX 5090
- **Total Dedicated VRAM:** 32,607 MiB (32 GB)
- **Architecture Compute Capability:** sm_120 (Blackwell family)
- **Display Driver Version:** `580.178.04`
- **CUDA Runtime / Driver Version:** CUDA 13.0
- **NVIDIA Warp:** Warp 1.17.0 initialized with CUDA Toolkit 12.9/13.0 driver bindings
- **Memory Pool:** Mempool enabled on `cuda:0`
### 2.3 Disk Space Constraints & Asset Strategy
- **Total Root Filesystem:** 885.45 GB
- **Used Space:** 831.04 GB (93.9%)
- **Available Free Space:** **9.36 GB**
- **CRITICAL OPERATIONAL CONSTRAINT:**
Due to the remaining ~9.4 GB free space, downloading massive asset packs (e.g., Omniverse Isaac asset packages of 30+ GB) to local disk will trigger out-of-disk failures.
- **Resolution & Strategy:**
1. Leverage the verified NVIDIA S3 Cloud CDN (`https://omniverse-content-production.s3-us-west-2.amazonaws.com/Assets/Isaac/6.2`) for streaming standard USD assets (e.g. Franka Panda).
2. Synthesize warehouse storage racks, shelves, and diverse manipulation objects procedurally using native OpenUSD primitives (`UsdGeom.Cube`, `UsdGeom.Cylinder`, `UsdGeom.Mesh`) with native PhysX rigid body and collision APIs.
3. Ensure no uncompressed temporary datasets or video recordings exhaust disk thresholds.
---
## 3. NVIDIA Omniverse & Isaac Sim Installation
### 3.1 Paths and Environment
- **Isaac Sim Installation Root:** `/home/dmhai/isaacsim`
- **Omniverse Kit SDK Location:** `/home/dmhai/isaacsim/kit`
- **Python Binary:** `/home/dmhai/isaacsim/kit/python/bin/python3` (Python 3.12.14)
- **Python Wrapper Script:** `/home/dmhai/isaacsim/python.sh`
- **Omniverse Launcher / Hub:** `/home/dmhai/.local/share/ov/pkg/hub-2.3.0`
- **Carbonite Logs Directory:** `/home/dmhai/.nvidia-omniverse/logs/Kit/kit/110.4/`
### 3.2 Modular Isaac Sim 6.2 Architecture (Namespace Migration)
A critical architectural evolution in Isaac Sim 6.2 is the migration from the legacy `omni.isaac.*` monolithic modules to granular, modular `isaacsim.*` packages:
```
[Legacy Isaac Sim (< 4.0)] ---> [Isaac Sim 6.2 Modern Architecture]
omni.isaac.core.World ---> isaacsim.core.simulation_manager.SimulationManager
omni.isaac.core.prims ---> isaacsim.core.experimental.prims (RigidPrim, Articulation, GeomPrim)
omni.isaac.core.objects ---> isaacsim.core.experimental.objects (Cube, Cylinder, GroundPlane)
omni.isaac.motion_generation ---> isaacsim.robot_motion.cumotion (CumotionRobot, RmpFlowController)
omni.isaac.sensor.Camera ---> isaacsim.sensors.camera / omni.replicator.core
```
Attempting `import omni.isaac.core` directly raises `ModuleNotFoundError: No module named 'omni.isaac.core'`. All implementation code in this project adheres strictly to native `isaacsim.*` 6.2 APIs.
---
## 4. Subsystem Probing & Verification Details
### 4.1 Carbonite Plugin Runtime & SimulationApp Initialization
Omniverse Kit enforces that all Isaac Sim and Kit modules (such as `pxr`, `omni.usd`, `omni.physx`) must be imported **after** `isaacsim.SimulationApp` is instantiated:
```python
from isaacsim import SimulationApp
simulation_app = SimulationApp({"headless": True})
# Omniverse & Isaac Sim modules can only be imported here
import omni.usd
from pxr import UsdGeom, UsdPhysics
from isaacsim.core.simulation_manager import SimulationManager
```
Calling `simulation_app.close()` triggers application lifecycle termination; file saving and reporting must precede this call.
### 4.2 NVIDIA PhysX & Rigid Body Dynamics
- **Test:** Created a ground plane at Z=0.0 and a rigid cube at Z=1.0 with collision APIs.
- **Execution:** Started physics via `app_utils.play()` and stepped the simulation for 30 cycles at $\Delta t = 1/60\text{ s}$.
- **Result:** The cube descended under gravity to $Z = 0.1000\text{ m}$ (half cube dimension of 0.2m), making stable contact with the ground plane without penetration.
- **GPU Pipeline & Tensor Handling:** Isaac Sim 6.2 utilizes NVIDIA Warp (`wp.array`) for GPU tensor buffers. Poses retrieved via `.get_world_poses()` return Warp arrays, which are mapped to NumPy with `.numpy()`.
### 4.3 RTX Rendering & Replicator Perception Pipeline
- **Test:** Spawned an RTX camera, created a 512x512 render product, and attached annotators:
- `rgb`
- `distance_to_image_plane`
- `semantic_segmentation`
- **Result:**
- `rgb`: Shape `(512, 512, 4)` uint8 image buffer.
- `distance_to_image_plane`: Shape `(512, 512)` float32 linear metric depth buffer.
- `semantic_segmentation`: Segment IDs mapped to semantic prim metadata.
### 4.4 cuMotion RMPflow Motion Generation
- **Test:** Loaded native cuMotion robot configuration for Franka Panda via `load_cumotion_supported_robot("franka")`.
- **Result:**
- Successfully loaded URDF/XRDF kinematics and collision geometries for Franka.
- Active tool frame names verified: `['panda_leftfingertip', 'panda_hand']`.
- cuMotion CUDA acceleration operational on RTX 5090.
### 4.5 Extension Ecosystem State
The following core extensions are verified installed, active, and loadable:
1. `isaacsim.core.simulation_manager` (Core lifecycle and physics stepping)
2. `isaacsim.core.experimental.prims` (RigidPrim, Articulation, GeomPrim)
3. `isaacsim.core.experimental.objects` (Parametric USD primitives)
4. `isaacsim.robot_motion.cumotion` (GPU-accelerated RMPflow motion generation)
5. `isaacsim.sensors.camera` (Omniverse RTX camera sensor)
6. `isaacsim.sensors.rtx` (RTX rendering backend)
7. `omni.physx` (NVIDIA PhysX 5 physics engine)
8. `omni.replicator.core` (Synthetic data generation, annotators, domain randomization)
9. `omni.usd` (OpenUSD stage context management)
10. `omni.ui` (Native Kit user interface system)
---
## 5. Verification Execution Command
To re-run the complete automated diagnostic verification at any time:
```bash
/home/dmhai/isaacsim/python.sh /home/dmhai/Desktop/nvidia-omniverse/vision_guided_robot_simulation/scripts/verify_environment.py
```
Outputs are archived in:
`docs/environment_verification_report.json`