(self, physics)
Sets the state of the environment at the start of each episode.

    Args:
      physics: An instance of `Physics`.
Sets the state of the environment at the start of each episode.
Sets the state of the environment at the start of each episode .
def initialize_episode(self, physics):
    """Sets the state of the environment at the start of each episode.

    Args:
      physics: An instance of `Physics`.

    """
    # Initial configuration.
    orientation = self.random.randn(4)
    orientation /= np.linalg.norm(orientation)
    _find_non_contacting_height(physics, orientation)
    super().initialize_episode(physics)
def initialize_episode ( self , physics ) : # Initial configuration. orientation = self . random . randn ( 4 ) orientation /= np . linalg . norm ( orientation ) _find_non_contacting_height ( physics , orientation ) super ( ) . initialize_episode ( physics )