Skip to content

Commit a756a8a

Browse files
authored
Update src/bitbots_behavior/bitbots_blackboard/bitbots_blackboard/capsules/pathfinding_capsule.py
1 parent 8a8d54a commit a756a8a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/bitbots_behavior/bitbots_blackboard/bitbots_blackboard/capsules/pathfinding_capsule.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ def get_ball_goal(self, target: BallGoalType, distance: float, side_offset: floa
160160
ball_x, ball_y = self._blackboard.world_model.get_ball_position_xy()
161161

162162
# Play in any part of the opponents goal, not just the center
163+
# Adjust for the goal post width (-0.06)
163164
if abs(ball_y) < self._blackboard.world_model.goal_width / 2 - 0.06:
164165
goal_angle = 0
165166
# Play in the opposite direction if the ball is near the opponent goal back line

0 commit comments

Comments
 (0)