Skip to content

Commit ccac624

Browse files
author
Horde
committed
Override USD-baked J0 stiffness; bump MAPPO entropy
The shadow_hand_instanceable_newton.usd bakes stiffness=286 / damping=57 on FFJ0/MFJ0/RFJ0/LFJ0 (MJCF→USD translation artifact). Even with the MjcTendon constraint parsed from the MJCF source, the over-stiff joint drive fights the tendon coupling and bounces the ball on contact. - Add a separate ImplicitActuatorCfg ("distal_passive") on the J0 joints with stiffness=10.0 (1/3 of PhysX limit_stiffness=30), damping=0.1. - Bump MAPPO entropy_loss_scale 0.0 → 0.01 to avoid premature collapse to the "hold ball" local optimum observed in early runs.
1 parent d511e49 commit ccac624

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

source/isaaclab_tasks/isaaclab_tasks/direct/shadow_hand_over/agents/skrl_mappo_cfg.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ agent:
6666
ratio_clip: 0.2
6767
value_clip: 0.2
6868
clip_predicted_values: True
69-
entropy_loss_scale: 0.0
69+
entropy_loss_scale: 0.01
7070
value_loss_scale: 2.0
7171
kl_threshold: 0.0
7272
rewards_shaper_scale: 1.0

source/isaaclab_tasks/isaaclab_tasks/direct/shadow_hand_over/shadow_hand_over_env_cfg.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,18 @@ def _newton_shadow_hand_cfg(
195195
friction=1e-2,
196196
armature=2e-3,
197197
),
198+
# J0 distal joints are passive in PhysX (fixed tendon, limit_stiffness=30,
199+
# damping=0.1). The Newton USD bakes stiffness=286/damping=57 from the
200+
# MJCF translation, which fights the MjcTendon coupling and bounces the
201+
# ball. Override with stiffness=10 (1/3 of PhysX limit_stiffness=30) so
202+
# the tendon constraint dominates without going fully limp.
203+
"distal_passive": ImplicitActuatorCfg(
204+
joint_names_expr=["robot0_(FF|MF|RF|LF)J0"],
205+
stiffness=10.0,
206+
damping=0.1,
207+
friction=1e-2,
208+
armature=2e-3,
209+
),
198210
},
199211
soft_joint_pos_limit_factor=1.0,
200212
)

0 commit comments

Comments
 (0)