Skip to content

Commit 583dabe

Browse files
committed
add aditional assertion at standing_searcher bevytest
1 parent 1634932 commit 583dabe

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

crates/bevyhavior_simulator/src/bin/standing_searcher.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,24 @@ fn update(
6565
println!("Standing searcher after penalty");
6666
exit.send(AppExit::from_code(1));
6767
}
68+
if let MotionCommand::Walk {
69+
head: _,
70+
path: _,
71+
left_arm: _,
72+
right_arm: _,
73+
orientation_mode: _,
74+
speed: _,
75+
} = robots
76+
.iter_mut()
77+
.find(|robot| robot.parameters.player_number == PlayerNumber::Three)
78+
.unwrap()
79+
.database
80+
.main_outputs
81+
.motion_command
82+
{
83+
println!("Moving searcher after ball loss");
84+
exit.send(AppExit::from_code(1));
85+
}
6886
}
6987

7088
if time.ticks() == 5500 {

0 commit comments

Comments
 (0)