Initial upload of EgoVLA sim assets
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +2 -0
- __init__.py +1 -0
- bowl/001.usd +3 -0
- bowl/002.usd +3 -0
- bowl/003.usd +3 -0
- bowl/__init__.py +1 -0
- bowl/bowl.py +26 -0
- bowl/brass_bowl.usd +3 -0
- can/__init__.py +2 -0
- can/can_fanta.py +25 -0
- can/can_fanta.usd +3 -0
- can/can_sprite.py +25 -0
- can/can_sprite.usd +3 -0
- can/fenda_texture.png +3 -0
- can/sprite_texture.jpg +3 -0
- container/__init__.py +4 -0
- container/container_2x3.py +16 -0
- container/container_2x3.usd +3 -0
- container/container_3x4.py +16 -0
- container/container_3x4.usd +3 -0
- container/container_plastic.py +16 -0
- container/container_plastic.usd +3 -0
- container/glass_jar.py +16 -0
- container/glass_jar.usd +3 -0
- cube/__init__.py +1 -0
- cube/cube.py +29 -0
- cube/cube.usd +3 -0
- drawer/001.usd +3 -0
- drawer/002.usd +3 -0
- drawer/003.usd +3 -0
- drawer/__init__.py +1 -0
- drawer/drawer.py +49 -0
- glassware/__init__.py +1 -0
- glassware/glassaware.py +27 -0
- glassware/glassware.usd +3 -0
- h1/__init__.py +1 -0
- h1/h1_inspire.py +204 -0
- h1/h1_inspire_convex_decomp.usd +3 -0
- laptop/001.usd +3 -0
- laptop/002.usd +3 -0
- laptop/003.usd +3 -0
- laptop/__init__.py +1 -0
- laptop/laptop.py +57 -0
- laptop/notebook.tga +3 -0
- laptop/notebook.usd +3 -0
- marker/__init__.py +1 -0
- marker/marker.py +17 -0
- marker/marker.usd +3 -0
- mug/001.usd +3 -0
- mug/002.usd +3 -0
.gitattributes
CHANGED
|
@@ -57,3 +57,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 57 |
# Video files - compressed
|
| 58 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 57 |
# Video files - compressed
|
| 58 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
*.usd filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
*.tga filter=lfs diff=lfs merge=lfs -text
|
__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
from .h1 import *
|
bowl/001.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:30d81fdd4eb912a482f2c016c8303e938fb7f4ce2247a9776989e66ec6cef07e
|
| 3 |
+
size 3332392
|
bowl/002.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0379f452c6a15282b24edcb556921630fc54544ab3a80fd82d8e362eebc580b0
|
| 3 |
+
size 1954725
|
bowl/003.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5a2cd397860bb534cd392d91aaa3aa8be588e86b55933bcef4daafd88d525686
|
| 3 |
+
size 3115706
|
bowl/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
from .bowl import BOWL_CFG
|
bowl/bowl.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import random
|
| 3 |
+
from omni.isaac.lab.assets.rigid_object.rigid_object_cfg import RigidObjectCfg
|
| 4 |
+
import omni.isaac.lab.sim as sim_utils
|
| 5 |
+
|
| 6 |
+
current_file_path = os.path.abspath(__file__)
|
| 7 |
+
parent_dir_path = os.path.dirname(current_file_path)
|
| 8 |
+
|
| 9 |
+
BOWL_CFG = RigidObjectCfg(
|
| 10 |
+
prim_path="{ENV_REGEX_NS}/bowl",
|
| 11 |
+
spawn=sim_utils.UsdFileCfg(
|
| 12 |
+
usd_path=f"{parent_dir_path}/brass_bowl.usd",
|
| 13 |
+
activate_contact_sensors=False,
|
| 14 |
+
rigid_props=sim_utils.RigidBodyPropertiesCfg(
|
| 15 |
+
solver_position_iteration_count=16,
|
| 16 |
+
solver_velocity_iteration_count=1,
|
| 17 |
+
max_angular_velocity=10.0,
|
| 18 |
+
max_linear_velocity=10.0,
|
| 19 |
+
max_depenetration_velocity=10.0,
|
| 20 |
+
kinematic_enabled=False,
|
| 21 |
+
),
|
| 22 |
+
mass_props=sim_utils.MassPropertiesCfg(mass=1.5),
|
| 23 |
+
collision_props=sim_utils.CollisionPropertiesCfg(),
|
| 24 |
+
),
|
| 25 |
+
init_state=RigidObjectCfg.InitialStateCfg(pos=(1, 0.0, 0.0), rot=(1, 0, 0, 0)),
|
| 26 |
+
)
|
bowl/brass_bowl.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f522e98006843713a658fd9f3484db3d9051e6a830c719989e605e96b26aaba9
|
| 3 |
+
size 1642019
|
can/__init__.py
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from .can_sprite import CAN_SPRITE_CFG
|
| 2 |
+
from .can_fanta import CAN_FANTA_CFG
|
can/can_fanta.py
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
from omni.isaac.lab.assets.rigid_object.rigid_object_cfg import RigidObjectCfg
|
| 3 |
+
import omni.isaac.lab.sim as sim_utils
|
| 4 |
+
|
| 5 |
+
current_file_path = os.path.abspath(__file__)
|
| 6 |
+
parent_dir_path = os.path.dirname(current_file_path)
|
| 7 |
+
|
| 8 |
+
CAN_FANTA_CFG = RigidObjectCfg(
|
| 9 |
+
prim_path="{ENV_REGEX_NS}/Can_Fanta",
|
| 10 |
+
spawn=sim_utils.UsdFileCfg(
|
| 11 |
+
usd_path=f"{parent_dir_path}/can_fanta.usd",
|
| 12 |
+
activate_contact_sensors=False,
|
| 13 |
+
rigid_props=sim_utils.RigidBodyPropertiesCfg(
|
| 14 |
+
solver_position_iteration_count=16,
|
| 15 |
+
solver_velocity_iteration_count=1,
|
| 16 |
+
max_angular_velocity=1000.0,
|
| 17 |
+
max_linear_velocity=1000.0,
|
| 18 |
+
max_depenetration_velocity=10000.0,
|
| 19 |
+
kinematic_enabled=False,
|
| 20 |
+
),
|
| 21 |
+
mass_props=sim_utils.MassPropertiesCfg(mass=0.35),
|
| 22 |
+
collision_props=sim_utils.CollisionPropertiesCfg(),
|
| 23 |
+
),
|
| 24 |
+
init_state=RigidObjectCfg.InitialStateCfg(pos=(1, 0.0, 0.0), rot=(1, 0, 0, 0)),
|
| 25 |
+
)
|
can/can_fanta.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c8e61c0393e332b3c35d8f352ff9b5d1df92a8d0bed07c3c31cc0e1850c73947
|
| 3 |
+
size 2688120
|
can/can_sprite.py
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
from omni.isaac.lab.assets.rigid_object.rigid_object_cfg import RigidObjectCfg
|
| 3 |
+
import omni.isaac.lab.sim as sim_utils
|
| 4 |
+
|
| 5 |
+
current_file_path = os.path.abspath(__file__)
|
| 6 |
+
parent_dir_path = os.path.dirname(current_file_path)
|
| 7 |
+
|
| 8 |
+
CAN_SPRITE_CFG = RigidObjectCfg(
|
| 9 |
+
prim_path="{ENV_REGEX_NS}/Can_Sprite",
|
| 10 |
+
spawn=sim_utils.UsdFileCfg(
|
| 11 |
+
usd_path=f"{parent_dir_path}/can_sprite.usd",
|
| 12 |
+
activate_contact_sensors=False,
|
| 13 |
+
rigid_props=sim_utils.RigidBodyPropertiesCfg(
|
| 14 |
+
solver_position_iteration_count=16,
|
| 15 |
+
solver_velocity_iteration_count=1,
|
| 16 |
+
max_angular_velocity=1000.0,
|
| 17 |
+
max_linear_velocity=1000.0,
|
| 18 |
+
max_depenetration_velocity=10000.0,
|
| 19 |
+
kinematic_enabled=False,
|
| 20 |
+
),
|
| 21 |
+
mass_props=sim_utils.MassPropertiesCfg(mass=0.35),
|
| 22 |
+
collision_props=sim_utils.CollisionPropertiesCfg(),
|
| 23 |
+
),
|
| 24 |
+
init_state=RigidObjectCfg.InitialStateCfg(pos=(1, 0.0, 0.0), rot=(1, 0, 0, 0)),
|
| 25 |
+
)
|
can/can_sprite.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a7b0e0969c01d80aeabc574690dac7f7f70781e05a13b697d6734e43a5c0b06e
|
| 3 |
+
size 2686155
|
can/fenda_texture.png
ADDED
|
Git LFS Details
|
can/sprite_texture.jpg
ADDED
|
|
Git LFS Details
|
container/__init__.py
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from .container_2x3 import CONTAINER_2X3_CFG
|
| 2 |
+
from .container_3x4 import CONTAINER_3X4_CFG
|
| 3 |
+
from .container_plastic import CONTAINER_PLASTIC_CFG
|
| 4 |
+
from .glass_jar import GLASS_JAR_CFG
|
container/container_2x3.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
from omni.isaac.lab.assets.rigid_object.rigid_object_cfg import RigidObjectCfg
|
| 3 |
+
import omni.isaac.lab.sim as sim_utils
|
| 4 |
+
|
| 5 |
+
current_file_path = os.path.abspath(__file__)
|
| 6 |
+
parent_dir_path = os.path.dirname(current_file_path)
|
| 7 |
+
|
| 8 |
+
CONTAINER_2X3_CFG = RigidObjectCfg(
|
| 9 |
+
prim_path="{ENV_REGEX_NS}/Container_2x3",
|
| 10 |
+
spawn=sim_utils.UsdFileCfg(
|
| 11 |
+
usd_path=f"{parent_dir_path}/container_2x3.usd",
|
| 12 |
+
activate_contact_sensors=False,
|
| 13 |
+
collision_props=sim_utils.CollisionPropertiesCfg(),
|
| 14 |
+
),
|
| 15 |
+
init_state=RigidObjectCfg.InitialStateCfg(pos=(1, 0.0, 0.0), rot=(1, 0, 0, 0)),
|
| 16 |
+
)
|
container/container_2x3.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6d03ac8bf1d000c3556a00d4bd3e1db63a5037c693c99335b520dc504adf0974
|
| 3 |
+
size 929698
|
container/container_3x4.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
from omni.isaac.lab.assets.rigid_object.rigid_object_cfg import RigidObjectCfg
|
| 3 |
+
import omni.isaac.lab.sim as sim_utils
|
| 4 |
+
|
| 5 |
+
current_file_path = os.path.abspath(__file__)
|
| 6 |
+
parent_dir_path = os.path.dirname(current_file_path)
|
| 7 |
+
|
| 8 |
+
CONTAINER_3X4_CFG = RigidObjectCfg(
|
| 9 |
+
prim_path="{ENV_REGEX_NS}/Container_3x4",
|
| 10 |
+
spawn=sim_utils.UsdFileCfg(
|
| 11 |
+
usd_path=f"{parent_dir_path}/container_3x4.usd",
|
| 12 |
+
activate_contact_sensors=False,
|
| 13 |
+
collision_props=sim_utils.CollisionPropertiesCfg(),
|
| 14 |
+
),
|
| 15 |
+
init_state=RigidObjectCfg.InitialStateCfg(pos=(1, 0.0, 0.0), rot=(1, 0, 0, 0)),
|
| 16 |
+
)
|
container/container_3x4.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:368e5553239b3b083f7cafd6d33007fa586eb075a43e8db8ae0826c4fb6bf896
|
| 3 |
+
size 34394
|
container/container_plastic.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
from omni.isaac.lab.assets.rigid_object.rigid_object_cfg import RigidObjectCfg
|
| 3 |
+
import omni.isaac.lab.sim as sim_utils
|
| 4 |
+
|
| 5 |
+
current_file_path = os.path.abspath(__file__)
|
| 6 |
+
parent_dir_path = os.path.dirname(current_file_path)
|
| 7 |
+
|
| 8 |
+
CONTAINER_PLASTIC_CFG = RigidObjectCfg(
|
| 9 |
+
prim_path="{ENV_REGEX_NS}/Container_plastic",
|
| 10 |
+
spawn=sim_utils.UsdFileCfg(
|
| 11 |
+
usd_path=f"{parent_dir_path}/container_plastic.usd",
|
| 12 |
+
activate_contact_sensors=False,
|
| 13 |
+
collision_props=sim_utils.CollisionPropertiesCfg(),
|
| 14 |
+
),
|
| 15 |
+
init_state=RigidObjectCfg.InitialStateCfg(pos=(1, 0.0, 0.0), rot=(1, 0, 0, 0)),
|
| 16 |
+
)
|
container/container_plastic.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:03c81aa9f4a0d9f308c242faf4e8341cd20b527e692bd796e775a59997c80080
|
| 3 |
+
size 187911
|
container/glass_jar.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
from omni.isaac.lab.assets.rigid_object.rigid_object_cfg import RigidObjectCfg
|
| 3 |
+
import omni.isaac.lab.sim as sim_utils
|
| 4 |
+
|
| 5 |
+
current_file_path = os.path.abspath(__file__)
|
| 6 |
+
parent_dir_path = os.path.dirname(current_file_path)
|
| 7 |
+
|
| 8 |
+
GLASS_JAR_CFG = RigidObjectCfg(
|
| 9 |
+
prim_path="{ENV_REGEX_NS}/Glass_Jar",
|
| 10 |
+
spawn=sim_utils.UsdFileCfg(
|
| 11 |
+
usd_path=f"{parent_dir_path}/glass_jar.usd",
|
| 12 |
+
activate_contact_sensors=False,
|
| 13 |
+
collision_props=sim_utils.CollisionPropertiesCfg(),
|
| 14 |
+
),
|
| 15 |
+
init_state=RigidObjectCfg.InitialStateCfg(pos=(1, 0.0, 0.0), rot=(1, 0, 0, 0)),
|
| 16 |
+
)
|
container/glass_jar.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:825b2499d3d54916689269bd950e3a16c04eae9bd9558daf59d3cfd204a54e0d
|
| 3 |
+
size 148674
|
cube/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
from .cube import CUBE_CFG
|
cube/cube.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import random
|
| 3 |
+
from omni.isaac.lab.assets.rigid_object.rigid_object_cfg import RigidObjectCfg
|
| 4 |
+
import omni.isaac.lab.sim as sim_utils
|
| 5 |
+
|
| 6 |
+
current_file_path = os.path.abspath(__file__)
|
| 7 |
+
parent_dir_path = os.path.dirname(current_file_path)
|
| 8 |
+
|
| 9 |
+
MESH_COUNT = 1
|
| 10 |
+
|
| 11 |
+
CUBE_CFG = RigidObjectCfg(
|
| 12 |
+
prim_path="{ENV_REGEX_NS}/cube",
|
| 13 |
+
spawn=sim_utils.UsdFileCfg(
|
| 14 |
+
usd_path=f"{parent_dir_path}/cube.usd",
|
| 15 |
+
activate_contact_sensors=False,
|
| 16 |
+
rigid_props=sim_utils.RigidBodyPropertiesCfg(
|
| 17 |
+
solver_position_iteration_count=16,
|
| 18 |
+
solver_velocity_iteration_count=1,
|
| 19 |
+
max_angular_velocity=10.0,
|
| 20 |
+
max_linear_velocity=50.0,
|
| 21 |
+
max_depenetration_velocity=50.0,
|
| 22 |
+
kinematic_enabled=False,
|
| 23 |
+
),
|
| 24 |
+
mass_props=sim_utils.MassPropertiesCfg(mass=0.05),
|
| 25 |
+
collision_props=sim_utils.CollisionPropertiesCfg(),
|
| 26 |
+
),
|
| 27 |
+
init_state=RigidObjectCfg.InitialStateCfg(pos=(1, 0.0, 0.0), rot=(1, 0, 0, 0)),
|
| 28 |
+
)
|
| 29 |
+
|
cube/cube.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7e8ae6f2da208a07c22e44d67a5427f1ccfe213e811108d812ccd0351ee632c3
|
| 3 |
+
size 14681
|
drawer/001.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c40e92066f9a212c701b9901ad641e3644e14b77939c4f05f9253a1085f2b82c
|
| 3 |
+
size 3460108
|
drawer/002.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6991557abcba1cc9a1d670b9cdb97e95f95d3c7c323f3f98bfe4cfb6acb793fd
|
| 3 |
+
size 3541765
|
drawer/003.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dbc59023b705966bfcb4b37bc076c5a915459d7dc2fa155d251c269f2b03c76b
|
| 3 |
+
size 3357610
|
drawer/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
from .drawer import DRAWER_CFG, DRAWER_JOINT_CFG
|
drawer/drawer.py
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import random
|
| 3 |
+
from omni.isaac.lab.assets.rigid_object.rigid_object_cfg import RigidObjectCfg
|
| 4 |
+
from omni.isaac.lab.assets.articulation.articulation_cfg import ArticulationCfg
|
| 5 |
+
from omni.isaac.lab.managers.scene_entity_cfg import SceneEntityCfg
|
| 6 |
+
import omni.isaac.lab.sim as sim_utils
|
| 7 |
+
|
| 8 |
+
current_file_path = os.path.abspath(__file__)
|
| 9 |
+
parent_dir_path = os.path.dirname(current_file_path)
|
| 10 |
+
|
| 11 |
+
MESH_COUNT = 1
|
| 12 |
+
|
| 13 |
+
DRAWER_CFG = ArticulationCfg(
|
| 14 |
+
prim_path="{ENV_REGEX_NS}/drawer",
|
| 15 |
+
spawn=sim_utils.UsdFileCfg(
|
| 16 |
+
usd_path=f"{parent_dir_path}/003.usd",
|
| 17 |
+
activate_contact_sensors=False,
|
| 18 |
+
rigid_props=sim_utils.RigidBodyPropertiesCfg(
|
| 19 |
+
solver_position_iteration_count=32,
|
| 20 |
+
solver_velocity_iteration_count=4,
|
| 21 |
+
max_angular_velocity=1.0,
|
| 22 |
+
max_linear_velocity=1.0,
|
| 23 |
+
max_depenetration_velocity=1.0,
|
| 24 |
+
kinematic_enabled=False,
|
| 25 |
+
),
|
| 26 |
+
mass_props=sim_utils.MassPropertiesCfg(mass=1.5),
|
| 27 |
+
articulation_props=sim_utils.ArticulationRootPropertiesCfg(
|
| 28 |
+
enabled_self_collisions=False, solver_position_iteration_count=32, solver_velocity_iteration_count=4
|
| 29 |
+
),
|
| 30 |
+
),
|
| 31 |
+
init_state=ArticulationCfg.InitialStateCfg(
|
| 32 |
+
pos=(1, 0, 0),
|
| 33 |
+
joint_pos={
|
| 34 |
+
".*bottom_joint": 0.0,
|
| 35 |
+
".*top_joint": 0.0,
|
| 36 |
+
}
|
| 37 |
+
),
|
| 38 |
+
soft_joint_pos_limit_factor=1.0,
|
| 39 |
+
actuators={},
|
| 40 |
+
)
|
| 41 |
+
|
| 42 |
+
DRAWER_JOINT_CFG = SceneEntityCfg(
|
| 43 |
+
"drawer",
|
| 44 |
+
joint_names=[
|
| 45 |
+
"top_joint",
|
| 46 |
+
"bottom_joint",
|
| 47 |
+
],
|
| 48 |
+
preserve_order=True,
|
| 49 |
+
)
|
glassware/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
from .glassaware import GLASSWARE_CFG
|
glassware/glassaware.py
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import random
|
| 3 |
+
from omni.isaac.lab.assets.rigid_object.rigid_object_cfg import RigidObjectCfg
|
| 4 |
+
import omni.isaac.lab.sim as sim_utils
|
| 5 |
+
|
| 6 |
+
current_file_path = os.path.abspath(__file__)
|
| 7 |
+
parent_dir_path = os.path.dirname(current_file_path)
|
| 8 |
+
|
| 9 |
+
MESH_COUNT = 1
|
| 10 |
+
|
| 11 |
+
GLASSWARE_CFG = RigidObjectCfg(
|
| 12 |
+
prim_path="{ENV_REGEX_NS}/glassware",
|
| 13 |
+
spawn=sim_utils.UsdFileCfg(
|
| 14 |
+
usd_path=f"{parent_dir_path}/glassware.usd",
|
| 15 |
+
activate_contact_sensors=False,
|
| 16 |
+
rigid_props=sim_utils.RigidBodyPropertiesCfg(
|
| 17 |
+
solver_position_iteration_count=16,
|
| 18 |
+
solver_velocity_iteration_count=1,
|
| 19 |
+
max_angular_velocity=10.0,
|
| 20 |
+
max_linear_velocity=50.0,
|
| 21 |
+
max_depenetration_velocity=50.0,
|
| 22 |
+
kinematic_enabled=False,
|
| 23 |
+
),
|
| 24 |
+
collision_props=sim_utils.CollisionPropertiesCfg(),
|
| 25 |
+
),
|
| 26 |
+
init_state=RigidObjectCfg.InitialStateCfg(pos=(1, 0.0, 0.0), rot=(1, 0, 0, 0)),
|
| 27 |
+
)
|
glassware/glassware.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:418478eb4613d5280fcb5bceb3faf7f244e342084d1eb240449862229916eec1
|
| 3 |
+
size 92542
|
h1/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
from .h1_inspire import H1_INSPIRE_CFG, H1_INSPIRE_LEFT_ARM_CFG, H1_INSPIRE_RIGHT_ARM_CFG, H1_INSPIRE_LEFT_HAND_CFG, H1_INSPIRE_RIGHT_HAND_CFG
|
h1/h1_inspire.py
ADDED
|
@@ -0,0 +1,204 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
from omni.isaac.lab.managers.scene_entity_cfg import SceneEntityCfg
|
| 3 |
+
import omni.isaac.lab.sim as sim_utils
|
| 4 |
+
from omni.isaac.lab.assets.articulation.articulation_cfg import ArticulationCfg
|
| 5 |
+
from omni.isaac.lab.actuators import ImplicitActuatorCfg
|
| 6 |
+
|
| 7 |
+
current_file_path = os.path.abspath(__file__)
|
| 8 |
+
parent_dir_path = os.path.dirname(current_file_path)
|
| 9 |
+
|
| 10 |
+
stiffness = 2000
|
| 11 |
+
damping = 75
|
| 12 |
+
|
| 13 |
+
H1_INSPIRE_CFG = ArticulationCfg(
|
| 14 |
+
prim_path="{ENV_REGEX_NS}/Robot",
|
| 15 |
+
spawn=sim_utils.UsdFileCfg(
|
| 16 |
+
usd_path=f"{parent_dir_path}/h1_inspire_convex_decomp.usd",
|
| 17 |
+
activate_contact_sensors=True,
|
| 18 |
+
rigid_props=sim_utils.RigidBodyPropertiesCfg(
|
| 19 |
+
max_depenetration_velocity=100.0,
|
| 20 |
+
solver_position_iteration_count=64,
|
| 21 |
+
solver_velocity_iteration_count=4,
|
| 22 |
+
max_contact_impulse=10,
|
| 23 |
+
),
|
| 24 |
+
articulation_props=sim_utils.ArticulationRootPropertiesCfg(
|
| 25 |
+
enabled_self_collisions=False, solver_position_iteration_count=32, solver_velocity_iteration_count=4
|
| 26 |
+
),
|
| 27 |
+
semantic_tags=[('focus', 'true'), ('category', 'robot')],
|
| 28 |
+
),
|
| 29 |
+
init_state=ArticulationCfg.InitialStateCfg(
|
| 30 |
+
pos=(0.0, 0.0, 1.05),
|
| 31 |
+
joint_pos={
|
| 32 |
+
".*_hip_yaw_joint": 0.0,
|
| 33 |
+
".*_hip_roll_joint": 0.0,
|
| 34 |
+
".*_hip_pitch_joint": -0.0,
|
| 35 |
+
".*_knee_joint": 0.0,
|
| 36 |
+
".*_ankle_pitch_joint": 0.0,
|
| 37 |
+
".*_ankle_roll_joint": 0.0,
|
| 38 |
+
# "torso_joint": 0.0,
|
| 39 |
+
".*_shoulder_pitch_joint": 0.5,
|
| 40 |
+
".*_shoulder_roll_joint": 0.0,
|
| 41 |
+
".*_shoulder_yaw_joint": 0.0,
|
| 42 |
+
".*_elbow_pitch_joint": -1,
|
| 43 |
+
".*_elbow_roll_joint": 0.0,
|
| 44 |
+
".*_wrist_pitch_joint": 0.0,
|
| 45 |
+
".*_wrist_yaw_joint": 0.0,
|
| 46 |
+
".*_index_proximal_joint": 0.0,
|
| 47 |
+
".*_ring_proximal_joint": 0.0,
|
| 48 |
+
".*_index_intermediate_joint": 0.0,
|
| 49 |
+
".*_middle_intermediate_joint": 0.0,
|
| 50 |
+
".*_pinky_intermediate_joint": 0.0,
|
| 51 |
+
".*_ring_intermediate_joint": 0.0,
|
| 52 |
+
".*_thumb_intermediate_joint": 0.0,
|
| 53 |
+
".*_thumb_proximal_yaw_joint": 0.0,
|
| 54 |
+
".*_thumb_proximal_pitch_joint": 0.0,
|
| 55 |
+
".*_thumb_distal_joint": 0.0,
|
| 56 |
+
},
|
| 57 |
+
joint_vel={".*": 0.0},
|
| 58 |
+
),
|
| 59 |
+
soft_joint_pos_limit_factor=1.0,
|
| 60 |
+
actuators={
|
| 61 |
+
"arms": ImplicitActuatorCfg(
|
| 62 |
+
joint_names_expr=[".*_shoulder_pitch_joint", ".*_shoulder_roll_joint", ".*_shoulder_yaw_joint", ".*_elbow_pitch_joint", ".*_elbow_roll_joint", ".*_wrist_pitch_joint", ".*_wrist_yaw_joint"],
|
| 63 |
+
effort_limit=100,
|
| 64 |
+
velocity_limit=1.0,
|
| 65 |
+
stiffness={
|
| 66 |
+
".*_shoulder_pitch_joint": stiffness,
|
| 67 |
+
".*_shoulder_roll_joint": stiffness,
|
| 68 |
+
".*_shoulder_yaw_joint": stiffness,
|
| 69 |
+
".*_elbow_pitch_joint": stiffness,
|
| 70 |
+
".*_elbow_roll_joint": stiffness,
|
| 71 |
+
".*_wrist_pitch_joint": stiffness,
|
| 72 |
+
".*_wrist_yaw_joint": stiffness,
|
| 73 |
+
},
|
| 74 |
+
damping={
|
| 75 |
+
".*_shoulder_pitch_joint": damping,
|
| 76 |
+
".*_shoulder_roll_joint": damping,
|
| 77 |
+
".*_shoulder_yaw_joint": damping,
|
| 78 |
+
".*_elbow_pitch_joint": damping,
|
| 79 |
+
".*_elbow_roll_joint": damping,
|
| 80 |
+
".*_wrist_pitch_joint": damping,
|
| 81 |
+
".*_wrist_yaw_joint": damping,
|
| 82 |
+
},
|
| 83 |
+
),
|
| 84 |
+
"hands": ImplicitActuatorCfg(
|
| 85 |
+
joint_names_expr=[".*_index_proximal_joint", ".*_middle_proximal_joint", ".*_pinky_proximal_joint",
|
| 86 |
+
".*_ring_proximal_joint", ".*_index_intermediate_joint", ".*_middle_intermediate_joint",
|
| 87 |
+
".*_pinky_intermediate_joint", ".*_ring_intermediate_joint", ".*_thumb_intermediate_joint",
|
| 88 |
+
".*_thumb_proximal_yaw_joint", ".*_thumb_proximal_pitch_joint" , ".*_thumb_distal_joint"],
|
| 89 |
+
effort_limit=10,
|
| 90 |
+
velocity_limit=1.0,
|
| 91 |
+
stiffness={
|
| 92 |
+
".*_index_proximal_joint": stiffness,
|
| 93 |
+
".*_middle_proximal_joint": stiffness,
|
| 94 |
+
".*_pinky_proximal_joint": stiffness,
|
| 95 |
+
".*_ring_proximal_joint": stiffness,
|
| 96 |
+
".*_index_intermediate_joint": stiffness,
|
| 97 |
+
".*_middle_intermediate_joint": stiffness,
|
| 98 |
+
".*_pinky_intermediate_joint": stiffness,
|
| 99 |
+
".*_ring_intermediate_joint": stiffness,
|
| 100 |
+
".*_thumb_intermediate_joint": stiffness,
|
| 101 |
+
".*_thumb_proximal_yaw_joint": stiffness,
|
| 102 |
+
".*_thumb_proximal_pitch_joint": stiffness,
|
| 103 |
+
".*_thumb_distal_joint": stiffness,
|
| 104 |
+
},
|
| 105 |
+
damping={
|
| 106 |
+
".*_index_proximal_joint": damping,
|
| 107 |
+
".*_middle_proximal_joint": damping,
|
| 108 |
+
".*_pinky_proximal_joint": damping,
|
| 109 |
+
".*_ring_proximal_joint": damping,
|
| 110 |
+
".*_index_intermediate_joint": damping,
|
| 111 |
+
".*_middle_intermediate_joint": damping,
|
| 112 |
+
".*_pinky_intermediate_joint": damping,
|
| 113 |
+
".*_ring_intermediate_joint": damping,
|
| 114 |
+
".*_thumb_intermediate_joint": damping,
|
| 115 |
+
".*_thumb_proximal_yaw_joint": damping,
|
| 116 |
+
".*_thumb_proximal_pitch_joint": damping,
|
| 117 |
+
".*_thumb_distal_joint": damping,
|
| 118 |
+
}
|
| 119 |
+
),
|
| 120 |
+
}
|
| 121 |
+
)
|
| 122 |
+
|
| 123 |
+
H1_INSPIRE_LEFT_ARM_CFG: SceneEntityCfg = SceneEntityCfg(
|
| 124 |
+
"robot",
|
| 125 |
+
joint_names=[
|
| 126 |
+
"left_shoulder_pitch_joint",
|
| 127 |
+
"left_shoulder_roll_joint",
|
| 128 |
+
"left_shoulder_yaw_joint",
|
| 129 |
+
"left_elbow_pitch_joint",
|
| 130 |
+
"left_elbow_roll_joint",
|
| 131 |
+
"left_wrist_pitch_joint",
|
| 132 |
+
"left_wrist_yaw_joint",
|
| 133 |
+
],
|
| 134 |
+
body_names=["L_hand_base_link"],
|
| 135 |
+
preserve_order=True
|
| 136 |
+
)
|
| 137 |
+
|
| 138 |
+
H1_INSPIRE_RIGHT_ARM_CFG: SceneEntityCfg = SceneEntityCfg(
|
| 139 |
+
"robot",
|
| 140 |
+
joint_names=[
|
| 141 |
+
"right_shoulder_pitch_joint",
|
| 142 |
+
"right_shoulder_roll_joint",
|
| 143 |
+
"right_shoulder_yaw_joint",
|
| 144 |
+
"right_elbow_pitch_joint",
|
| 145 |
+
"right_elbow_roll_joint",
|
| 146 |
+
"right_wrist_pitch_joint",
|
| 147 |
+
"right_wrist_yaw_joint",
|
| 148 |
+
],
|
| 149 |
+
body_names=["R_hand_base_link"],
|
| 150 |
+
preserve_order=True
|
| 151 |
+
)
|
| 152 |
+
|
| 153 |
+
H1_INSPIRE_LEFT_HAND_CFG = SceneEntityCfg(
|
| 154 |
+
"robot",
|
| 155 |
+
joint_names=[
|
| 156 |
+
"L_index_proximal_joint",
|
| 157 |
+
"L_index_intermediate_joint",
|
| 158 |
+
"L_middle_proximal_joint",
|
| 159 |
+
"L_middle_intermediate_joint",
|
| 160 |
+
"L_pinky_proximal_joint",
|
| 161 |
+
"L_pinky_intermediate_joint",
|
| 162 |
+
"L_ring_proximal_joint",
|
| 163 |
+
"L_ring_intermediate_joint",
|
| 164 |
+
"L_thumb_proximal_yaw_joint",
|
| 165 |
+
"L_thumb_proximal_pitch_joint",
|
| 166 |
+
"L_thumb_intermediate_joint",
|
| 167 |
+
"L_thumb_distal_joint"
|
| 168 |
+
],
|
| 169 |
+
body_names=[
|
| 170 |
+
"L_thumb_tip",
|
| 171 |
+
"L_index_tip",
|
| 172 |
+
"L_middle_tip",
|
| 173 |
+
"L_ring_tip",
|
| 174 |
+
"L_pinky_tip",
|
| 175 |
+
],
|
| 176 |
+
preserve_order=True,
|
| 177 |
+
)
|
| 178 |
+
|
| 179 |
+
H1_INSPIRE_RIGHT_HAND_CFG = SceneEntityCfg(
|
| 180 |
+
"robot",
|
| 181 |
+
joint_names=[
|
| 182 |
+
"R_index_proximal_joint",
|
| 183 |
+
"R_index_intermediate_joint",
|
| 184 |
+
"R_middle_proximal_joint",
|
| 185 |
+
"R_middle_intermediate_joint",
|
| 186 |
+
"R_pinky_proximal_joint",
|
| 187 |
+
"R_pinky_intermediate_joint",
|
| 188 |
+
"R_ring_proximal_joint",
|
| 189 |
+
"R_ring_intermediate_joint",
|
| 190 |
+
"R_thumb_proximal_yaw_joint",
|
| 191 |
+
"R_thumb_proximal_pitch_joint",
|
| 192 |
+
"R_thumb_intermediate_joint",
|
| 193 |
+
"R_thumb_distal_joint"
|
| 194 |
+
],
|
| 195 |
+
body_names=[
|
| 196 |
+
"R_thumb_tip",
|
| 197 |
+
"R_index_tip",
|
| 198 |
+
"R_middle_tip",
|
| 199 |
+
"R_ring_tip",
|
| 200 |
+
"R_pinky_tip",
|
| 201 |
+
],
|
| 202 |
+
preserve_order=True,
|
| 203 |
+
)
|
| 204 |
+
"""Configuration for the Unitree H1 Inspire Humanoid robot with hand."""
|
h1/h1_inspire_convex_decomp.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c66589fffb2520cf51403ff5fd62569a18f4994b323ba53414d49acc7f8ec75d
|
| 3 |
+
size 41584945
|
laptop/001.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c708cd97482397354942812f1af7499154fce2a053331671d2e73f51dec27b38
|
| 3 |
+
size 2434258
|
laptop/002.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:986a7f6ac1117c1063e4e818ce32d7c98f2d932da45a27da24cf77462af61fe0
|
| 3 |
+
size 2133085
|
laptop/003.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:44be2a5a6d285c024ebe1a867acdfb3a598a5e498f33e0a07db5ef2425269b9a
|
| 3 |
+
size 2454412
|
laptop/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
from .laptop import LAPTOP_CFG
|
laptop/laptop.py
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import random
|
| 3 |
+
from omni.isaac.lab.assets.rigid_object.rigid_object_cfg import RigidObjectCfg
|
| 4 |
+
from omni.isaac.lab.assets.articulation.articulation_cfg import ArticulationCfg
|
| 5 |
+
import omni.isaac.lab.sim as sim_utils
|
| 6 |
+
from omni.isaac.lab.actuators import ImplicitActuatorCfg
|
| 7 |
+
|
| 8 |
+
current_file_path = os.path.abspath(__file__)
|
| 9 |
+
parent_dir_path = os.path.dirname(current_file_path)
|
| 10 |
+
|
| 11 |
+
MESH_COUNT = 1
|
| 12 |
+
|
| 13 |
+
LAPTOP_CFG = ArticulationCfg(
|
| 14 |
+
prim_path="{ENV_REGEX_NS}/laptop",
|
| 15 |
+
spawn=sim_utils.UsdFileCfg(
|
| 16 |
+
usd_path=f"{parent_dir_path}/notebook.usd",
|
| 17 |
+
activate_contact_sensors=False,
|
| 18 |
+
rigid_props=sim_utils.RigidBodyPropertiesCfg(
|
| 19 |
+
solver_position_iteration_count=16,
|
| 20 |
+
solver_velocity_iteration_count=1,
|
| 21 |
+
max_angular_velocity=10.0,
|
| 22 |
+
max_linear_velocity=50.0,
|
| 23 |
+
max_depenetration_velocity=50.0,
|
| 24 |
+
kinematic_enabled=False,
|
| 25 |
+
),
|
| 26 |
+
mass_props=sim_utils.MassPropertiesCfg(mass=1.5),
|
| 27 |
+
articulation_props=sim_utils.ArticulationRootPropertiesCfg(
|
| 28 |
+
enabled_self_collisions=False, solver_position_iteration_count=4, solver_velocity_iteration_count=0
|
| 29 |
+
),
|
| 30 |
+
),
|
| 31 |
+
init_state=ArticulationCfg.InitialStateCfg(
|
| 32 |
+
pos=(1, 0, 0),
|
| 33 |
+
joint_pos={
|
| 34 |
+
".*joint": 0.088
|
| 35 |
+
}
|
| 36 |
+
),
|
| 37 |
+
soft_joint_pos_limit_factor=1.0,
|
| 38 |
+
actuators={},
|
| 39 |
+
)
|
| 40 |
+
|
| 41 |
+
def randomize_mesh():
|
| 42 |
+
mesh_idx = random.randint(1, MESH_COUNT)
|
| 43 |
+
file_name = (3 - len(str(mesh_idx))) * "0" + str(mesh_idx)
|
| 44 |
+
return sim_utils.UsdFileCfg(
|
| 45 |
+
usd_path=f"{parent_dir_path}/{file_name}.usd",
|
| 46 |
+
activate_contact_sensors=False,
|
| 47 |
+
rigid_props=sim_utils.RigidBodyPropertiesCfg(
|
| 48 |
+
solver_position_iteration_count=16,
|
| 49 |
+
solver_velocity_iteration_count=1,
|
| 50 |
+
max_angular_velocity=10.0,
|
| 51 |
+
max_linear_velocity=50.0,
|
| 52 |
+
max_depenetration_velocity=50.0,
|
| 53 |
+
kinematic_enabled=False,
|
| 54 |
+
),
|
| 55 |
+
mass_props=sim_utils.MassPropertiesCfg(mass=0.05),
|
| 56 |
+
collision_props=sim_utils.CollisionPropertiesCfg(),
|
| 57 |
+
)
|
laptop/notebook.tga
ADDED
|
|
Git LFS Details
|
laptop/notebook.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2af69cea9df758d50a66e236f5354140e77bb0f669058b6d34a52d6c844f25ab
|
| 3 |
+
size 34192
|
marker/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
from .marker import MARKER_CFG
|
marker/marker.py
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
from omni.isaac.lab.assets.rigid_object.rigid_object_cfg import RigidObjectCfg
|
| 3 |
+
from omni.isaac.lab.markers.visualization_markers import VisualizationMarkersCfg
|
| 4 |
+
import omni.isaac.lab.sim as sim_utils
|
| 5 |
+
|
| 6 |
+
current_file_path = os.path.abspath(__file__)
|
| 7 |
+
parent_dir_path = os.path.dirname(current_file_path)
|
| 8 |
+
|
| 9 |
+
MARKER_CFG = VisualizationMarkersCfg(
|
| 10 |
+
markers={
|
| 11 |
+
"cross": sim_utils.UsdFileCfg(
|
| 12 |
+
usd_path=f"{parent_dir_path}/marker.usd",
|
| 13 |
+
scale=(1.0, 1.0, 1.0),
|
| 14 |
+
# visual_material=sim_utils.PreviewSurfaceCfg(diffuse_color=(1.0, 0.0, 0.0)),
|
| 15 |
+
)
|
| 16 |
+
}
|
| 17 |
+
)
|
marker/marker.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a167191e872b3c41526b02753c22f4dadcac67c3158cf600cb067f63893b9a93
|
| 3 |
+
size 2588
|
mug/001.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e78873fe34f694bbe29cf8d1ff6d0c397192da3e57ad0bc19bc128c7245dbd2c
|
| 3 |
+
size 4259789
|
mug/002.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:038a8ab8b1cd5b37ac271294d09bfdcffab11a45b7d296b7f780b86a2fcfc440
|
| 3 |
+
size 3600304
|