Skip to content

Commit 523bdfd

Browse files
committed
avoid using reference for type double
Signed-off-by: Zhe Shen <lucidshenzhe@gmail.com>
1 parent 821cf29 commit 523bdfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

control/lane_departure_checker/src/lane_departure_checker_node/lane_departure_checker.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ double LaneDepartureChecker::calcLongitudinalDeviationDerivatives(
180180
const auto & ref_point = trajectory.points.at(nearest_idx);
181181

182182
const auto current_vel = input.current_odom->twist.twist.linear.x;
183-
const auto & ref_vel = ref_point.longitudinal_velocity_mps;
183+
const double ref_vel = ref_point.longitudinal_velocity_mps;
184184
deviation_longitudinal_vel = current_vel - ref_vel;
185185

186186
return deviation_longitudinal_vel;

0 commit comments

Comments
 (0)