Visualizing Articulated Assets#
This document explains how to visualize articulated assets generated across different simulation environments and seeds. Currently, MuJoCo is the only visualization supported, with plans to add more simulators in the near future.
MuJoCo Visualization#
The MuJoCo visualizer creates videos showing how joints move, highlighting parent and child bodies.
Basic Usage#
To visualize an asset in MuJoCo run from root of repo:
python -m infinigen.tools.sim.visualizer --asset_name door --nr 3
A list of available assets can be seen in infinigen/assets/sim_objects/mapping.py.
This command will in one go:
For the seeds 0, 1, 2, generate the assets and export to xml.
Render animations (mp4) for each joint in the asset
Generate an HTML file to view all animations in one file.
Command Line Options#
Option |
Description |
|---|---|
|
Name of the asset to render (e.g., “door”, “lamp”). Should match keys found in |
|
Number of seeds. Will export from |
|
Flag. Stores true. Use random seeds instead of sequential numbers. Use together with |
|
Specific seed values to use (e.g., |
|
Directory to save outputs (default: |
|
Transparency level for parent geometries (0-1) |
|
Use collision meshes instead of visual meshes. Defaults to using only visual, no collision meshes. |
|
Remove existing files before generating new ones. |
|
Use cached XML files if available. By default exports asset again. If this flag is set, will use existing xml file if available. |
Viewing Results#
After rendering, open the generated HTML file in brower:
# Example path: src/infinigen/tools/sim/tmp/vis_door_0_1_2.html
The interface provides:
Collapsible sections for each seed
Joint animations with different camera views
Success/failure indicators for rendering issues
Vis 2#
Coming soon
Vis 3#
Coming soon