unilab.tasks.compatibility.LegacyEnvFactory

class unilab.tasks.compatibility.LegacyEnvFactory[source]

Bases: Protocol[TCfg_contra]

Existing registry-shaped legacy factory admitted by this seam.

Methods

__init__(*args, **kwargs)

__call__(cfg, *, num_envs=1, backend_type='mujoco')[source]

Call self as a function.

Parameters:
  • cfg (TypeVar(TCfg_contra, bound= EnvCfg, contravariant=True))

  • num_envs (int)

  • backend_type (str)

Return type:

ABEnv

__init__(*args, **kwargs)