File tree 1 file changed +6
-2
lines changed
planning/autoware_path_optimizer/src
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -477,8 +477,13 @@ std::vector<TrajectoryPoint> MPTOptimizer::optimizeTrajectory(const PlannerData
477
477
478
478
const auto get_prev_optimized_traj_points = [&]() {
479
479
if (prev_optimized_traj_points_ptr_) {
480
+ RCLCPP_WARN (logger_, " return the previous optimized_trajectory as exceptional behavior." );
480
481
return *prev_optimized_traj_points_ptr_;
481
482
}
483
+ RCLCPP_WARN (
484
+ logger_,
485
+ " Try to return the previous optimized_trajectory as exceptional behavior, "
486
+ " but this failure also. Then return path_smoother output." );
482
487
return traj_points;
483
488
};
484
489
@@ -505,8 +510,7 @@ std::vector<TrajectoryPoint> MPTOptimizer::optimizeTrajectory(const PlannerData
505
510
// 6. optimize steer angles
506
511
const auto optimized_variables = calcOptimizedSteerAngles (ref_points, obj_mat, const_mat);
507
512
if (!optimized_variables) {
508
- RCLCPP_INFO_EXPRESSION (
509
- logger_, enable_debug_info_, " return std::nullopt since could not solve qp" );
513
+ RCLCPP_WARN (logger_, " return std::nullopt since could not solve qp" );
510
514
return get_prev_optimized_traj_points ();
511
515
}
512
516
You can’t perform that action at this time.
0 commit comments