Files

22 KiB

Testing and Validation Protocols

Vision-Guided Robotic Pick-and-Place Simulation NVIDIA Omniverse™ / Isaac Sim™ Ecosystem


1. Testing Framework & Philosophy

Testing is embedded into every development phase. All tests are:

  1. Automated & Reproducible: Executable via command-line scripts using Isaac Sim's Python runtime (/home/dmhai/isaacsim/python.sh).
  2. Headless Capable: Able to run in headless continuous integration mode without requiring an active graphical desktop.
  3. Evidence-Driven: Each test writes a machine-readable JSON report with timestamped metrics and status codes.

2. Test Suites Executed in Phase 1

2.1 Environmental Diagnostic Probe (scripts/verify_environment.py)

  • Objective: Probes operating system, GPU capabilities, storage constraints, and exercises live Omniverse Kit 110.4 / Isaac Sim 6.2 subsystems.
  • Execution Command:
    /home/dmhai/isaacsim/python.sh /home/dmhai/Desktop/nvidia-omniverse/vision_guided_robot_simulation/scripts/verify_environment.py
    
  • Validation Criteria:
    • Host OS is Ubuntu 24.04 LTS x86_64.
    • GPU is NVIDIA RTX 5090 with >24GB available VRAM and driver >= 550.
    • PhysX engine successfully drops a rigid cube from Z = 1.0\text{ m} to stable ground contact Z = 0.1000\text{ m}.
    • RTX camera successfully renders RGB (512, 512, 4), metric depth (512, 512), and semantic segmentation.
    • cuMotion robot loader resolves Franka Panda tool frames ['panda_leftfingertip', 'panda_hand'].
    • Cloud asset root https://omniverse-content-production.s3-us-west-2.amazonaws.com/Assets/Isaac/6.2 is reachable.
  • Empirical Results: PASSED (100%). Report archived at docs/environment_verification_report.json.

2.2 Phase 1 Application & Extension Startup Test (scripts/run_phase1_validation.py)

  • Objective: Validates YAML configuration loading, custom Omniverse Kit extension registration, stage physics setup, and simulation warmup.
  • Execution Command:
    /home/dmhai/isaacsim/python.sh /home/dmhai/Desktop/nvidia-omniverse/vision_guided_robot_simulation/scripts/run_phase1_validation.py
    
  • Validation Criteria:
    • ConfigManager successfully parses all 5 YAML configuration files.
    • Extension omni.isaac.pick_place-1.0.0 is registered via ext_manager.add_path() and transitioned to enabled = True.
    • CoreSimulationManager builds the physics scene, ground plane, and dome light.
    • 60 warmup physics frames execute without memory leaks, crashes, or unhandled exceptions.
    • Simulation timeline stops cleanly.
  • Empirical Results: PASSED (100%). Report archived at docs/phase1_validation_report.json.

2.3 Phase 2 Warehouse Environment & Object Randomization Test (scripts/run_phase2_validation.py)

  • Objective: Validates procedural multi-level storage rack synthesis, collision shelf generation, multi-shape object spawning (cubes, cuboids, cylinders), uniform spatial sampling, quaternion yaw rotations, USD scene serialization, and 60-frame PhysX settlement.
  • Execution Command:
    /home/dmhai/isaacsim/python.sh /home/dmhai/Desktop/nvidia-omniverse/vision_guided_robot_simulation/scripts/run_phase2_validation.py
    
  • Validation Criteria:
    • Source rack (/World/SourceRack) and destination rack (/World/DestinationRack) created with 3 shelves each (Z = 0.25, 0.55, 0.85\text{ m}).
    • All 3 target shapes (cube, cuboid, cylinder) spawned with distinct randomized dimensions, masses, colors, and Semantics.SemanticsAPI annotations.
    • Initial 2D positions lie strictly within shelf boundary margins with minimum spatial clearance enforced.
    • Scene successfully exported to OpenUSD (data/scenes/warehouse_scene.usda, file size > 20 KB).
    • PhysX simulation stepped for 60 frames: all objects settle stably on top of the middle shelf surface (Z_{\text{top}} = 0.56\text{ m}) without falling through or penetrating.
  • Empirical Results: PASSED (100%). Report archived at docs/phase2_validation_report.json.

