Initial commit: Vision-Guided Robotic Pick-and-Place Simulation

This commit is contained in:
DnyaneshwariP13
2026-11-25 11:09:32 +05:30
commit 5295f0dcdc
966 changed files with 84693 additions and 0 deletions
+220
View File
@@ -0,0 +1,220 @@
# Warehouse Environment Configuration
# All manipulation objects are procedural primitives — no external USD assets required.
# Robot base: [0, 0, 0] Corridor Y range: [-0.38, +0.38]
warehouse:
racks:
# ── SOURCE RACKS (robot picks FROM these) ──────────────────────────────────
source_rack: # Bay 1 Right — primary pick rack
prim_path: "/World/Racks/SourceRack"
position: [0.46, -0.52, 0.0]
orientation_euler: [0.0, 0.0, 0.0]
width: 0.52
depth: 0.28
height: 1.20
num_shelves: 3
shelf_heights: [0.25, 0.55, 0.95]
shelf_thickness: 0.02
frame_pillar_radius: 0.015
color_frame: [0.20, 0.20, 0.25]
color_shelf: [0.55, 0.55, 0.60]
apply_collision: true
source_rack_bay2: # Bay 2 Right — extended X reach (X=1.00m)
prim_path: "/World/Racks/SourceBay2"
position: [1.00, -0.52, 0.0]
orientation_euler: [0.0, 0.0, 0.0]
width: 0.52
depth: 0.28
height: 1.20
num_shelves: 3
shelf_heights: [0.25, 0.55, 0.90]
shelf_thickness: 0.02
frame_pillar_radius: 0.015
color_frame: [0.22, 0.18, 0.20]
color_shelf: [0.58, 0.52, 0.55]
apply_collision: true
rear_rack_right: # Rear Right — behind robot, long reach
prim_path: "/World/Racks/RearRight"
position: [-0.60, -0.52, 0.0]
orientation_euler: [0.0, 0.0, 0.0]
width: 0.52
depth: 0.28
height: 1.20
num_shelves: 3
shelf_heights: [0.25, 0.55, 0.90]
shelf_thickness: 0.02
frame_pillar_radius: 0.015
color_frame: [0.18, 0.22, 0.20]
color_shelf: [0.52, 0.58, 0.55]
apply_collision: true
# ── DESTINATION RACKS (robot places TO these) ──────────────────────────────
destination_rack: # Bay 1 Left — primary place rack
prim_path: "/World/Racks/DestinationRack"
position: [0.46, 0.52, 0.0]
orientation_euler: [0.0, 0.0, 0.0]
width: 0.72
depth: 0.28
height: 1.20
num_shelves: 3
shelf_heights: [0.25, 0.55, 0.95]
shelf_thickness: 0.02
frame_pillar_radius: 0.015
color_frame: [0.18, 0.25, 0.18]
color_shelf: [0.52, 0.60, 0.52]
apply_collision: true
destination_rack_bay2: # Bay 2 Left — extended X reach (X=1.00m)
prim_path: "/World/Racks/DestinationBay2"
position: [1.00, 0.52, 0.0]
orientation_euler: [0.0, 0.0, 0.0]
width: 0.52
depth: 0.28
height: 1.20
num_shelves: 3
shelf_heights: [0.25, 0.55, 0.90]
shelf_thickness: 0.02
frame_pillar_radius: 0.015
color_frame: [0.18, 0.22, 0.25]
color_shelf: [0.52, 0.56, 0.60]
apply_collision: true
rear_rack_left: # Rear Left — behind robot, long reach
prim_path: "/World/Racks/RearLeft"
position: [-0.60, 0.52, 0.0]
orientation_euler: [0.0, 0.0, 0.0]
width: 0.52
depth: 0.28
height: 1.20
num_shelves: 3
shelf_heights: [0.25, 0.55, 0.90]
shelf_thickness: 0.02
frame_pillar_radius: 0.015
color_frame: [0.22, 0.20, 0.25]
color_shelf: [0.56, 0.52, 0.60]
apply_collision: true
# ── Object definitions ─────────────────────────────────────────────────────────
# All shapes are procedural primitives — Cube / Cylinder from Isaac Sim APIs.
# Fields:
# family : "cube" | "cuboid" | "cylinder"
# size : (cube only) side length in metres
# width/depth/height : (cuboid) in metres
# radius/height : (cylinder) in metres
# color : [R, G, B] in [0,1]
# mass_kg : rigid-body mass
# semantic_label: string tag for the vision annotator
objects:
randomization:
seed: 42
max_objects_per_shelf: 4 # 4 target objects spread across shelf X-span
spawn_shelf_indices: [1] # Middle shelf (Z=0.55m) — optimal Franka reach height
margin_x: 0.04
supported_shapes:
cube_small:
family: cube
size: 0.050
width: 0.050
depth: 0.050
height: 0.050
color: [0.90, 0.15, 0.15] # bright red
mass_kg: 0.12
semantic_label: "cube_small"
display_name: "Small Red Cube (50mm)"
cube_medium:
family: cube
size: 0.070
width: 0.070
depth: 0.070
height: 0.070
color: [0.95, 0.50, 0.05] # orange
mass_kg: 0.22
semantic_label: "cube_medium"
display_name: "Medium Orange Cube (70mm)"
cuboid_flat:
family: cuboid
width: 0.060
depth: 0.080
height: 0.040
color: [0.10, 0.30, 0.90] # blue
mass_kg: 0.18
semantic_label: "cuboid_flat"
display_name: "Flat Blue Cuboid (60×80×40mm)"
cuboid_tall:
family: cuboid
width: 0.050
depth: 0.050
height: 0.120
color: [0.10, 0.85, 0.85] # cyan
mass_kg: 0.20
semantic_label: "cuboid_tall"
display_name: "Tall Cyan Cuboid (50×50×120mm)"
cone:
family: cone
radius: 0.028
height: 0.090
width: 0.056
depth: 0.056
color: [0.10, 0.85, 0.85] # cyan
mass_kg: 0.15
semantic_label: "cone"
display_name: "Cyan Cone (r=28mm, h=90mm)"
cuboid_wide:
family: cuboid
width: 0.120
depth: 0.050
height: 0.060
color: [0.85, 0.10, 0.85] # magenta
mass_kg: 0.25
semantic_label: "cuboid_wide"
display_name: "Wide Magenta Cuboid (120×50×60mm)"
cylinder_thin:
family: cylinder
radius: 0.020
height: 0.100
width: 0.040
depth: 0.040
color: [0.10, 0.80, 0.20] # green
mass_kg: 0.10
semantic_label: "cylinder_thin"
display_name: "Thin Green Cylinder (r=20mm, h=100mm)"
cylinder_wide:
family: cylinder
radius: 0.026
height: 0.060
width: 0.052
depth: 0.052
color: [0.95, 0.90, 0.05] # yellow
mass_kg: 0.12
semantic_label: "cylinder_wide"
display_name: "Wide Yellow Cylinder (r=26mm, h=60mm)"
cylinder_tall:
family: cylinder
radius: 0.025
height: 0.140
width: 0.050
depth: 0.050
color: [0.55, 0.10, 0.90] # purple
mass_kg: 0.14
semantic_label: "cylinder_tall"
display_name: "Tall Purple Cylinder (r=25mm, h=140mm)"
inventory_boxes:
enabled: true
shelf_inventory_density: 2 # 2 grey inventory cuboids per non-active shelf
+61
View File
@@ -0,0 +1,61 @@
# Motion Planning and Execution Configuration
# Controls cuMotion RMPflow, collision margins, grasp offsets, and FSM timeouts
motion:
planner_type: "cumotion_rmpflow"
robot_name: "franka"
tool_frame: "panda_hand"
cumotion:
robot_config: "franka"
trajectory_frequency_hz: 60.0
velocity_scaling: 0.85 # Optimized industrial velocity scaling factor
acceleration_scaling: 0.85 # Fluid acceleration scaling factor
jerk_limit: 150.0 # rad/s^3 jerk limit for smooth motion profiles
cspace_tolerance_rad: 0.015 # Convergence threshold in c-space
rmpflow:
max_iterations: 150
convergence_threshold_pos: 0.015 # 1.5 cm position tolerance
convergence_threshold_ori: 0.05 # radians orientation tolerance
step_size: 0.016666666666666666
maximum_substep_size: 0.00334
collision_avoidance:
tracked_api: "PHYSICS_COLLISION"
obstacle_margin_m: 0.025
shelf_vertical_margin_m: 0.035
corridor_y_boundary_m: 0.380 # Widened corridor rack edge clearance
exclude_prim_paths:
- "/World/Franka"
- "/World/GroundPlane"
trajectory_segments:
approach_standoff:
standoff_distance_m: 0.100
max_duration_s: 2.0
grasp_approach:
max_duration_s: 1.2
post_grasp_lift:
lift_height_m: 0.070 # 7cm vertical lift preserves upper shelf clearance
max_duration_s: 1.2
cross_corridor_transfer:
transit_height_m: 0.750 # Central corridor transit height
max_duration_s: 2.5
placement_deposit:
deposit_height_offset_m: 0.020
max_duration_s: 1.5
retract_to_home:
retract_height_m: 0.150
max_duration_s: 2.0
fsm_timing:
warmup_frames: 30
pre_grasp_frames: 90
approach_frames: 60
grasp_frames: 40
lift_frames: 50
transport_frames: 120
lower_frames: 60
release_frames: 40
retract_frames: 60
+42
View File
@@ -0,0 +1,42 @@
# Robot Configuration
# Defines Franka Panda articulation, gripper parameters, and base mounting
robot:
type: "franka"
name: "franka_panda"
prim_path: "/World/Franka"
base_position: [0.0, 0.0, 0.0]
base_orientation_euler: [0.0, 0.0, 0.0]
usd_cloud_rel_path: "/Isaac/Robots_Multiphysics/FrankaRobotics/FrankaPanda/franka/franka.usda"
usd_fallback_rel_path: "/Isaac/Robots/FrankaRobotics/FrankaPanda/franka.usd"
arm_joints:
- "panda_joint1"
- "panda_joint2"
- "panda_joint3"
- "panda_joint4"
- "panda_joint5"
- "panda_joint6"
- "panda_joint7"
gripper:
type: "parallel_jaw"
finger_joints:
- "panda_finger_joint1"
- "panda_finger_joint2"
open_position: 0.04 # Each finger 0.04m (total 0.08m aperture)
closed_position: 0.00
grasp_force: 50.0 # Newtons
ee_link_name: "panda_hand"
ee_fingertip_links:
- "panda_leftfinger"
- "panda_rightfinger"
home_joint_positions:
panda_joint1: 0.0
panda_joint2: -0.569
panda_joint3: 0.0
panda_joint4: -2.810
panda_joint5: 0.0
panda_joint6: 3.037
panda_joint7: 0.741
+37
View File
@@ -0,0 +1,37 @@
# Simulation Configuration
# Controls physics, rendering, lifecycle, and stepping parameters
simulation:
physics_dt: 0.016666666666666666 # 60 Hz physics step
rendering_dt: 0.03333333333333333 # 30 Hz sensor update
physics_device: "cuda" # GPU physics pipeline
gravity: [0.0, 0.0, -9.81]
warmup_frames: 120 # Extended from 60→120 so all spawned objects settle on shelves
headless: false
stage_units_in_meters: 1.0
world_prim_path: "/World"
default_ground_plane: true
dome_light:
intensity: 1200.0
color: [1.0, 1.0, 1.0]
# PhysX scene solver — prevents object vibration and shelf micro-bounce
# Applied programmatically in CoreSimulationManager.setup_stage()
physx_solver:
solver_type: "TGS" # Temporal Gauss-Seidel: more stable than PGS for stacked objects
bounce_threshold: 0.002 # 2mm bounce threshold — suppresses micro-bounces
friction_offset_threshold: 0.001
friction_correlation_distance: 0.0005
# Per-rigid-body defaults (applied by ObjectGenerator to each spawned object)
rigid_body_defaults:
angular_damping: 20.0 # Prevents rotational drift from solver residuals
linear_damping: 10.0 # Prevents translational drift
sleep_threshold: 0.001 # Objects sleep at <1mm/s — eliminates micro-vibration
stabilization_threshold: 0.0005
solver_position_iterations: 16 # High iterations → tight contact resolution
solver_velocity_iterations: 4
logging:
task_log_path: "outputs/simulation_tasks.csv"
+23
View File
@@ -0,0 +1,23 @@
# RTX Camera and Vision Perception Configuration
camera:
prim_path: "/World/Sensors/OverheadCamera"
resolution: [640, 480]
frequency_hz: 30.0
position: [0.46, -0.12, 0.82] # Elevated perspective viewing through shelf opening
look_at: [0.46, -0.50, 0.58] # Aimed directly at Shelf 1 objects (Z=0.58m)
focal_length_mm: 16.0 # 16mm wide-angle robotics camera lens
horizontal_aperture_mm: 20.955
vertical_aperture_mm: 15.716
clipping_range: [0.05, 10.0] # Near clipping plane 5cm ensures close objects not clipped
annotators:
- "rgb"
- "distance_to_image_plane"
- "semantic_segmentation"
perception:
depth_min_threshold_m: 0.10
depth_max_threshold_m: 2.50
coordinate_system: "ROS_CONVENTION" # X-Right, Y-Down, Z-Forward -> converted to USD World
pca_orientation_estimation: true
min_point_cloud_cluster_size: 20