Skip to content

Commit

Permalink
lower kds
Browse files Browse the repository at this point in the history
  • Loading branch information
budzianowski committed Dec 9, 2024
1 parent 7bafa2c commit b44c02f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
7 changes: 3 additions & 4 deletions sim/play_old.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# mypy: ignore-errors
"""Play a trained policy in the environment.
Run:
python sim/play.py --task g1 --log_h5
python sim/play.py --task stompymini --log_h5
python sim/play_old.py --task gpr --log_h5
python sim/play_old.py --task zeroth --log_h5
"""

import argparse
Expand Down Expand Up @@ -145,7 +144,7 @@ def play(args: argparse.Namespace) -> None:
if args.log_h5:
dset_actions[t] = actions.detach().numpy()
if args.fix_command:
env.commands[:, 0] = 0.5
env.commands[:, 0] = .4
env.commands[:, 1] = 0.0
env.commands[:, 2] = 0.0
env.commands[:, 3] = 0.0
Expand Down
2 changes: 1 addition & 1 deletion sim/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ mediapy==1.2.2
mujoco==2.3.6
mujoco_python_viewer==0.1.4
onnx==1.15.0
onnxruntime
onnxruntime==1.15.0
pandas==1.4.4
Pillow>6.2.0
poselib==2.0.4
Expand Down
22 changes: 11 additions & 11 deletions sim/resources/gpr/joints.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,33 +156,33 @@ def default_limits(cls) -> Dict[str, Dict[str, float]]:
@classmethod
def stiffness(cls) -> Dict[str, float]:
return {
"hip_y": 120,
"hip_x": 60,
"hip_z": 60,
"knee": 120,
"hip_y": 40,
"hip_x": 20,
"hip_z": 20,
"knee": 40,
"ankle_y": 17,
}

# d_gains
@classmethod
def damping(cls) -> Dict[str, float]:
return {
"hip_y": 10,
"hip_y": 5,
"hip_x": 5,
"hip_z": 5,
"knee": 10,
"knee": 5,
"ankle_y": 5,
}

# # pos_limits
@classmethod
def effort(cls) -> Dict[str, float]:
return {
"hip_y": 20,
"hip_x": 10,
"hip_z": 10,
"knee": 20,
"ankle_y": 10,
"hip_y": 40,
"hip_x": 20,
"hip_z": 20,
"knee": 40,
"ankle_y": 17,
}

# # vel_limits
Expand Down

0 comments on commit b44c02f

Please sign in to comment.