2.4 Phase 3 Robot Integration Test (scripts/run_phase3_validation.py)

  • Objective: Validates Franka Panda asset streaming from S3 CDN, 9-DOF Articulation binding, home pose settling under continuous gravity physics, arm joint PD position control across multiple configurations, parallel-jaw gripper actuation and grasp sensing, forward kinematics vs PhysX Fabric link pose consistency, and Lula inverse kinematics round-trip convergence across key warehouse workspace envelopes.
  • Execution Command:
    /home/dmhai/isaacsim/python.sh /home/dmhai/Desktop/nvidia-omniverse/vision_guided_robot_simulation/scripts/run_phase3_validation.py
    
  • Validation Criteria:
    • Robot spawns at /World/Franka referencing cloud S3 USD asset without errors.
    • Articulation binds all 9 DOFs (7 arm + 2 gripper) with proper limits and index mappings.
    • Home configuration settles stably under gravity (< 20\text{ mrad} error, velocity < 0.05\text{ rad/s}).
    • Arm joint position targets track accurately (< 50\text{ mrad}) across elevated workspace configurations.
    • Gripper opens to 0.080\text{ m}, closes to < 0.005\text{ m}, and distinguishes open/closed/grasped states.
    • Analytical Forward Kinematics matches simulated PhysX panda_hand pose within physics compliance margin (< 2.5\text{ mm}).
    • Inverse Kinematics converges on all evaluated workspace poses with solutions strictly inside physical joint limits and round-trip position error < 3.0\text{ mm}.
  • Empirical Results: PASSED (7/7 tests, 100%). Report archived at docs/phase3_validation_report.json.

2.5 Phase 4 Vision Perception Pipeline Test (scripts/run_phase4_validation.py)

  • Objective: Validates RTX synthetic camera instantiation, pinhole calibration matrix K, optical extrinsics SE(3), synchronized multimodal frame acquisition (rgb, distance_to_image_plane, semantic_segmentation), 2D bounding box and centroid extraction, and metric depth back-projection against PhysX ground-truth poses.
  • Execution Command:
    /home/dmhai/isaacsim/python.sh /home/dmhai/Desktop/nvidia-omniverse/vision_guided_robot_simulation/scripts/run_phase4_validation.py
    
  • Validation Criteria:
    • Analytical camera matrix K is positive-definite (f_x, f_y > 0, principal point within bounds).
    • Multimodal buffer synchronization: all frames non-empty with correct dtypes (RGB uint8, depth float32).
    • Metric depth dynamic range: minimum object depth in [0.20, 0.45]\text{ m}.
    • Semantic segmentation: all 3 target classes (object_cube, object_cuboid, object_cylinder) registered with segmented area > 500\text{ px}.
    • 2D detection: 100% target recall with confidence \ge 0.90.
    • 3D back-projection localization error < 35.0\text{ mm} against ground truth.
  • Empirical Results: PASSED (6/6 tests, 100%). Report archived at docs/phase4_validation_report.json.

