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
Copy file name to clipboardExpand all lines: src/bitbots_behavior/bitbots_body_behavior/bitbots_body_behavior/behavior_dsd/decisions/whistle_detected.py
+3-6Lines changed: 3 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -7,14 +7,11 @@ class WhistleDetected(AbstractDecisionElement):
7
7
8
8
def__init__(self, blackboard, dsd, parameters):
9
9
super().__init__(blackboard, dsd, parameters)
10
+
self.bb=blackboard
11
+
self.bb.game_state_capsule.whistle_detected=False
10
12
11
13
defperform(self, reevaluate=False):
12
-
"""
13
-
Determines whether we are confident regarding the ball's position.
14
-
:param reevaluate:
15
-
:return:
16
-
"""
17
-
ifself.blackboard.world_model.ball_has_been_seen(): # TODO
OUR --> @Stand + duration:0.1 + r:false, @DeactivateHCM + r:false, @LookForward + r:false, @PlayAnimationInitInSim + r:false, @GetWalkready + r:false, @Stand // we need to also see the goalie
181
-
OTHER --> $BallSeen
182
-
YES --> @Stand + duration:0.1 + r:false, @DeactivateHCM + r:false, @LookForward + r:false, @PlayAnimationInitInSim + r:false, @GetWalkready + r:false, @TrackBall + r:false, @PlayAnimationGoalieArms + r:false, @Stand // goalie only needs to care about the ball
OUR --> @Stand + duration:0.1 + r:false, @DeactivateHCM + r:false, @LookForward + r:false, @PlayAnimationInitInSim + r:false, @GetWalkready + r:false, @Stand // we need to also see the goalie
193
+
OTHER --> $BallSeen
194
+
YES --> @Stand + duration:0.1 + r:false, @DeactivateHCM + r:false, @LookForward + r:false, @PlayAnimationInitInSim + r:false, @GetWalkready + r:false, @TrackBall + r:false, @PlayAnimationGoalieArms + r:false, @Stand // goalie only needs to care about the ball
0 commit comments