yuchi233 commited on
Commit
0cc25df
·
verified ·
1 Parent(s): 86b57ca

Upload README_zh.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README_zh.md +31 -1
README_zh.md CHANGED
@@ -118,6 +118,7 @@ discoverse.collections.models.discoverse_models
118
  │ ├── licenses.yaml # license 字典
119
  │ └── sources.yaml # 来源与候选第三方来源
120
  └── scripts/
 
121
  ├── scaffold_convex_decomposition.py
122
  ├── download_from_hf.sh
123
  ├── upload_to_hf.sh
@@ -234,6 +235,8 @@ assets/robocasa/derived/convex_decompositions/dishwashers/Dishwasher031_vhacd_v1
234
  │ │ └── part_001.obj
235
  │ └── rack0/
236
  ├── mjcf/
 
 
237
  │ └── convex_collision_include.xml
238
  └── logs/
239
  └── decomposition.json
@@ -244,9 +247,36 @@ assets/robocasa/derived/convex_decompositions/dishwashers/Dishwasher031_vhacd_v1
244
  - `metadata.yaml`:记录派生资产 ID、license、来源、算法、参数文件、验证状态
245
  - `source_refs.yaml`:记录对应的原始 asset、原始 XML、原始 mesh 路径
246
  - `meshes/`:保存凸分解后的 convex pieces
247
- - `mjcf/convex_collision_include.xml`:可选,保存 MuJoCo collision include,不直接改原始 `model.xml`
 
 
248
  - `logs/decomposition.json`:记录 VHACD / CoACD 等工具版本、参数、输入输出 hash
249
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
250
  完整规范见:
251
 
252
  ```text
 
118
  │ ├── licenses.yaml # license 字典
119
  │ └── sources.yaml # 来源与候选第三方来源
120
  └── scripts/
121
+ ├── run_convex_decomposition.py
122
  ├── scaffold_convex_decomposition.py
123
  ├── download_from_hf.sh
124
  ├── upload_to_hf.sh
 
235
  │ │ └── part_001.obj
236
  │ └── rack0/
237
  ├── mjcf/
238
+ │ ├── convex_assets_include.xml
239
+ │ ├── convex_geoms_include.xml
240
  │ └── convex_collision_include.xml
241
  └── logs/
242
  └── decomposition.json
 
247
  - `metadata.yaml`:记录派生资产 ID、license、来源、算法、参数文件、验证状态
248
  - `source_refs.yaml`:记录对应的原始 asset、原始 XML、原始 mesh 路径
249
  - `meshes/`:保存凸分解后的 convex pieces
250
+ - `mjcf/convex_assets_include.xml`: MJCF 顶层 include,用来注册 convex part mesh
251
+ - `mjcf/convex_geoms_include.xml`:在目标 body 内 include,用来添加 collision geoms
252
+ - `mjcf/convex_collision_include.xml`:带 wrapper body 的独立预览/便利 include
253
  - `logs/decomposition.json`:记录 VHACD / CoACD 等工具版本、参数、输入输出 hash
254
 
255
+ 实际运行 CoACD 凸分解:
256
+
257
+ ```bash
258
+ pip install trimesh coacd
259
+
260
+ python scripts/run_convex_decomposition.py \
261
+ assets/robocasa/raw/fixtures/dishwashers/Dishwasher031 \
262
+ --mesh visuals/door.obj \
263
+ --mesh visuals/rack0.obj \
264
+ --variant coacd_v1 \
265
+ --register-manifest
266
+ ```
267
+
268
+ MuJoCo 接入方式:
269
+
270
+ ```xml
271
+ <!-- MJCF 顶层 -->
272
+ <include file="path/to/mjcf/convex_assets_include.xml"/>
273
+
274
+ <!-- 目标 body 内部 -->
275
+ <include file="path/to/mjcf/convex_geoms_include.xml"/>
276
+ ```
277
+
278
+ 不要直接修改 `raw/` 里的 `model.xml`。如果要替换原始 collision,应该在下游任务工程里选择性 include 派生 collision 文件。
279
+
280
  完整规范见:
281
 
282
  ```text