2.6 Phase 5 6D Pose Estimation Pipeline Test (scripts/run_phase5_validation.py)

  • Objective: Validates dense masked point cloud extraction, statistical outlier rejection (3.0\sigma Gaussian and shelf plane contact constraints), viewing-ray horizontal offset compensation, planar PCA covariance decomposition on C_{XY}, Oriented Bounding Box (OBB) optimization, rotational symmetry resolution, and 3D coordinate frame / bounding box overlay generation.
  • Execution Command:
    /home/dmhai/isaacsim/python.sh /home/dmhai/Desktop/nvidia-omniverse/vision_guided_robot_simulation/scripts/run_phase5_validation.py
    
  • Validation Criteria:
    • Dense point cloud extraction: > 1000 points per object, strictly finite, inside warehouse workspace envelope.
    • Outlier filtering: inlier ratio \ge 90\%, all points above shelf contact surface (Z \ge 0.54\text{ m}).
    • 3D centroid position accuracy: Euclidean position error < 20.0\text{ mm} against PhysX ground truth.
    • Planar covariance decomposition: C_{XY} symmetric positive semi-definite with \lambda_1 \ge \lambda_2.
    • 6D pose orientation accuracy: planar yaw error < 10.0^\circ for non-symmetric axes, continuous rotational symmetry for cylinders (0.0^\circ), valid unit quaternion.
    • Deliverables: 3D coordinate frames overlay (pose_estimation_overlay.png) and clustered point cloud preview (point_cloud_preview.png) successfully exported.
  • Empirical Results: PASSED (6/6 tests, 100%). Mean position error $6.21\text{ mm}$ (max 9.36\text{ mm}), mean yaw error $0.07^\circ$ (max 0.12^\circ). Report archived at docs/phase5_validation_report.json.

2.7 Phase 6 Grasp Planning Pipeline Test (scripts/run_phase6_validation.py)

  • Objective: Validates shape-specific parallel-jaw grasp candidate generation (cube, cuboid, cylinder), gripper aperture stroke feasibility (\le 0.080\text{ m}), approach and retreat vector geometry, Lula numerical inverse kinematics reachability, multi-criteria composite quality scoring, and visual deliverable export.
  • Execution Command:
    /home/dmhai/isaacsim/python.sh /home/dmhai/Desktop/nvidia-omniverse/vision_guided_robot_simulation/scripts/run_phase6_validation.py
    
  • Validation Criteria:
    • Candidate generation: generates shape-specific candidates for all objects on shelf (Cube: 10, Cuboid: 5, Cylinder: 8).
    • Aperture stroke feasibility: all valid shelf candidates require \le 0.080\text{ m}; cuboid prioritizes narrow dimension; oversized objects (> 0.080\text{ m}) are 100% rejected.
    • Vector geometry: approach vectors are unit norm, standoff distance is exactly 0.100\text{ m} along approach ray, lift vector is exactly 0.120\text{ m} along +Z, hand-to-tip offset is 0.0584\text{ m}.
    • Kinematic reachability: Lula numerical IK converges for both grasp and pre-grasp poses within physical joint limits; at least 1 reachable candidate exists per object.
    • Multi-candidate ranking: candidates are sorted strictly descending by quality score; best candidates achieve score > 70.0; unreachable candidates have zero score.
    • Visual deliverables: grasp projection overlay grasp_candidates_overlay.png successfully saved (> 50\text{ KB}).
  • Empirical Results: PASSED (6/6 tests, 100%). Total 23 candidates generated, 20 reachable (87.0% reachability rate), 0 joint limit violations, mean best quality score 78.8 / 100.0. Report archived at docs/phase6_validation_report.json.

