diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..46defa9 Binary files /dev/null and b/.DS_Store differ diff --git a/legged_gym/envs/h1/h1_config.py b/legged_gym/envs/h1/h1_config.py index ba4c3a1..e4e746e 100644 --- a/legged_gym/envs/h1/h1_config.py +++ b/legged_gym/envs/h1/h1_config.py @@ -69,7 +69,7 @@ class H1RoughCfg( LeggedRobotCfg ): class rewards( LeggedRobotCfg.rewards ): soft_dof_pos_limit = 0.9 base_height_target = 0.98 - class scales( LeggedRobotCfg.rewards.scales ): + class scales( LeggedRobotCfg.rewards.scales): tracking_lin_vel = 1.0 tracking_ang_vel = 0.5 lin_vel_z = -2.0 diff --git a/legged_gym/utils/helpers.py b/legged_gym/utils/helpers.py index dc231af..7dc9716 100644 --- a/legged_gym/utils/helpers.py +++ b/legged_gym/utils/helpers.py @@ -157,8 +157,7 @@ def export_policy_as_jit(actor_critic, path): path = os.path.join(path, 'policy_1.pt') model = copy.deepcopy(actor_critic.actor).to('cpu') traced_script_module = torch.jit.script(model) - traced_script_module.save(path) - + traced_script_module.save(path) class PolicyExporterLSTM(torch.nn.Module): def __init__(self, actor_critic): diff --git a/resources/.DS_Store b/resources/.DS_Store new file mode 100644 index 0000000..08cf7f5 Binary files /dev/null and b/resources/.DS_Store differ