Skip to content

Commit 8ee7e7a

Browse files
make const
Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
1 parent 24c89af commit 8ee7e7a

File tree

1 file changed

+1
-1
lines changed
  • planning/obstacle_cruise_planner/src

1 file changed

+1
-1
lines changed

planning/obstacle_cruise_planner/src/node.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ std::vector<Obstacle> ObstacleCruisePlannerNode::convertToObstacles(
640640
}
641641

642642
// 3. Check if rough lateral distance is smaller than the threshold
643-
double lat_dist_from_obstacle_to_traj =
643+
const double lat_dist_from_obstacle_to_traj =
644644
motion_utils::calcLateralOffset(traj_points, current_obstacle_pose.pose.position);
645645

646646
const double min_lat_dist_to_traj_poly = [&]() {

0 commit comments

Comments
 (0)