change parameter

This commit is contained in:
2026-03-21 10:16:01 -04:00
parent fd8238dc41
commit 4833ba33c8
2 changed files with 17 additions and 11 deletions

View File

@@ -184,12 +184,12 @@ class T1ActionCfg:
@configclass
class T1GetUpRewardCfg:
# 1. 姿态基础奖 (引导身体变正)
upright = RewTerm(func=mdp.flat_orientation_l2, weight=30.0)
upright = RewTerm(func=mdp.flat_orientation_l2, weight=5.0)
# 2. 【条件高度奖】:双高度判定(头+盆骨),且必须脚踩地
height_with_feet = RewTerm(
func=standing_with_feet_reward,
weight=25.0, # 作为核心引导,增加权重
weight=20.0, # 作为核心引导,增加权重
params={
"min_head_height": 1.10,
"min_pelvis_height": 0.7,
@@ -224,10 +224,16 @@ class T1GetUpRewardCfg:
params={"asset_cfg": SceneEntityCfg("robot")}
)
# 5. 成功终极大奖
# 5. 时间惩罚 (强制效率)
time_penalty = RewTerm(
func=mdp.is_alive,
weight=-1.2
)
# 6. 成功终极大奖
is_success = RewTerm(
func=lambda env, keys: env.termination_manager.get_term(keys).float(),
weight=300.0,
weight=500.0,
params={"keys": "standing_success"}
)