Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
alik-git committed Jan 4, 2025
1 parent bef3951 commit 03e16c6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions sim/envs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
from sim.envs.humanoids.h1_env import H1FreeEnv
from sim.envs.humanoids.xbot_config import XBotCfg, XBotCfgPPO
from sim.envs.humanoids.xbot_env import XBotLFreeEnv
from sim.envs.humanoids.zeroth_config import ZerothCfg, ZerothCfgPPO
from sim.envs.humanoids.zeroth_env import ZerothEnv
from sim.envs.humanoids.zbot2_config import ZBot2Cfg, ZBot2CfgPPO
from sim.envs.humanoids.zbot2_env import ZBot2Env
from sim.envs.humanoids.zeroth_config import ZerothCfg, ZerothCfgPPO
from sim.envs.humanoids.zeroth_env import ZerothEnv
from sim.utils.task_registry import TaskRegistry # noqa: E402

task_registry = TaskRegistry()
Expand All @@ -31,5 +31,5 @@
task_registry.register("h1", H1FreeEnv, H1Cfg(), H1CfgPPO())
task_registry.register("g1", G1FreeEnv, G1Cfg(), G1CfgPPO())
task_registry.register("XBotL_free", XBotLFreeEnv, XBotCfg(), XBotCfgPPO())
task_registry.register("zbot2", ZBot2Env, ZBot2Cfg(), ZBot2CfgPPO())
task_registry.register("zeroth", ZerothEnv, ZerothCfg(), ZerothCfgPPO())
task_registry.register("zbot2", ZBot2Env, ZBot2Cfg(), ZBot2CfgPPO())
2 changes: 1 addition & 1 deletion sim/envs/humanoids/zbot2_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class asset(LeggedRobotCfg.asset):

termination_height = 0.05
default_feet_height = 0.01

penalize_contacts_on = []
self_collisions = 1 # 1 to disable, 0 to enable...bitwise filter
flip_visual_attachments = False
Expand Down
3 changes: 1 addition & 2 deletions sim/resources/zbot2/joints.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ def damping(cls) -> Dict[str, float]:
"knee_pitch": 0.3,
"ankle_pitch": 0.3,
}

@classmethod
def effort(cls) -> Dict[str, float]:
return {
Expand All @@ -192,7 +193,6 @@ def effort(cls) -> Dict[str, float]:
"ankle_pitch": 1,
}


# vel_limits
@classmethod
def velocity(cls) -> Dict[str, float]:
Expand All @@ -204,7 +204,6 @@ def velocity(cls) -> Dict[str, float]:
"ankle_pitch": 20,
}


@classmethod
def friction(cls) -> Dict[str, float]:
"""Example friction dictionary for certain joints."""
Expand Down

0 comments on commit 03e16c6

Please sign in to comment.