From 7a0a1c394866d28fe756c062de76c7fb23595803 Mon Sep 17 00:00:00 2001 From: Wesley Maa Date: Mon, 30 Dec 2024 15:17:53 -0800 Subject: [PATCH] fix imports --- sim/envs/base/legged_robot_config.py | 6 +----- sim/envs/humanoids/gpr_config.py | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/sim/envs/base/legged_robot_config.py b/sim/envs/base/legged_robot_config.py index 44a747af..e427c99f 100644 --- a/sim/envs/base/legged_robot_config.py +++ b/sim/envs/base/legged_robot_config.py @@ -35,10 +35,8 @@ from sim.envs.base.base_config import BaseConfig -kinfer_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "third_party", "kinfer")) +kinfer_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "..", "third_party", "kinfer")) sys.path.append(kinfer_path) -from kinfer import proto - class LeggedRobotCfg(BaseConfig): class env: @@ -50,8 +48,6 @@ class env: send_timeouts = True # send time out information to the algorithm episode_length_s = 20 # episode length in seconds - P = proto - class terrain: mesh_type = "trimesh" # "heightfield" # none, plane, heightfield or trimesh horizontal_scale = 0.1 # [m] diff --git a/sim/envs/humanoids/gpr_config.py b/sim/envs/humanoids/gpr_config.py index 24611fd3..78637d03 100644 --- a/sim/envs/humanoids/gpr_config.py +++ b/sim/envs/humanoids/gpr_config.py @@ -26,7 +26,7 @@ class env(LeggedRobotCfg.env): episode_length_s = 24 # episode length in seconds use_ref_actions = False - P = LeggedRobotCfg.env.P + from kinfer import proto as P input_schema = P.IOSchema( values=[