diff --git a/perception/map_based_prediction/src/path_generator.cpp b/perception/map_based_prediction/src/path_generator.cpp index 0850c55b3c248..e9348532ec1b9 100644 --- a/perception/map_based_prediction/src/path_generator.cpp +++ b/perception/map_based_prediction/src/path_generator.cpp @@ -345,8 +345,8 @@ PosePath PathGenerator::interpolateReferencePath( geometry_msgs::msg::Pose interpolated_pose; const auto current_point = tier4_autoware_utils::createPoint(lerp_ref_path_x.at(i), lerp_ref_path_y.at(i), 0.0); - const auto next_point = tier4_autoware_utils::createPoint( - lerp_ref_path_x.at(i + 1), lerp_ref_path_y.at(i + 1), 0.0); + const auto next_point = + tier4_autoware_utils::createPoint(lerp_ref_path_x.at(i + 1), lerp_ref_path_y.at(i + 1), 0.0); const double yaw = tier4_autoware_utils::calcAzimuthAngle(current_point, next_point); interpolated_pose.position = tier4_autoware_utils::createPoint( lerp_ref_path_x.at(i), lerp_ref_path_y.at(i), lerp_ref_path_z.at(i)); @@ -357,7 +357,6 @@ PosePath PathGenerator::interpolateReferencePath( lerp_ref_path_x.back(), lerp_ref_path_y.back(), lerp_ref_path_z.back()); interpolated_path.back().orientation = interpolated_path.at(interpolate_num - 2).orientation; - return interpolated_path; }