Skip to content

Commit 256369a

Browse files
pre-commit-ci[bot]beyza
authored and
beyza
committed
style(pre-commit): autofix
1 parent 5d943fc commit 256369a

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
@@ -358,8 +358,7 @@ bool DefaultPlanner::is_goal_valid(
358358
for (const auto & gl_llt : goal_lanelets) {
359359
if (
360360
param_.check_footprint_inside_lanes &&
361-
!check_goal_footprint(
362-
gl_llt, combined_prev_lanelet, polygon_footprint, next_lane_length) &&
361+
!check_goal_footprint(gl_llt, combined_prev_lanelet, polygon_footprint, next_lane_length) &&
363362
!is_in_parking_lot(
364363
lanelet::utils::query::getAllParkingLots(lanelet_map_ptr_),
365364
lanelet::utils::conversion::toLaneletPoint(goal.position))) {

planning/route_handler/src/route_handler.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -2110,10 +2110,8 @@ bool RouteHandler::planPathLaneletsBetweenCheckpoints(
21102110
// Find lanelets for goal point.
21112111
lanelet::ConstLanelet goal_lanelet;
21122112
lanelet::ConstLanelets goal_lanelets;
2113-
if (!lanelet::utils::query::getCurrentLanelets(
2114-
road_lanelets_, goal_checkpoint, &goal_lanelets)) {
2115-
if (!lanelet::utils::query::getClosestLanelet(
2116-
road_lanelets_, goal_checkpoint, &goal_lanelet)) {
2113+
if (!lanelet::utils::query::getCurrentLanelets(road_lanelets_, goal_checkpoint, &goal_lanelets)) {
2114+
if (!lanelet::utils::query::getClosestLanelet(road_lanelets_, goal_checkpoint, &goal_lanelet)) {
21172115
RCLCPP_WARN_STREAM(
21182116
logger_, "Failed to find current lanelet."
21192117
<< std::endl

0 commit comments

Comments
 (0)