parameters: (env)
return_statement: return abs(roll) > 0.2 or abs(pitch) > 0.2 or pos[2] < 0.35
docstring: A default terminal condition for Laikago.
  
    Minitaur is considered as fallen if the base position is too low or the base
    tilts/rolls too much.
  
    Args:
      env: An instance of MinitaurGymEnv
  
    Returns:
      A boolean indicating if Minitaur is fallen.
docstring_summary: A default terminal condition for Laikago.
docstring_tokens: A default terminal condition for Laikago .
function: def default_terminal_condition_for_laikago(env):
    """A default terminal condition for Laikago.
  
    Minitaur is considered as fallen if the base position is too low or the base
    tilts/rolls too much.
  
    Args:
      env: An instance of MinitaurGymEnv
  
    Returns:
      A boolean indicating if Minitaur is fallen.
    """
    roll, pitch, _ = env.robot.base_roll_pitch_yaw
    pos = env_utils.get_robot_base_position(env.robot)
    return abs(roll) > 0.2 or abs(pitch) > 0.2 or pos[2] < 0.35
function_tokens: def default_terminal_condition_for_laikago ( env ) : roll , pitch , _ = env . robot . base_roll_pitch_yaw pos = env_utils . get_robot_base_position ( env . robot ) return abs ( roll ) > 0.2 or abs ( pitch ) > 0.2 or pos [ 2 ] < 0.35