CLI Reference#
EmbodiChain provides a unified CLI via python -m embodichain <subcommand>.
Asset Download#
List and download simulation assets (robots, objects, scenes, etc.).
# List all available assets
python -m embodichain.data list
# List assets in a category
python -m embodichain.data list --category robot
# Download a specific asset
python -m embodichain.data download --name CobotMagicArm
# Download all assets in a category
python -m embodichain.data download --category robot
# Download everything
python -m embodichain.data download --all
Preview Asset#
Preview a USD or mesh asset in the simulation without writing code.
# Preview a rigid object
python -m embodichain preview-asset \
--asset_path /path/to/sugar_box.usda \
--asset_type rigid \
--preview
# Preview an articulation
python -m embodichain preview-asset \
--asset_path /path/to/robot.usd \
--asset_type articulation \
--preview
# Headless check (no render window)
python -m embodichain preview-asset \
--asset_path /path/to/asset.usda \
--headless
Arguments#
Argument |
Default |
Description |
|---|---|---|
|
(required) |
Path to the asset file ( |
|
|
Asset type: |
|
(from filename) |
Unique identifier for the asset in the scene |
|
|
Initial position |
|
|
Initial rotation in degrees |
|
|
Body type for rigid objects: |
|
|
Use physical properties from the USD file |
|
|
Fix the base of articulations |
|
|
Simulation device |
|
|
Run without rendering window |
|
|
Enable ray tracing |
|
|
Enter interactive embed mode after loading |
Preview Mode#
When --preview is enabled, an interactive REPL is available:
p— enter an IPython embed session withsimandassetin scopes <N>— step the simulation N times (default 10)q— quit
Run Environment#
Launch a Gymnasium environment for data generation or interactive preview.
# Run an environment with a gym config file
python -m embodichain run-env --gym_config path/to/config.json
# Run with multiple environments on GPU
python -m embodichain run-env \
--gym_config config.json \
--num_envs 4 \
--device cuda \
--gpu_id 0
# Preview mode for interactive development
python -m embodichain run-env --gym_config config.json --preview
# Headless execution
python -m embodichain run-env --gym_config config.json --headless
Arguments#
Argument |
Default |
Description |
|---|---|---|
|
(required) |
Path to gym config file |
|
|
Path to action config file |
|
|
Number of parallel environments |
|
|
Device ( |
|
|
Run in headless mode |
|
|
Use RTX rendering backend |
|
|
Arena space size |
|
|
GPU ID to use |
|
|
Enter interactive preview mode |
|
|
Filter out visual randomization |
|
|
Filter out dataset saving |
Preview Mode#
When --preview is enabled, an interactive REPL is available:
p— enter an IPython embed session withenvin scopeq— quit