<spanclass="sig-prename descclassname"><spanclass="pre">fancy_gym.</span></span><spanclass="sig-name descname"><spanclass="pre">upgrade</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="pre">id:</span><spanclass="pre">str,</span><spanclass="pre">mp_wrapper:</span><spanclass="pre">~fancy_gym.black_box.raw_interface_wrapper.RawInterfaceWrapper</span><spanclass="pre">=</span><spanclass="pre"><class</span><spanclass="pre">'fancy_gym.envs.registry.DefaultMPWrapper'>,</span><spanclass="pre">add_mp_types:</span><spanclass="pre">~typing.List[str]</span><spanclass="pre">=</span><spanclass="pre">['ProMP',</span><spanclass="pre">'DMP',</span><spanclass="pre">'ProDMP'],</span><spanclass="pre">base_id:</span><spanclass="pre">~typing.Optional[str]</span><spanclass="pre">=</span><spanclass="pre">None,</span><spanclass="pre">mp_config_override:</span><spanclass="pre">~typing.Dict[str,</span><spanclass="pre">~typing.Any]</span><spanclass="pre">=</span><spanclass="pre">{}</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/fancy_gym/envs/registry.html#upgrade"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#fancy_gym.upgrade"title="Permalink to this definition"></a></dt>
<dd><p>Upgrades an existing Gymnasium environment to include Movement Primitives (MP) versions.
We expect the raw step-based env to be already registered with gymnasium. Otherwise please use fancy_gym.register instead.</p>
<dl>
<dt>Args:</dt><dd><p>id (str): The unique identifier for the environment.
mp_wrapper (RawInterfaceWrapper): The MP wrapper for the environment (default is DefaultMPWrapper).
add_mp_types (List[str]): List of additional MP types to register (default is KNOWN_MPS).
base_id (Optional[str]): The unique identifier for the environment to upgrade. Will use id if non is provided. Can be defined to allow multiple registrations of different versions for the same step-based environment.
mp_config_override (Dict[str, Any]): Dictionary for overriding MP configuration.</p>
</dd>
<dt>Notes:</dt><dd><ulclass="simple">
<li><p>The <cite>id</cite> parameter should match the ID of the existing Gymnasium environment you wish to upgrade. You can also pick a new one, but then <cite>base_id</cite> needs to be provided.</p></li>
<li><p>The <cite>mp_wrapper</cite> parameter specifies the MP wrapper to use, allowing for customization.</p></li>
<li><p><cite>add_mp_types</cite> can be used to specify additional MP types to register alongside the base environment.</p></li>
<li><p>The <cite>base_id</cite> parameter should match the ID of the existing Gymnasium environment you wish to upgrade.</p></li>
<li><p><cite>mp_config_override</cite> allows for customizing MP configuration if needed.</p></li>
</ul>
</dd>
<dt>Example:</dt><dd><p>To upgrade an existing environment with MP versions: