Skip to content

Commit

Permalink
Add new mujoco envs to __init__
Browse files Browse the repository at this point in the history
  • Loading branch information
noahfarr committed Jan 2, 2025
1 parent 25e2ae3 commit 4a57acc
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/mujoco_ant_ppo.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from mushroom_rl.algorithms.actor_critic import PPO
from mushroom_rl.core import Core, Logger
from mushroom_rl.environments.mujoco_envs.ant import Ant
from mushroom_rl.environments import Ant
from mushroom_rl.policy import GaussianTorchPolicy

from tqdm import trange
Expand Down
2 changes: 1 addition & 1 deletion examples/mujoco_half_cheetah_ppo.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from mushroom_rl.algorithms.actor_critic import PPO
from mushroom_rl.core import Core, Logger
from mushroom_rl.environments.mujoco_envs.half_cheetah import HalfCheetah
from mushroom_rl.environments import HalfCheetah
from mushroom_rl.policy import GaussianTorchPolicy

from tqdm import trange
Expand Down
2 changes: 1 addition & 1 deletion examples/mujoco_hopper_ppo.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from mushroom_rl.algorithms.actor_critic import PPO
from mushroom_rl.core import Core, Logger
from mushroom_rl.environments.mujoco_envs.hopper import Hopper
from mushroom_rl.environments import Hopper
from mushroom_rl.policy import GaussianTorchPolicy

from tqdm import trange
Expand Down
2 changes: 1 addition & 1 deletion examples/mujoco_walker_2d_ppo.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from mushroom_rl.algorithms.actor_critic import PPO
from mushroom_rl.core import Core, Logger
from mushroom_rl.environments.mujoco_envs.walker_2d import Walker2D
from mushroom_rl.environments import Walker2D
from mushroom_rl.policy import GaussianTorchPolicy

from tqdm import trange
Expand Down
8 changes: 8 additions & 0 deletions mushroom_rl/environments/mujoco_envs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
from .ball_in_a_cup import BallInACup
from .air_hockey import AirHockeyHit, AirHockeyDefend, AirHockeyPrepare, AirHockeyRepel
from .ant import Ant
from .half_cheetah import HalfCheetah
from .hopper import Hopper
from .walker_2d import Walker2D

BallInACup.register()
AirHockeyHit.register()
AirHockeyDefend.register()
AirHockeyPrepare.register()
AirHockeyRepel.register()
Ant.register()
HalfCheetah.register()
Hopper.register()
Walker2D.register()

0 comments on commit 4a57acc

Please sign in to comment.