Skip to content

Commit

Permalink
save walking setup
Browse files Browse the repository at this point in the history
  • Loading branch information
budzianowski committed Jan 5, 2025
1 parent 4273ffa commit 0009c00
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 79 deletions.
Binary file added policy.kinfer
Binary file not shown.
Binary file added policy_1.pt
Binary file not shown.
2 changes: 1 addition & 1 deletion sim/envs/humanoids/zbot2_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def __init__(self, cfg, sim_params, physics_engine, sim_device, headless):

self.legs_joints = {}
for name, joint in Robot.legs.left.joints_motors():
print(name)
# print(name)
joint_handle = self.gym.find_actor_dof_handle(env_handle, actor_handle, joint)
self.legs_joints["left_" + name] = joint_handle

Expand Down
2 changes: 2 additions & 0 deletions sim/resources/zbot2/joints.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ def default_standing(cls) -> Dict[str, float]:
cls.legs.right.ankle_pitch: 0.0,
}

# CONTRACT - this should be ordered according to how the policy is trained.
# E.g. the first entry should be the name of the first joint in the policy.
@classmethod
def joint_names(cls) -> List[str]:
return list(cls.default_standing().keys())
Expand Down
Loading

0 comments on commit 0009c00

Please sign in to comment.