(self)
return np.linalg.norm(ball_pos - target_pos)
Returns the distance from the ball to the target.
Returns the distance from the ball to the target.
Returns the distance from the ball to the target .
def ball_to_target_distance(self):
    """Returns the distance from the ball to the target."""
    ball_pos, target_pos = self.named.data.geom_xpos[['ball', 'target']]
    return np.linalg.norm(ball_pos - target_pos)
def ball_to_target_distance ( self ) : ball_pos , target_pos = self . named . data . geom_xpos [ [ 'ball' , 'target' ] ] return np . linalg . norm ( ball_pos - target_pos )