Skip to content

Commit f805b36

Browse files
pre-commit-ci[bot]beyzanurkaya
authored andcommitted
style(pre-commit): autofix
1 parent df98fc4 commit f805b36

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

planning/mission_planner/src/lanelet2_plugins/default_planner.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,7 @@ bool DefaultPlanner::is_goal_valid(
364364
for (const auto & gl_llt : goal_lanelets) {
365365
if (
366366
param_.check_footprint_inside_lanes &&
367-
!check_goal_footprint(
368-
gl_llt, combined_prev_lanelet, polygon_footprint, next_lane_length) &&
367+
!check_goal_footprint(gl_llt, combined_prev_lanelet, polygon_footprint, next_lane_length) &&
369368
!is_in_parking_lot(
370369
lanelet::utils::query::getAllParkingLots(lanelet_map_ptr_),
371370
lanelet::utils::conversion::toLaneletPoint(goal.position))) {

planning/route_handler/src/route_handler.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -2115,10 +2115,8 @@ bool RouteHandler::planPathLaneletsBetweenCheckpoints(
21152115
// Find lanelets for goal point.
21162116
lanelet::ConstLanelet goal_lanelet;
21172117
lanelet::ConstLanelets goal_lanelets;
2118-
if (!lanelet::utils::query::getCurrentLanelets(
2119-
road_lanelets_, goal_checkpoint, &goal_lanelets)) {
2120-
if (!lanelet::utils::query::getClosestLanelet(
2121-
road_lanelets_, goal_checkpoint, &goal_lanelet)) {
2118+
if (!lanelet::utils::query::getCurrentLanelets(road_lanelets_, goal_checkpoint, &goal_lanelets)) {
2119+
if (!lanelet::utils::query::getClosestLanelet(road_lanelets_, goal_checkpoint, &goal_lanelet)) {
21222120
RCLCPP_WARN_STREAM(
21232121
logger_, "Failed to find current lanelet."
21242122
<< std::endl

0 commit comments

Comments
 (0)