(self, physics)
return _upright_reward(physics) * move_reward
Returns a reward to the agent.
Returns a reward to the agent.
Returns a reward to the agent .
def get_reward(self, physics):
    """Returns a reward to the agent."""

    # Move reward term.
    move_reward = rewards.tolerance(
        physics.torso_velocity()[0],
        bounds=(self._desired_speed, float('inf')),
        margin=self._desired_speed,
        value_at_margin=0.5,
        sigmoid='linear')

    return _upright_reward(physics) * move_reward
def get_reward ( self , physics ) : # Move reward term. move_reward = rewards . tolerance ( physics . torso_velocity ( ) [ 0 ] , bounds = ( self . _desired_speed , float ( 'inf' ) ) , margin = self . _desired_speed , value_at_margin = 0.5 , sigmoid = 'linear' ) return _upright_reward ( physics ) * move_reward