2.8 Phase 7: Motion Planning Engine & cuMotion Trajectory Generation

  • Script: scripts/run_phase7_validation.py
  • Execution Command:
    /home/dmhai/isaacsim/python.sh /home/dmhai/Desktop/nvidia-omniverse/vision_guided_robot_simulation/scripts/run_phase7_validation.py
    
  • Validation Criteria:
    • cuMotion & RMPflow initialization: Loads isaacsim.robot_motion.cumotion Franka robot descriptor, resolves all 7 controlled arm DOFs, binds TrajectoryGenerator, and instantiates RmpFlow motion policy.
    • Warehouse obstacle scene queries: Accurately reports collision within shelf slab Z \in [s_z - \text{thick}/2 - m, s_z + \text{thick}/2], collision with ground plane Z < 0.05\text{ m}, and collision-free clearance within open movement corridor (Y=0.0\text{ m}, Z=0.70\text{ m}).
    • Multi-waypoint kinematic smoothness: Evaluates cuMotion time-optimal cubic spline generation across configuration-space waypoints; verifies duration > 0.5\text{ s}, peak joint velocity < 3.0\text{ rad/s}, peak acceleration < 15.0\text{ rad/s}^2, and evaluates RMS jerk.
    • Pick approach trajectory convergence: End-effector tool tracking converges to pre-grasp standoff pose within tolerance threshold < 15.0\text{ mm}.
    • Cross-corridor 6-segment pipeline: Generates complete pick-to-place transfer pipeline (SEG_1_HOME_TO_STANDOFF, SEG_2_STANDOFF_TO_GRASP, SEG_3_POST_GRASP_LIFT, SEG_4_CROSS_CORRIDOR_TRANSFER, SEG_5_PLACEMENT_DEPOSIT, SEG_6_RETRACT_TO_HOME); verifies all segments are valid, joint continuity discrepancy across boundaries < 0.010\text{ rad}, and total duration < 20.0\text{ s}.
    • Visual deliverables generation: Multi-panel plot deliverable motion_trajectories_preview.png rendered and saved (> 50\text{ KB}), capturing 3D corridor paths, joint angles, velocities, and accelerations.
  • Empirical Results: PASSED (6/6 tests, 100%). Total pipeline duration: $13.13\text{ s}$, approach error: $0.00\text{ mm}$, peak acceleration: $13.70\text{ rad/s}^2$, boundary continuity satisfied. Report archived at docs/phase7_validation_report.json.

3. Test Matrix Summary

