Skip to content

Commit ae137cb

Browse files
committed
add assets list api
1 parent 667c22d commit ae137cb

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed

pyrfuniverse/envs/base_env.py

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -396,27 +396,14 @@ def InstanceObject(
396396
397397
BaseAttr:
398398
"Empty",
399+
"Coordinate",
399400
400401
GameObjectAttr:
401-
Basic Objects:
402-
"GameObject_Box",
403-
"GameObject_Capsule",
404-
"GameObject_Cylinder",
405-
"GameObject_Sphere",
406-
"GameObject_Quad",
407-
IGbison Meshes:
408-
"Hainesburg_mesh_texture",
409-
"Halfway_mesh_texture",
410-
"Hallettsville_mesh_texture",
411-
"Hambleton_mesh_texture",
412-
"Hammon_mesh_texture",
413-
"Hatfield_mesh_texture",
414-
"Haxtun_mesh_texture",
415-
"Haymarket_mesh_texture",
416-
"Hendrix_mesh_texture",
417-
"Hercules_mesh_texture",
418-
"Highspire_mesh_texture",
419-
"Hitchland_mesh_texture",
402+
"GameObject_Box",
403+
"GameObject_Capsule",
404+
"GameObject_Cylinder",
405+
"GameObject_Sphere",
406+
"GameObject_Quad",
420407
421408
ColliderAttr:
422409
"Collider_Box",
@@ -428,8 +415,9 @@ def InstanceObject(
428415
429416
RigidbodyAttr:
430417
Basic Objects:
418+
"MassPoint",
431419
"Rigidbody_Box",
432-
"GameObject_Capsule",
420+
"Rigidbody_Capsule",
433421
"Rigidbody_Cylinder",
434422
"Rigidbody_Sphere",
435423
YCB dataset:
@@ -440,18 +428,22 @@ def InstanceObject(
440428
"allegro_hand_right",
441429
"bhand",
442430
"svh",
431+
"mano",
443432
"robotiq_arg2f_85_model",
444433
"dh_robotics_ag95_gripper",
445434
"shadowhand",
435+
"shadow_e3m5",
446436
robot arm:
447437
"kinova_gen3",
448438
"ur5",
439+
"ur10",
449440
"flexivArm",
450441
"tobor_r300",
451-
robot arm and gripper:
442+
robot arm with gripper:
452443
"franka_panda",
453444
"kinova_gen3_robotiq85",
454445
"ur5_robotiq85",
446+
"ur10_shadow",
455447
"tobor_r300_ag95_ag95",
456448
"tobor_r300_robotiq85_robotiq85",
457449
"flexivArm_ag95",
@@ -484,6 +476,12 @@ def InstanceObject(
484476
self.attrs[id] = attr_type(self, id)
485477
return self.attrs[id]
486478

479+
def GetBuiltinAssetsList(self) -> None:
480+
"""
481+
Get built-in assets list that can be created by InstanceObject, After calling this method and stepping once, the result will be saved in env.data['builtin_assets_list']
482+
"""
483+
self._send_env_data("GetBuiltinAssetsList")
484+
487485
def LoadURDF(
488486
self, path: str, id: int = None, native_ik: bool = False, axis: str = "y"
489487
) -> attr.ControllerAttr:

0 commit comments

Comments
 (0)