module moplayground.envs.create
function create_environment
create_environment(config, for_training=False, **env_kwargs)
Instantiate a MO-Playground environment from a config.
Dispatches on config['env'] to construct one of the registered multi-objective environments (MOCheetah, MOHopper, MOAnt, MOWalker, MOHumanoid, NaviGait).
Args:
config: Config dict (typically loaded from a YAML file inconfig/) with at leastenv(str) andenv_config(dict) entries.backendis read whenfor_trainingis False.for_training: If True, force the JAX ('jnp') backend regardless ofconfig['backend']. Set this when building the environment for GPU training; leave False for evaluation/rollout.**env_kwargs: Extra keyword arguments forwarded to the environment constructor. Currently only consumed byNaviGait(Bruce).
Returns:
Tuple (env, env_params) where env is the constructed environment instance and env_params is the resolved ConfigDict of environment parameters.
Raises:
Exception: Ifconfig['env']does not match a registered environment name.