change parameter
This commit is contained in:
@@ -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"}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user