Skip to content

Commit 18c90dc

Browse files
Wire OVPhysX preset into Allegro Repose direct task
Adds ``ovphysx`` to both preset classes in ``allegro_hand_env_cfg.py``: * ``ObjectCfg`` — cube uses ``RigidObjectCfg`` (same as the ``physx`` preset, since OVPhysX ships RigidObject support). * ``PhysicsCfg`` — ``OvPhysxCfg()`` with defaults. Validated with RSL-RL: 300 iterations clean on cuda:0. Exercises both the articulation (Allegro hand, 16 DOFs) and the rigid object (cube) backends in the same scene.
1 parent f2e5e2a commit 18c90dc

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Added
2+
^^^^^
3+
4+
* Added the ``ovphysx`` preset to ``Isaac-Repose-Cube-Allegro-Direct-v0``
5+
(``ObjectCfg`` and ``PhysicsCfg`` in
6+
:mod:`isaaclab_tasks.direct.allegro_hand.allegro_hand_env_cfg`), so the
7+
task can be selected with ``presets=ovphysx`` against the OVPhysX
8+
backend. Exercises the OVPhysX :class:`~isaaclab_ovphysx.assets.Articulation`
9+
(Allegro hand) and :class:`~isaaclab_ovphysx.assets.RigidObject` (cube)
10+
in the same scene.

source/isaaclab_tasks/isaaclab_tasks/direct/allegro_hand/allegro_hand_env_cfg.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66

77
from isaaclab_newton.physics import MJWarpSolverCfg, NewtonCfg
8+
from isaaclab_ovphysx.physics import OvPhysxCfg
89
from isaaclab_physx.physics import PhysxCfg
910

1011
import isaaclab.sim as sim_utils
@@ -56,6 +57,25 @@ class ObjectCfg(PresetCfg):
5657
actuators={},
5758
articulation_root_prim_path="",
5859
)
60+
ovphysx = RigidObjectCfg(
61+
prim_path="/World/envs/env_.*/object",
62+
spawn=sim_utils.UsdFileCfg(
63+
usd_path=f"{ISAAC_NUCLEUS_DIR}/Props/Blocks/DexCube/dex_cube_instanceable.usd",
64+
rigid_props=sim_utils.RigidBodyPropertiesCfg(
65+
kinematic_enabled=False,
66+
disable_gravity=False,
67+
enable_gyroscopic_forces=True,
68+
solver_position_iteration_count=8,
69+
solver_velocity_iteration_count=0,
70+
sleep_threshold=0.005,
71+
stabilization_threshold=0.0025,
72+
max_depenetration_velocity=1000.0,
73+
),
74+
mass_props=sim_utils.MassPropertiesCfg(density=400.0),
75+
scale=(1.2, 1.2, 1.2),
76+
),
77+
init_state=RigidObjectCfg.InitialStateCfg(pos=(0.0, -0.17, 0.56), rot=(0.0, 0.0, 0.0, 1.0)),
78+
)
5979
default = physx
6080

6181

@@ -79,6 +99,7 @@ class PhysicsCfg(PresetCfg):
7999
num_substeps=2,
80100
debug_mode=False,
81101
)
102+
ovphysx = OvPhysxCfg()
82103
default = physx
83104

84105

0 commit comments

Comments
 (0)