Merge b37d5db522987671448f58ab4b52e33221e1244b into 6ce61a0241831da17a412146bcd1b0a97d50f301

This commit is contained in:
Ziluo Ding 2024-09-10 20:17:14 +08:00 committed by GitHub
commit 0a45ff0c7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 2 additions and 3 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

View File

@ -69,7 +69,7 @@ class H1RoughCfg( LeggedRobotCfg ):
class rewards( LeggedRobotCfg.rewards ): class rewards( LeggedRobotCfg.rewards ):
soft_dof_pos_limit = 0.9 soft_dof_pos_limit = 0.9
base_height_target = 0.98 base_height_target = 0.98
class scales( LeggedRobotCfg.rewards.scales ): class scales( LeggedRobotCfg.rewards.scales):
tracking_lin_vel = 1.0 tracking_lin_vel = 1.0
tracking_ang_vel = 0.5 tracking_ang_vel = 0.5
lin_vel_z = -2.0 lin_vel_z = -2.0

View File

@ -157,8 +157,7 @@ def export_policy_as_jit(actor_critic, path):
path = os.path.join(path, 'policy_1.pt') path = os.path.join(path, 'policy_1.pt')
model = copy.deepcopy(actor_critic.actor).to('cpu') model = copy.deepcopy(actor_critic.actor).to('cpu')
traced_script_module = torch.jit.script(model) traced_script_module = torch.jit.script(model)
traced_script_module.save(path) traced_script_module.save(path)
class PolicyExporterLSTM(torch.nn.Module): class PolicyExporterLSTM(torch.nn.Module):
def __init__(self, actor_critic): def __init__(self, actor_critic):

BIN
resources/.DS_Store vendored Normal file

Binary file not shown.