(self, physics)
return rewards.tolerance(physics.nose_to_target_dist(),
                             bounds=(0, target_size),
                             margin=5*target_size,
                             sigmoid='long_tail')
Returns a smooth reward.
Returns a smooth reward.
Returns a smooth reward .
def get_reward(self, physics):
    """Returns a smooth reward."""
    target_size = physics.named.model.geom_size['target', 0]
    return rewards.tolerance(physics.nose_to_target_dist(),
                             bounds=(0, target_size),
                             margin=5*target_size,
                             sigmoid='long_tail')
def get_reward ( self , physics ) : target_size = physics . named . model . geom_size [ 'target' , 0 ] return rewards . tolerance ( physics . nose_to_target_dist ( ) , bounds = ( 0 , target_size ) , margin = 5 * target_size , sigmoid = 'long_tail' )