Spaces:
Sleeping
Sleeping
Update models/dyn_model_act_v2.py
Browse files- models/dyn_model_act_v2.py +15 -15
models/dyn_model_act_v2.py
CHANGED
@@ -156,21 +156,21 @@ class Visual:
|
|
156 |
self.visual_xyz = visual_xyz
|
157 |
self.visual_rpy = visual_rpy
|
158 |
self.mesh_nm = geometry_mesh_fn.split("/")[-1].split(".")[0]
|
159 |
-
mesh_root = "
|
160 |
-
if not os.path.exists(mesh_root):
|
161 |
-
|
162 |
-
if "shadow" in urdf_fn and "left" in urdf_fn:
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
elif "shadow" in urdf_fn:
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
elif "redmax" in urdf_fn:
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
|
175 |
self.mesh_root = mesh_root
|
176 |
geometry_mesh_fn = geometry_mesh_fn.replace(".dae", ".obj")
|
|
|
156 |
self.visual_xyz = visual_xyz
|
157 |
self.visual_rpy = visual_rpy
|
158 |
self.mesh_nm = geometry_mesh_fn.split("/")[-1].split(".")[0]
|
159 |
+
mesh_root = "./rsc/mano"
|
160 |
+
# if not os.path.exists(mesh_root):
|
161 |
+
# mesh_root = "/data/xueyi/diffsim/NeuS/rsc/mano"
|
162 |
+
# if "shadow" in urdf_fn and "left" in urdf_fn:
|
163 |
+
# mesh_root = "/home/xueyi/diffsim/NeuS/rsc/shadow_hand_description_left"
|
164 |
+
# if not os.path.exists(mesh_root):
|
165 |
+
# mesh_root = "/root/diffsim/quasi-dyn/rsc/shadow_hand_description_left"
|
166 |
+
# elif "shadow" in urdf_fn:
|
167 |
+
# mesh_root = "/home/xueyi/diffsim/NeuS/rsc/shadow_hand_description"
|
168 |
+
# if not os.path.exists(mesh_root):
|
169 |
+
# mesh_root = "/root/diffsim/quasi-dyn/rsc/shadow_hand_description"
|
170 |
+
# elif "redmax" in urdf_fn:
|
171 |
+
# mesh_root = "/home/xueyi/diffsim/NeuS/rsc/redmax_hand"
|
172 |
+
# if not os.path.exists(mesh_root):
|
173 |
+
# mesh_root = "/root/diffsim/quasi-dyn/rsc/redmax_hand"
|
174 |
|
175 |
self.mesh_root = mesh_root
|
176 |
geometry_mesh_fn = geometry_mesh_fn.replace(".dae", ".obj")
|