Skip to content

Commit 47d64b6

Browse files
make const
Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
1 parent 71755e1 commit 47d64b6

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)