# Copyright (c) 2022-2025, The Isaac Lab Project Developers.
# All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause

import gymnasium as gym

from . import agents
from .assembly_env import AssemblyEnv, AssemblyEnvCfg
from .disassembly_env import DisassemblyEnv, DisassemblyEnvCfg

##
# Register Gym environments.
##

gym.register(
    id="Isaac-Assembly-Direct-v0",
    entry_point="isaaclab_tasks.direct.assembly:AssemblyEnv",
    disable_env_checker=True,
    kwargs={
        "env_cfg_entry_point": AssemblyEnvCfg,
        "rl_games_cfg_entry_point": f"{agents.__name__}:rl_games_ppo_cfg.yaml",
    },
)


gym.register(
    id="Isaac-Disassembly-Direct-v0",
    entry_point="isaaclab_tasks.direct.assembly:DisassemblyEnv",
    disable_env_checker=True,
    kwargs={
        "env_cfg_entry_point": DisassemblyEnvCfg,
        "rl_games_cfg_entry_point": f"{agents.__name__}:rl_games_ppo_cfg.yaml",
    },
)
