Skip to content

Commit a652798

Browse files
committed
デフェンスを増やし、Attackerを拠出することを許可
1 parent 19d0689 commit a652798

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

session/crane_planner_plugins/src/total_defense_planner.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ auto TotalDefensePlanner::getSelectedRobots(
238238
}
239239

240240
// TODO(HansRobo): Attackerを供出するかどうかの実装
241+
remaining_robots |= ranges::actions::remove_if(
242+
[&](auto elem) { return elem == world_model->getOurFrontier()->robot->id; });
241243

242244
// 直接脅威へのディフェンダー
243245
Segment ball_line{world_model->goal, world_model->ball.pos};

session/crane_session_controller/config/play_situation/INPLAY.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ sessions:
44
- name: emplace_robot
55
capacity: 1
66
- name: total_defense
7-
capacity: 3
7+
capacity: 4
88
- name: attacker_skill
99
capacity: 1
1010
- name: pass_receive

0 commit comments

Comments
 (0)