ó
    Ìni  ã                   ó&   • S r SSKr " S S\5      rg)z/Abstract base class for environment randomizer.é    Nc                   ó`   • \ rS rSrSr\R                  r\R                  S 5       r	S r
S rSrg)ÚEnvRandomizerBaseé   z«Abstract base class for environment randomizer.

Randomizes physical parameters of the objects in the simulation and adds
perturbations to the stepping of the simulation.
c                 ó   • g)a  Randomize the simulated_objects in the environment.

Will be called at when env is reset. The physical parameters will be fixed
for that episode and be randomized again in the next environment.reset().

Args:
  env: The Minitaur gym environment to be randomized.
N© ©ÚselfÚenvs     Úi/home/james-whalen/.local/lib/python3.13/site-packages/pybullet_envs/minitaur/envs/env_randomizer_base.pyÚrandomize_envÚEnvRandomizerBase.randomize_env   s   € ð 	ó    c                 ó   • g)a_  Randomize environment steps.

Will be called at every environment step.

It is NOT recommended to use this for force / torque disturbance because
pybullet applyExternalForce/Torque only persist for single simulation step
not the entire env step which can contain multiple simulation steps.

Args:
  env: The Minitaur gym environment to be randomized.
Nr   r   s     r   Úrandomize_stepÚ EnvRandomizerBase.randomize_step   s   € ð 	r   c                 ó   • g)aJ  Randomize simulation sub steps.

Will be called at every simulation step. This is the correct place to add
random forces/torques.

Args:
  env: The Minitaur gym environment to be randomized.
  sub_step_index: Index of sub step, from 0 to N-1. N is the action repeat.
  num_sub_steps: Number of sub steps, equals to action repeat.
Nr   )r	   r
   Úsub_step_indexÚnum_sub_stepss       r   Úrandomize_sub_stepÚ$EnvRandomizerBase.randomize_sub_step)   s   € ð 	r   r   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__ÚabcÚABCMetaÚ__metaclass__Úabstractmethodr   r   r   Ú__static_attributes__r   r   r   r   r      s4   † ñð —+‘+€-à×Ññ		ó ð		ò	õ	r   r   )r   r   Úobjectr   r   r   r   Ú<module>r"      s   ðÙ 5ã 
ô.	˜õ .	r   