Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
WT-MM committed Jan 2, 2025
1 parent 20add09 commit 07b9a9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sim/envs/humanoids/gpr_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
LeggedRobotCfgPPO,
)
from sim.resources.gpr.joints import Robot
from kinfer import proto as P


NUM_JOINTS = len(Robot.all_joints())

Expand All @@ -26,8 +28,6 @@ class env(LeggedRobotCfg.env):
episode_length_s = 24 # episode length in seconds
use_ref_actions = False

from kinfer import proto as P

input_schema = P.IOSchema(
values=[
P.ValueSchema(
Expand Down
2 changes: 1 addition & 1 deletion sim/sim2sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def run_mujoco(
metadata = policy.attached_metadata

joint_names = []
for value_schema in policy.input_schema.values + policy.output_schema.values:
for value_schema in policy.input_schema.values:
if value_schema.HasField("joint_positions"):
joint_names = list(value_schema.joint_positions.joint_names)
break
Expand Down

0 comments on commit 07b9a9d

Please sign in to comment.