Skip to content

Conversation

@sahil-tgs
Copy link

@sahil-tgs sahil-tgs commented Sep 27, 2025

Previous PR: #383
This PR combines features from previous PR and new features like xml-injection and mesh-extraction features.

Working Features

  • XML Injection: Support for inline MJCF XML definitions in .scenic files to directly create objects in Robosuite environments
  • Mesh Extraction: Automatic conversion of inline/file-based XML to mesh files for Scenic geometric awareness

Known Limitations

  • Minor size inconsistencies between Scenic internal viewer and Robosuite (does not significantly affect object positioning)
  • Custom arenas are not currently functional (was added in xml-injection for user-specified custom environments, support to be added later)
  • Custom objects work as part of the basic package

main files to review

  • src/scenic/simulators/robosuite/simulator.py
  • src/scenic/simulators/robosuite/model.scenic

Testing

Utility scripts in utils/:

  • src/scenic/simulators/robosuite/utils/mjcf_to_mesh.py: Standalone MJCF→GLB converter
  • src/scenic/simulators/robosuite/utils/default.scenic: scenic native test script

Example files demonstrate:

  • examples/robosuite/mesh_test.scenic: Custom STL mesh loading
  • examples/robosuite/file_xml.scenic: External XML file references
  • examples/robosuite/custom_mjcf_table.scenic: Inline XML primitives

sahil-tgs and others added 3 commits September 29, 2025 17:30
Add getProperties() implementation to fetch position, orientation,
and robot state from MuJoCo. Partially addresses velocity tracking
(works for robots, not for free-joint objects).

Fixes: Dynamic property updates for yaw/pitch/roll/position
Known issue: Velocity for manipulable objects needs qvel access fix
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.

1 participant