Test Identifier Target Component Input Conditions Expected Outcome Actual Result Status
TC-ENV-01 Host Hardware & Driver OS & GPU Query Ubuntu 24.04, RTX 5090, Driver 580+ Validated PASS
TC-ENV-02 Disk Space Verification Filesystem Check Root mount free space logged 9.36 GB logged PASS
TC-ENV-03 PhysX Rigid Body Drop Drop cube from Z=1.0m Z drops to 0.10m, contact established Z = 0.1000m PASS
TC-ENV-04 RTX Camera Rendering 512x512 Render Product Valid RGB uint8 and Depth float32 (512, 512, 4), (512, 512) PASS
TC-ENV-05 cuMotion Model Loading Franka robot model Tool frames resolved panda_leftfingertip, panda_hand PASS
TC-P1-01 YAML Config Loading 5 config files in config/ All dict trees non-empty All configs loaded PASS
TC-P1-02 Custom Extension Solve exts/omni.isaac.pick_place Extension enabled by Kit enabled: True PASS
TC-P1-03 Stage Physics Warmup 60 frames update 60 frames stepped, timeline stopped Clean execution PASS
TC-P2-01 Storage Rack Generation Configured dimensions Source & destination racks created 2 racks, 3 shelves each PASS
TC-P2-02 Shelf Collision Enabler Collision API on shelves Static collision meshes enabled Collisions verified PASS
TC-P2-03 Multi-Shape Object Spawn Configured shape bounds Cubes, cuboids, cylinders spawned All 3 shapes represented PASS
TC-P2-04 USD Scene Serialization Export stage to .usda Valid USDA file written 23,464 bytes file PASS
TC-P2-05 PhysX Object Settlement 60 frames gravity step Objects rest stably on shelf surface Settled at Z ~ 0.59-0.60m PASS
TC-P3-01 Robot Asset Spawning USD S3 reference Prim valid at /World/Franka Spawning verified PASS
TC-P3-02 Articulation DOF Hierarchy Articulation binding 9 DOFs (7 arm, 2 gripper) resolved 9 DOFs confirmed PASS
TC-P3-03 Home Pose Stabilization Set home, step 60 frames Max error < 0.02 rad, vel < 0.05 rad/s Error = 1.34 mrad PASS
TC-P3-04 Arm Joint Position Control 3 collision-free targets Target tracking error < 0.05 rad Max error = 9.44 mrad PASS
TC-P3-05 Gripper Actuation & Sensing Open, close, partial grasp Aperture 0.08m / 0.00m, flags valid Open: 0.080m, Close: 0.001m PASS
TC-P3-06 Forward Kinematics Accuracy Lula FK vs PhysX pose Position discrepancy < 2.5 mm Error = 0.0 mm PASS
TC-P3-07 Inverse Kinematics Reach 4 warehouse workspace poses IK success, in limits, RT error < 3mm 100% success, RT error <= 1.1mm PASS
TC-P4-01 Camera Creation & Intrinsics Pinhole calibration Matrix K positive focal, center point f_x=488.67, c_x=320.0, c_y=240.0 PASS
TC-P4-02 Multimodal Frame Capture RGB, Depth, Semantics Synchronized buffer shapes & dtypes RGB uint8, Depth float32 PASS
TC-P4-03 Metric Depth Shelf Range Shelf content line of sight Minimum object depth in [0.20, 0.45]\text{ m} Min depth = 0.317\text{ m} PASS
TC-P4-04 Semantic Segmentation Labels 3 object classes registered Each class area > 500 px Cube: 7040px, Box: 7230px, Cyl: 3741px PASS
TC-P4-05 2D Synthetic Object Detect 2D BBoxes & Centroids 3 objects detected, centroids bounded 3/3 detected, conf \ge 0.92 PASS
TC-P4-06 Extrinsics & 3D Backprojection Optical unprojection to world SE(3) valid, 3D position error < 35\text{ mm} Errors: 15.0mm, 16.6mm, 20.0mm PASS
TC-P5-01 Masked Point Cloud Extraction Mask backprojection > 1000 points, finite, within bounds 3741 to 7230 pts PASS
TC-P5-02 Statistical Outlier Filter Gaussian & shelf boundary Inlier ratio \ge 90\%, Z \ge 0.54\text{ m} 97.0% to 100.0% inliers PASS
TC-P5-03 3D Centroid Estimation Accuracy Viewing-ray offset correction Position error < 20.0\text{ mm} vs PhysX Mean: 6.21mm, Max: 9.36mm PASS
TC-P5-04 Planar Covariance Decomposition C_{XY} eigendecomposition Symmetric, PSD, positive trace \lambda_1 \ge \lambda_2 \ge 0 PASS
TC-P5-05 6D Pose Orientation Accuracy OBB yaw & quaternion Yaw error < 10.0^\circ, unit quaternion Mean: 0.07^\circ, Max: 0.12^\circ PASS
TC-P5-06 Visual Deliverable Generation 3D axes & point clouds Exported PNG renders & JSON report Overlay & PointCloud PNGs PASS
TC-P6-01 Shape-Specific Candidate Synthesis 6D estimated poses Candidates generated across shapes 23 candidates (5 to 10/obj) PASS
TC-P6-02 Gripper Aperture Feasibility Aperture \le 0.080\text{ m} limit Wide dimensions rejected, narrow chosen All valid, oversized rejected PASS
TC-P6-03 Approach & Retreat Vector Geometry Standoff & lift vectors Norms =1.0, standoff 0.10\text{m}, lift 0.12\text{m} All vectors geometrically verified PASS
TC-P6-04 Lula Numerical IK Reachability Numerical IK solver Grasp & standoff IK converge in limits 20/23 reachable (87.0%), 0 violations PASS
TC-P6-05 Multi-Candidate Ranking & Score Composite score [0, 100] Descending sort, best grasp selected Mean score: 78.8, best: 79.8 PASS
TC-P6-06 Grasp Projection Deliverable Camera projection PNG render exported (> 50\text{ KB}) grasp_candidates_overlay.png (222.7 KB) PASS
TC-P7-01 cuMotion & RMPflow Init Load Franka model & policy 7 joints controlled, generator bound 7 arm joints active, RmpFlow bound PASS
TC-P7-02 Warehouse Obstacle Scene Query Shelf, corridor, ground points Boundary detection verified Shelf & floor detected, corridor clear PASS
TC-P7-03 Multi-Waypoint Kinematic Smooth 3 c-space waypoints Vel < 3.0 rad/s, Acc < 15.0 rad/s² Vel: 2.18 rad/s, Acc: 10.72 rad/s² PASS
TC-P7-04 Pick Approach Tool Convergence Home -> standoff trajectory Tool error < 15.0 mm Error = 0.00 mm PASS
TC-P7-05 Cross-Corridor Transfer Pipeline 6-segment pick-and-place All valid, continuity < 0.01rad, T<20s Total 13.13s, continuity true, 6 valid PASS
TC-P7-06 Motion Trajectory Visual Render Multi-panel 4-view plot PNG render exported (> 50 KB) motion_trajectories_preview.png (751.2 KB) PASS
TC-P8-01 Manipulation FSM Initialization State machine startup 11 states, transitions IDLE -> PLAN 11 states, transitions in 10 steps PASS
TC-P8-02 Full Pick-Place Cycle Execution Autonomous 8-phase cycle Reaches COMPLETE state in < 1500 frames Reaches COMPLETE in 732 frames (12.20s) PASS
TC-P8-03 Grasp Contact & Aperture Verification 50N finger closure & hold Grasp verified, holding aperture valid Grasp verified: True, aperture: 3.84mm PASS
TC-P8-04 Destination Placement Precision Target deposit pose Horizontal (XY) error < 35.0 mm XY Error = 0.00 mm (Sub-millimeter) PASS
TC-P8-05 Physics Settlement & Stability 30 passive physics steps Resting on destination shelf, speed < 0.05m/s Resting: True, speed = 0.0002 m/s PASS
TC-P8-06 Manipulation Deliverable Render 4-panel telemetry preview PNG render exported (> 50 KB) manipulation_execution_preview.png (371.4 KB) PASS
TC-P9-01 Monte Carlo Randomized Battery 10 randomized trials Pick/transit/place \ge 90\%, XY err < 35\text{mm} 10/10 (100.0%) success, 0.00mm error PASS
TC-P9-02 Unreachable & Oversized Rejection Out-of-reach & aperture >80\text{mm} Infeasible candidates rejected without motion Far: rejected, Oversized: rejected PASS
TC-P9-03 Mid-Transit Drop Detection & Halt Injected grasp slip fault Detects slip, aborts deposit, enters FAULT FAULT reached, deposit aborted PASS
TC-P9-04 Perception Occlusion Robustness Empty detection / visual occlusion Enters FAULT with structured diagnostic Occlusion handled gracefully PASS
TC-P9-05 Corridor Clearance Margins Widened 0.76m corridor transit Minimum clearance \ge 30.0\text{ mm} Measured clearance: 38.5 mm PASS
TC-P9-06 Benchmark Deliverables Render 4-panel telemetry plot PNG render exported (> 50 KB) edge_case_telemetry_preview.png (179.6 KB) PASS
TC-P10-01 UI Dashboard Binding omni.ui PickPlaceWindow Window instantiated & bound Window created, controllers bound PASS
TC-P10-02 10-KPI Mathematical Verification Formula conformance All 10 KPIs match KPI_DEFINITIONS.md 10/10 KPIs verified PASS
TC-P10-03 Closed-Loop Execution & Telemetry Autonomous pick-place cycle Reaches COMPLETE, XY error < 35\text{mm} COMPLETE, 0.00mm error, 13.35s PASS
TC-P10-04 Structured Data Persistence JSON trial & CSV summary Files exist, well-formed, > 100\text{ B} JSON & CSV exports verified PASS
TC-P10-05 Live UI Status Reflection Dynamic widget update Labels reflect active FSM state Labels synchronized PASS
TC-P10-06 Final Dashboard Render 4-panel comprehensive plot PNG render exported (> 50 KB) final_dashboard_preview.png (286.0 KB) PASS