You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assume the following is written in a bots get_output() function. It prints all the predicted locations of the ball.
ball_prediction=self.get_ball_prediction_struct()
ifball_predictionisnotNone:
foriinrange(0, ball_prediction.num_slices):
prediction_slice=ball_prediction.slices[i]
location=prediction_slice.physics.locationself.logger.info(f"At time {prediction_slice.game_seconds}, the ball will be at ({location.x}, {location.y}, {location.z})")