Skip to content

Add scene_prep utilities and update Isaac Sim launch scripts#324

Merged
andrewjong merged 2 commits intomainfrom
add-scene-prep-utilities
Mar 20, 2026
Merged

Add scene_prep utilities and update Isaac Sim launch scripts#324
andrewjong merged 2 commits intomainfrom
add-scene-prep-utilities

Conversation

@krrishj18
Copy link
Copy Markdown
Contributor

Summary

  • Add simulation/isaac-sim/utils/scene_prep.py with four reusable helpers: scale_stage_prim, add_colliders, add_dome_light, save_scene_as_contained_usd
  • Update example_one and example_two launch scripts to use scene_prep for environment scaling, collision setup, and lighting
  • Fix two_drone_scene_import
  • Update write-isaac-sim-scene SKILL.md to document and reference scene_prep utilities

Add simulation/isaac-sim/utils/scene_prep.py with four helpers:
- scale_stage_prim: apply uniform XYZ scale to a stage prim
- add_colliders: recursively apply CollisionAPI to all mesh prims
- add_dome_light: add/update a dome light (intensity=3500, exposure=-3)
- save_scene_as_contained_usd: collect Nucleus assets into a local directory

Update example_one and example_two launch scripts to use scene_prep
for environment scaling, collision setup, and lighting instead of
inline UsdLux calls. Fix two_drone_scene_import.

Update write-isaac-sim-scene SKILL.md to reference scene_prep utilities
and ignore prepare_scene.py in .gitignore.
@andrewjong andrewjong self-assigned this Mar 20, 2026
@andrewjong andrewjong self-requested a review March 20, 2026 21:39
@andrewjong andrewjong merged commit 4e79937 into main Mar 20, 2026
@andrewjong andrewjong deleted the add-scene-prep-utilities branch March 20, 2026 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants