(self, time_elapsed, paused)
Advances the simulation by one frame.

    Args:
      time_elapsed: Time elapsed since the last time this method was called.
      paused: A boolean flag telling if the  simulation is paused.
    Returns:
      A boolean flag to determine if the episode has finished.
Advances the simulation by one frame.
Advances the simulation by one frame .
def tick(self, time_elapsed, paused):
    """Advances the simulation by one frame.

    Args:
      time_elapsed: Time elapsed since the last time this method was called.
      paused: A boolean flag telling if the  simulation is paused.
    Returns:
      A boolean flag to determine if the episode has finished.
    """
    with self._simulation_timer.measure_time():
      if self._state == State.RESTARTING:
        self._state = State.START
      if self._state == State.START:
        if self._start():
          self._broadcast_episode_start()
          self._tracked_simulation_time = self.get_time()
          self._state = State.RUNNING
        else:
          self._state = State.STOPPED
      if self._state == State.RUNNING:
        finished = self._step_simulation(time_elapsed, paused)
        if finished:
          self._state = State.STOP
      if self._state == State.STOP:
        self._state = State.STOPPED
def tick ( self , time_elapsed , paused ) : with self . _simulation_timer . measure_time ( ) : if self . _state == State . RESTARTING : self . _state = State . START if self . _state == State . START : if self . _start ( ) : self . _broadcast_episode_start ( ) self . _tracked_simulation_time = self . get_time ( ) self . _state = State . RUNNING else : self . _state = State . STOPPED if self . _state == State . RUNNING : finished = self . _step_simulation ( time_elapsed , paused ) if finished : self . _state = State . STOP if self . _state == State . STOP : self . _state = State . STOPPED