Skip to content

Commit a256674

Browse files
authored
feat(docs): Improve docstrings across the codebase and docs. (#56)
1 parent cd94669 commit a256674

28 files changed

+2160
-267
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
```sh
3838
git clone https://github.com/HorizonRobotics/EmbodiedGen.git
3939
cd EmbodiedGen
40-
git checkout v0.1.5
40+
git checkout v0.1.6
4141
git submodule update --init --recursive --progress
4242
conda create -n embodiedgen python=3.10.13 -y # recommended to use a new env.
4343
conda activate embodiedgen

apps/visualize_asset.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131

3232
import gradio as gr
3333
import pandas as pd
34-
import yaml
3534
from app_style import custom_theme, lighting_css
35+
from embodied_gen.utils.tags import VERSION
3636

3737
try:
3838
from embodied_gen.utils.gpt_clients import GPT_CLIENT as gpt_client
@@ -48,7 +48,6 @@
4848

4949

5050
# --- Configuration & Data Loading ---
51-
VERSION = "v0.1.5"
5251
RUNNING_MODE = "local" # local or hf_remote
5352
CSV_FILE = "dataset_index.csv"
5453

docs/install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ hide:
77
```sh
88
git clone https://github.com/HorizonRobotics/EmbodiedGen.git
99
cd EmbodiedGen
10-
git checkout v0.1.5
10+
git checkout v0.1.6
1111
git submodule update --init --recursive --progress
1212
conda create -n embodiedgen python=3.10.13 -y # recommended to use a new env.
1313
conda activate embodiedgen

docs/tutorials/any_simulators.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ Leverage **EmbodiedGen-generated assets** with *accurate physical collisions* an
3535
## 🧱 Example: Conversion to Target Simulator
3636

3737
```python
38-
from embodied_gen.data.asset_converter import SimAssetMapper, cvt_embodiedgen_asset_to_anysim
38+
from embodied_gen.data.asset_converter import cvt_embodiedgen_asset_to_anysim
39+
from embodied_gen.utils.enum import AssetType, SimAssetMapper
3940
from typing import Literal
4041

4142
simulator_name: Literal[
@@ -52,6 +53,10 @@ dst_asset_path = cvt_embodiedgen_asset_to_anysim(
5253
"path1_to_embodiedgen_asset/asset.urdf",
5354
"path2_to_embodiedgen_asset/asset.urdf",
5455
],
56+
target_dirs=[
57+
"path1_to_target_dir/asset.usd",
58+
"path2_to_target_dir/asset.usd",
59+
],
5560
target_type=SimAssetMapper[simulator_name],
5661
source_type=AssetType.MESH,
5762
overwrite=True,

0 commit comments

Comments
 (0)