Skip to content

Commit 614b005

Browse files
committed
zwischenstand behavior integration
1 parent 3b16541 commit 614b005

1 file changed

Lines changed: 52 additions & 8 deletions

File tree

  • src/bitbots_behavior/bitbots_body_behavior/bitbots_body_behavior/behavior_dsd

src/bitbots_behavior/bitbots_body_behavior/bitbots_body_behavior/behavior_dsd/main.dsd

Lines changed: 52 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,22 @@ $DoOnce
108108
SECOND --> @ChangeAction + action:positioning, @LookAtFieldFeatures, @AvoidBallActive, @GoToDefensePosition + mode:freekick_second
109109
THIRD --> @ChangeAction + action:positioning, @LookAtFieldFeatures, @AvoidBallActive, @GoToDefensePosition
110110

111+
#PlacingWithoutTeamCom
112+
$DoOnce
113+
NOT_DONE --> @ForgetBall, @LookAtFieldFeatures
114+
DONE --> $ConfigRole
115+
GOALIE --> @ChangeAction + action:positioning, @LookAtFieldFeatures, @GoToBlockPosition
116+
ELSE --> $BallSeen
117+
NO --> $SecondaryStateTeamDecider
118+
OUR --> #SearchBall
119+
OTHER --> @AvoidBallActive, @LookAtFieldFeatures, @WalkInPlace + duration:2, @GoToRelativePosition + x:1 + y:0 + t:0, @Stand
120+
//TODO
121+
YES --> $CountUnpenalizedRobots
122+
YES --> $RankToBallNoGoalieWithoutTeamCom
123+
FIRST --> @ChangeAction + action:positioning, @LookAtFieldFeatures, @AvoidBallActive, @GoToDefensePosition + mode:freekick_first
124+
SECOND --> @ChangeAction + action:positioning, @LookAtFieldFeatures, @AvoidBallActive, @GoToDefensePosition + mode:freekick_second
125+
THIRD --> @ChangeAction + action:positioning, @LookAtFieldFeatures, @AvoidBallActive, @GoToDefensePosition
126+
111127
#Init
112128
@Stand + duration:0.1 + r:false, @ChangeAction + action:waiting, @LookForward, @Stand
113129

@@ -130,15 +146,43 @@ $BallSeen
130146
SECOND --> #SupporterRole
131147
THIRD --> #DefensePositioning
132148

149+
#NormalBehaviorWithoutTeamCom
150+
$BallSeen
151+
NO --> $ConfigRole
152+
GOALIE --> #RolePositionWithPause
153+
ELSE --> #SearchBall
154+
YES --> $KickOffTimeUp
155+
NO_NORMAL --> #StandAndLook
156+
NO_FREEKICK --> #PlacingWithoutTeamCom
157+
YES --> $ConfigRole
158+
GOALIE --> #GoalieBehavior
159+
ELSE --> $CountActiveRobotsWithoutGoalie
160+
ONE --> $RankToBallNoGoalie
161+
FIRST --> #StrikerRole
162+
SECOND --> #DefensePositioning
163+
ELSE --> $RankToBallNoGoalie
164+
FIRST --> #StrikerRole
165+
SECOND --> #SupporterRole
166+
THIRD --> #DefensePositioning
167+
133168
#PlayingBehavior
134-
$SecondaryStateDecider
135-
PENALTYSHOOT --> #PenaltyShootoutBehavior
136-
TIMEOUT --> #StandAndLook
137-
ELSE --> $SecondaryStateTeamDecider
138-
OUR --> #NormalBehavior
139-
OTHER --> #Placing
140-
NORMAL --> #NormalBehavior
141-
OVERTIME --> #NormalBehavior
169+
$TeamComLimitReached
170+
YES --> $SecondaryStateDecider
171+
PENALTYSHOOT --> #PenaltyShootoutBehavior
172+
TIMEOUT --> #StandAndLook
173+
ELSE --> $SecondaryStateTeamDecider
174+
OUR --> #NormalBehaviorWithoutTeamCom
175+
OTHER --> #PlacingWithoutTeamCom
176+
NORMAL --> #NormalBehaviorWithoutTeamCom
177+
OVERTIME --> #NormalBehaviorWithoutTeamCom
178+
NO --> $SecondaryStateDecider
179+
PENALTYSHOOT --> #PenaltyShootoutBehavior
180+
TIMEOUT --> #StandAndLook
181+
ELSE --> $SecondaryStateTeamDecider
182+
OUR --> #NormalBehavior
183+
OTHER --> #Placing
184+
NORMAL --> #NormalBehavior
185+
OVERTIME --> #NormalBehavior
142186

143187
-->BodyBehavior
144188
$IsPenalized

0 commit comments

Comments
 (0)