Align DreamWaQ PPO rollout and policy dynamics
This commit is contained in:
@@ -197,7 +197,7 @@ class DreamWaQTask(Go1WalkTask):
|
||||
|
||||
def apply_action(self, actions, state):
|
||||
"""裁剪动作 + 随机延迟(模拟真实部署延迟,提高 sim-to-real 泛化)。"""
|
||||
actions = np.clip(actions, -4.0, 4.0)
|
||||
actions = np.clip(actions, -100.0, 100.0)
|
||||
# 随机动作延迟:0-3 个控制步(0-60ms)
|
||||
if not hasattr(self, '_action_buffer'):
|
||||
self._action_buffer = np.zeros((self._num_envs, 3, self._num_action), dtype=np.float32)
|
||||
|
||||
Reference in New Issue
Block a user