Skip to content

Commit

Permalink
前進守備をやめる
Browse files Browse the repository at this point in the history
  • Loading branch information
HansRobo committed Jan 15, 2025
1 parent 13306f4 commit 1e421b4
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions session/crane_planner_plugins/src/total_defense_planner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,7 @@ TotalDefensePlanner::calculateRobotCommand(
}
}

std::vector<Point> defense_points = [&]() {
// フィールド横幅の半分よりボールが遠ければ円弧守備に移行
if (
world_model->getDistanceFromBall(world_model->getOurGoalCenter()) <
world_model->field_size.y() * 0.5) {
return getDefenseLinePoints(defender_robots.size(), ball_line);
} else {
return getDefenseArcPoints(defender_robots.size(), ball_line);
}
}();
std::vector<Point> defense_points = getDefenseLinePoints(defender_robots.size(), ball_line);

if (not defense_points.empty()) {
std::vector<Point> robot_points;
Expand Down

0 comments on commit 1e421b4

Please sign in to comment.