(self)
return np.linalg.norm(ball_to_target[:2])
Returns horizontal distance from the ball to the target.
Returns horizontal distance from the ball to the target.
Returns horizontal distance from the ball to the target .
def ball_to_target_distance(self):
    """Returns horizontal distance from the ball to the target."""
    ball_to_target = (self.named.data.site_xpos['target'] -
                      self.named.data.xpos['ball'])
    return np.linalg.norm(ball_to_target[:2])
def ball_to_target_distance ( self ) : ball_to_target = ( self . named . data . site_xpos [ 'target' ] - self . named . data . xpos [ 'ball' ] ) return np . linalg . norm ( ball_to_target [ : 2 ] )