/home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/include/obstacle_stop_planner/adaptive_cruise_control.hpp:205:43: warning: function 'obstacle_stop_planner::AdaptiveCruiseController::insertMaxVelocityToPath' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name] autoware_planning_msgs::msg::Trajectory insertMaxVelocityToPath( ^ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:473:27: note: the definition seen here AdaptiveCruiseController::insertMaxVelocityToPath( ^ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/include/obstacle_stop_planner/adaptive_cruise_control.hpp:205:43: note: differing parameters are named here: ('output_trajectory'), in definition: ('input_trajectory') autoware_planning_msgs::msg::Trajectory insertMaxVelocityToPath( ^ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:15:10: error: 'algorithm' file not found [clang-diagnostic-error] #include ^ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:34:1: warning: constructor does not initialize these fields: pub_debug_, prev_collision_point_, est_vel_que_, param_ [cppcoreguidelines-pro-type-member-init] AdaptiveCruiseController::AdaptiveCruiseController( ^ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:44:15: warning: variable 'acc_ns' is not initialized [cppcoreguidelines-init-variables] std::string acc_ns = "adaptive_cruise_control."; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:109:34: warning: parameter 'self_pose' is unused [misc-unused-parameters] const geometry_msgs::msg::Pose self_pose, const Point2d & nearest_collision_point, ^~~~~~~~~ /*self_pose*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:109:61: warning: parameter 'nearest_collision_point' is unused [misc-unused-parameters] const geometry_msgs::msg::Pose self_pose, const Point2d & nearest_collision_point, ^~~~~~~~~~~~~~~~~~~~~~~ /*nearest_collision_point*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:111:75: warning: parameter 'object_ptr' is unused [misc-unused-parameters] const autoware_perception_msgs::msg::DynamicObjectArray::ConstSharedPtr object_ptr, ^~~~~~~~~~ /*object_ptr*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:112:58: warning: parameter 'current_velocity_ptr' is unused [misc-unused-parameters] const geometry_msgs::msg::TwistStamped::ConstSharedPtr current_velocity_ptr, ^~~~~~~~~~~~~~~~~~~~ /*current_velocity_ptr*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:118:16: warning: variable 'current_velocity' is not initialized [cppcoreguidelines-init-variables] const double current_velocity = current_velocity_ptr->twist.linear.x; ^ = NAN /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:126:10: warning: variable 'col_point_distance' is not initialized [cppcoreguidelines-init-variables] double col_point_distance = calcDistanceToNearestPointOnPath( ^ = NAN /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:187:63: warning: parameter 'nearest_collision_point' is unused [misc-unused-parameters] const geometry_msgs::msg::Pose & self_pose, const Point2d & nearest_collision_point, ^~~~~~~~~~~~~~~~~~~~~~~ /*nearest_collision_point*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:190:10: warning: variable 'distance' is not initialized [cppcoreguidelines-init-variables] double distance; ^ = NAN /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:254:75: warning: parameter 'object_ptr' is unused [misc-unused-parameters] const autoware_perception_msgs::msg::DynamicObjectArray::ConstSharedPtr object_ptr, ^~~~~~~~~~ /*object_ptr*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:256:19: warning: parameter 'nearest_collision_point' is unused [misc-unused-parameters] const Point2d & nearest_collision_point, ^~~~~~~~~~~~~~~~~~~~~~~ /*nearest_collision_point*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:261:10: warning: variable 'obj_vel' is not initialized [cppcoreguidelines-init-variables] double obj_vel; ^ = NAN /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:262:10: warning: variable 'obj_yaw' is not initialized [cppcoreguidelines-init-variables] double obj_yaw; ^ = NAN /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:285:42: warning: parameter 'nearest_collision_point' is unused [misc-unused-parameters] const double traj_yaw, const Point2d & nearest_collision_point, ^~~~~~~~~~~~~~~~~~~~~~~ /*nearest_collision_point*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:301:18: warning: variable 'p_dist' is not initialized [cppcoreguidelines-init-variables] const double p_dist = boost::geometry::distance(nearest_collision_point, prev_collision_point_); ^ = NAN /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:303:18: warning: variable 'p_yaw' is not initialized [cppcoreguidelines-init-variables] const double p_yaw = std::atan2(p_diff.x(), p_diff.y()); ^ = NAN /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:305:18: warning: variable 'est_velocity' is not initialized [cppcoreguidelines-init-variables] const double est_velocity = p_vel * std::cos(p_yaw - traj_yaw); ^ = NAN /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:363:16: warning: variable 'upper_velocity' is not initialized [cppcoreguidelines-init-variables] const double upper_velocity = ^ = NAN /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:372:34: warning: method 'calcThreshDistToForwardObstacle' can be made const [readability-make-member-function-const] double AdaptiveCruiseController::calcThreshDistToForwardObstacle( ^ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:375:16: warning: variable 'current_vel_min' is not initialized [cppcoreguidelines-init-variables] const double current_vel_min = std::max(1.0, std::fabs(current_vel)); ^ = NAN /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:376:16: warning: variable 'obj_vel_min' is not initialized [cppcoreguidelines-init-variables] const double obj_vel_min = std::max(0.0, obj_vel); ^ = NAN /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:389:34: warning: method 'calcBaseDistToForwardObstacle' can be made const [readability-make-member-function-const] double AdaptiveCruiseController::calcBaseDistToForwardObstacle( ^ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:392:16: warning: variable 'obj_vel_min' is not initialized [cppcoreguidelines-init-variables] const double obj_vel_min = std::max(0.0, obj_vel); ^ = NAN /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:404:34: warning: method 'calcTargetVelocity_P' can be made const [readability-make-member-function-const] double AdaptiveCruiseController::calcTargetVelocity_P( ^ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:408:10: warning: variable 'add_vel_p' is not initialized [cppcoreguidelines-init-variables] double add_vel_p; ^ = NAN /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:417:34: warning: method 'calcTargetVelocity_I' can be made static [readability-convert-member-functions-to-static] double AdaptiveCruiseController::calcTargetVelocity_I( ^ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:418:16: warning: parameter 'target_dist' is unused [misc-unused-parameters] const double target_dist, const double current_dist) ^~~~~~~~~~~ /*target_dist*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:418:42: warning: parameter 'current_dist' is unused [misc-unused-parameters] const double target_dist, const double current_dist) ^~~~~~~~~~~~ /*current_dist*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:427:61: warning: static member accessed through instance [readability-static-accessed-through-instance] if (node_->now().seconds() - prev_target_vehicle_time_ >= param_.d_coeff_valid_time) { ^~~~~~~ obstacle_stop_planner::AdaptiveCruiseController::Param:: /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:443:51: warning: static member accessed through instance [readability-static-accessed-through-instance] add_vel_d = boost::algorithm::clamp(add_vel_d, -param_.d_max_vel_norm, param_.d_max_vel_norm); ^~~~~~~ obstacle_stop_planner::AdaptiveCruiseController::Param:: /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:443:74: warning: static member accessed through instance [readability-static-accessed-through-instance] add_vel_d = boost::algorithm::clamp(add_vel_d, -param_.d_max_vel_norm, param_.d_max_vel_norm); ^~~~~~~ obstacle_stop_planner::AdaptiveCruiseController::Param:: /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:474:36: warning: parameter 'self_pose' is unused [misc-unused-parameters] const geometry_msgs::msg::Pose & self_pose, const double current_vel, const double target_vel, ^~~~~~~~~ /*self_pose*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:482:10: warning: variable 'target_acc' is not initialized [cppcoreguidelines-init-variables] double target_acc = (std::pow(target_vel, 2) - std::pow(current_vel, 2)) / (2 * margin_to_insert); ^ = NAN /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:522:32: warning: method 'registerQueToVelocity' can be made static [readability-convert-member-functions-to-static] void AdaptiveCruiseController::registerQueToVelocity( ^ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:536:12: warning: variable 'delete_idx' is not initialized [cppcoreguidelines-init-variables] for (int delete_idx = delete_idxs.size() - 1; 0 <= delete_idx; --delete_idx) { ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:548:57: warning: parameter 'vel_que' is unused [misc-unused-parameters] const std::vector & vel_que) ^~~~~~~ /*vel_que*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:560:10: warning: variable 'med_vel' is not initialized [cppcoreguidelines-init-variables] double med_vel; ^ = NAN /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:562:12: warning: variable 'med1' is not initialized [cppcoreguidelines-init-variables] size_t med1 = (raw_vel_que.size()) / 2 - 1; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:563:12: warning: variable 'med2' is not initialized [cppcoreguidelines-init-variables] size_t med2 = (raw_vel_que.size()) / 2; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:565:18: warning: variable 'vel1' is not initialized [cppcoreguidelines-init-variables] const double vel1 = raw_vel_que[med1]; ^ = NAN /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:567:18: warning: variable 'vel2' is not initialized [cppcoreguidelines-init-variables] const double vel2 = raw_vel_que[med2]; ^ = NAN /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:570:12: warning: variable 'med' is not initialized [cppcoreguidelines-init-variables] size_t med = (raw_vel_que.size() - 1) / 2; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp:578:34: warning: method 'lowpass_filter' can be made static [readability-convert-member-functions-to-static] double AdaptiveCruiseController::lowpass_filter( ^ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:15:10: error: 'memory' file not found [clang-diagnostic-error] #include ^ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:23:1: warning: constructor does not initialize these fields: debug_viz_pub_, stop_reason_pub_, stop_pose_ptr_, slow_down_start_pose_ptr_, slow_down_end_pose_ptr_, stop_obstacle_point_ptr_, slow_down_obstacle_point_ptr_, vehicle_polygons_, slow_down_range_polygons_, collision_polygons_, slow_down_polygons_ [cppcoreguidelines-pro-type-member-init] ObstacleStopPlannerDebugNode::ObstacleStopPlannerDebugNode( ^ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:32:36: warning: method 'pushPolygon' can be made static [readability-convert-member-functions-to-static] bool ObstacleStopPlannerDebugNode::pushPolygon( ^ static /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:33:21: warning: parameter 'polygon' is unused [misc-unused-parameters] const Polygon2d & polygon, const double z, const PolygonType & type) ^~~~~~~ /*polygon*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:35:13: warning: variable 'polygon3d' is not initialized [cppcoreguidelines-init-variables] Polygon3d polygon3d; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:42:36: warning: method 'pushPolygon' can be made static [readability-convert-member-functions-to-static] bool ObstacleStopPlannerDebugNode::pushPolygon( ^ static /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:43:21: warning: parameter 'polygon' is unused [misc-unused-parameters] const Polygon3d & polygon, const PolygonType & type) ^~~~~~~ /*polygon*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:46:5: warning: switch has 4 consecutive identical branches [bugprone-branch-clone] case PolygonType::Vehicle: ^ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:57:18: note: last of these clones ends here return true; ^ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:63:36: warning: method 'pushPose' can be made static [readability-convert-member-functions-to-static] bool ObstacleStopPlannerDebugNode::pushPose( ^ static /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:64:36: warning: parameter 'pose' is unused [misc-unused-parameters] const geometry_msgs::msg::Pose & pose, ^~~~ /*pose*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:68:5: warning: switch has 3 consecutive identical branches [bugprone-branch-clone] case PoseType::Stop: ^ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:76:18: note: last of these clones ends here return true; ^ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:82:36: warning: method 'pushObstaclePoint' can be made static [readability-convert-member-functions-to-static] bool ObstacleStopPlannerDebugNode::pushObstaclePoint( ^ static /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:83:37: warning: parameter 'obstacle_point' is unused [misc-unused-parameters] const geometry_msgs::msg::Point & obstacle_point, const PointType & type) ^~~~~~~~~~~~~~ /*obstacle_point*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:86:5: warning: switch has 2 consecutive identical branches [bugprone-branch-clone] case PointType::Stop: ^ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:91:18: note: last of these clones ends here return true; ^ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:103:36: warning: method 'publish' can be made static [readability-convert-member-functions-to-static] void ObstacleStopPlannerDebugNode::publish() ^ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:127:40: warning: variable 'msg' is not initialized [cppcoreguidelines-init-variables] visualization_msgs::msg::MarkerArray msg; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:134:37: warning: variable 'marker' is not initialized [cppcoreguidelines-init-variables] visualization_msgs::msg::Marker marker; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:181:37: warning: variable 'marker' is not initialized [cppcoreguidelines-init-variables] visualization_msgs::msg::Marker marker; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:229:37: warning: variable 'marker' is not initialized [cppcoreguidelines-init-variables] visualization_msgs::msg::Marker marker; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:277:37: warning: variable 'marker' is not initialized [cppcoreguidelines-init-variables] visualization_msgs::msg::Marker marker; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:325:37: warning: variable 'marker' is not initialized [cppcoreguidelines-init-variables] visualization_msgs::msg::Marker marker; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:349:37: warning: variable 'marker' is not initialized [cppcoreguidelines-init-variables] visualization_msgs::msg::Marker marker; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:374:37: warning: variable 'marker' is not initialized [cppcoreguidelines-init-variables] visualization_msgs::msg::Marker marker; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:398:37: warning: variable 'marker' is not initialized [cppcoreguidelines-init-variables] visualization_msgs::msg::Marker marker; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:423:37: warning: variable 'marker' is not initialized [cppcoreguidelines-init-variables] visualization_msgs::msg::Marker marker; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:447:37: warning: variable 'marker' is not initialized [cppcoreguidelines-init-variables] visualization_msgs::msg::Marker marker; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:472:37: warning: variable 'marker' is not initialized [cppcoreguidelines-init-variables] visualization_msgs::msg::Marker marker; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:496:37: warning: variable 'marker' is not initialized [cppcoreguidelines-init-variables] visualization_msgs::msg::Marker marker; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:522:37: warning: variable 'marker' is not initialized [cppcoreguidelines-init-variables] visualization_msgs::msg::Marker marker; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:546:37: warning: variable 'marker' is not initialized [cppcoreguidelines-init-variables] visualization_msgs::msg::Marker marker; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:577:25: warning: variable 'header' is not initialized [cppcoreguidelines-init-variables] std_msgs::msg::Header header; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:582:43: warning: variable 'stop_reason_msg' is not initialized [cppcoreguidelines-init-variables] autoware_planning_msgs::msg::StopReason stop_reason_msg; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:584:43: warning: variable 'stop_factor' is not initialized [cppcoreguidelines-init-variables] autoware_planning_msgs::msg::StopFactor stop_factor; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/debug_marker.cpp:595:48: warning: variable 'stop_reason_array' is not initialized [cppcoreguidelines-init-variables] autoware_planning_msgs::msg::StopReasonArray stop_reason_array; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/main.cpp:15:10: error: 'memory' file not found [clang-diagnostic-error] #include ^ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/node.cpp:15:10: error: 'algorithm' file not found [clang-diagnostic-error] #include ^ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/node.cpp:45:1: warning: constructor does not initialize these fields: path_sub_, obstacle_pointcloud_sub_, current_velocity_sub_, dynamic_object_sub_, expand_stop_range_sub_, path_pub_, debug_ptr_, acc_controller_, current_velocity_ptr_, object_ptr_ [cppcoreguidelines-pro-type-member-init] ObstacleStopPlannerNode::ObstacleStopPlannerNode() ^ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/node.cpp:137:65: warning: parameter 'input_msg' is unused [misc-unused-parameters] const autoware_planning_msgs::msg::Trajectory::ConstSharedPtr input_msg) ^~~~~~~~~ /*input_msg*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/node.cpp:161:10: warning: variable 'trajectory_trim_index' is not initialized [cppcoreguidelines-init-variables] size_t trajectory_trim_index; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/node.cpp:188:10: warning: variable 'decimate_trajectory_collision_index' is not initialized [cppcoreguidelines-init-variables] size_t decimate_trajectory_collision_index; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/node.cpp:189:11: warning: variable 'nearest_collision_point' is not initialized [cppcoreguidelines-init-variables] Point3d nearest_collision_point; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/node.cpp:194:10: warning: variable 'decimate_trajectory_slow_down_index' is not initialized [cppcoreguidelines-init-variables] size_t decimate_trajectory_slow_down_index; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/node.cpp:195:11: warning: variable 'nearest_slow_down_point' is not initialized [cppcoreguidelines-init-variables] Point3d nearest_slow_down_point; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/node.cpp:335:45: warning: parameter 'slow_down_pointcloud' is unused [misc-unused-parameters] const pcl::PointCloud::Ptr slow_down_pointcloud, ^~~~~~~~~~~~~~~~~~~~ /*slow_down_pointcloud*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/node.cpp:336:19: warning: parameter 'prev_center_point' is unused [misc-unused-parameters] const Point2d & prev_center_point, ^~~~~~~~~~~~~~~~~ /*prev_center_point*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/node.cpp:337:19: warning: parameter 'next_center_point' is unused [misc-unused-parameters] const Point2d & next_center_point, ^~~~~~~~~~~~~~~~~ /*next_center_point*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/node.cpp:339:21: warning: parameter 'one_step_polygon' is unused [misc-unused-parameters] const Polygon2d & one_step_polygon, ^~~~~~~~~~~~~~~~ /*one_step_polygon*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/node.cpp:341:45: warning: parameter 'collision_pointcloud' is unused [misc-unused-parameters] const pcl::PointCloud::Ptr collision_pointcloud, ^~~~~~~~~~~~~~~~~~~~ /*collision_pointcloud*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/node.cpp:370:45: warning: parameter 'obstacle_candidate_pointcloud' is unused [misc-unused-parameters] const pcl::PointCloud::Ptr obstacle_candidate_pointcloud, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /*obstacle_candidate_pointcloud*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/node.cpp:371:19: warning: parameter 'prev_center_point' is unused [misc-unused-parameters] const Point2d & prev_center_point, ^~~~~~~~~~~~~~~~~ /*prev_center_point*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/node.cpp:372:19: warning: parameter 'next_center_point' is unused [misc-unused-parameters] const Point2d & next_center_point, ^~~~~~~~~~~~~~~~~ /*next_center_point*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/node.cpp:374:21: warning: parameter 'one_step_polygon' is unused [misc-unused-parameters] const Polygon2d & one_step_polygon, ^~~~~~~~~~~~~~~~ /*one_step_polygon*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/node.cpp:375:45: warning: parameter 'slow_down_pointcloud' is unused [misc-unused-parameters] const pcl::PointCloud::Ptr slow_down_pointcloud, ^~~~~~~~~~~~~~~~~~~~ /*slow_down_pointcloud*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/node.cpp:381:3: warning: if with identical then and else branches [bugprone-branch-clone] if (!is_slow_down && enable_slow_down) { ^ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/node.cpp:395:5: note: else branch starts here } else { ^ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/node.cpp:401:66: warning: method 'insertSlowDownPoint' can be made static [readability-convert-member-functions-to-static] autoware_planning_msgs::msg::Trajectory ObstacleStopPlannerNode::insertSlowDownPoint( ^ static /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/node.cpp:404:19: warning: parameter 'nearest_slow_down_point' is unused [misc-unused-parameters] const Point2d & nearest_slow_down_point, ^~~~~~~~~~~~~~~~~~~~~~~ /*nearest_slow_down_point*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/node.cpp:444:66: warning: method 'insertStopPoint' can be made static [readability-convert-member-functions-to-static] autoware_planning_msgs::msg::Trajectory ObstacleStopPlannerNode::insertStopPoint( ^ static /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/node.cpp:447:19: warning: parameter 'nearest_collision_point' is unused [misc-unused-parameters] const Point2d & nearest_collision_point, ^~~~~~~~~~~~~~~~~~~~~~~ /*nearest_collision_point*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/node.cpp:489:66: warning: method 'insertSlowDownVelocity' can be made static [readability-convert-member-functions-to-static] autoware_planning_msgs::msg::Trajectory ObstacleStopPlannerNode::insertSlowDownVelocity( ^ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/node.cpp:542:33: warning: parameter 'header' is unused [misc-unused-parameters] const std_msgs::msg::Header & header, const tf2_ros::Buffer & tf_buffer) ^~~~~~ /*header*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/node.cpp:544:28: warning: variable 'self_pose' is not initialized [cppcoreguidelines-init-variables] geometry_msgs::msg::Pose self_pose; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/node.cpp:546:42: warning: variable 'transform' is not initialized [cppcoreguidelines-init-variables] geometry_msgs::msg::TransformStamped transform; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/obstacle_point_cloud.cpp:15:10: error: 'memory' file not found [clang-diagnostic-error] #include ^ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/obstacle_point_cloud.cpp:24:1: warning: constructor does not initialize these fields: obstacle_ros_pointcloud_ptr_ [cppcoreguidelines-pro-type-member-init] ObstaclePointCloud::ObstaclePointCloud(const rclcpp::Logger & logger) ^ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/obstacle_point_cloud.cpp:29:26: warning: method 'updatePointCloud' can be made static [readability-convert-member-functions-to-static] void ObstaclePointCloud::updatePointCloud(const sensor_msgs::msg::PointCloud2::ConstSharedPtr msg) ^ static /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/obstacle_point_cloud.cpp:29:95: warning: parameter 'msg' is unused [misc-unused-parameters] void ObstaclePointCloud::updatePointCloud(const sensor_msgs::msg::PointCloud2::ConstSharedPtr msg) ^~~ /*msg*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/obstacle_point_cloud.cpp:75:19: warning: variable 'affine_matrix' is not initialized [cppcoreguidelines-init-variables] Eigen::Matrix4f affine_matrix = ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/obstacle_point_cloud.cpp:97:45: warning: parameter 'input_pointcloud_ptr' is unused [misc-unused-parameters] const pcl::PointCloud::Ptr input_pointcloud_ptr, ^~~~~~~~~~~~~~~~~~~~ /*input_pointcloud_ptr*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:15:10: error: 'limits' file not found [clang-diagnostic-error] #include ^ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:24:1: warning: return type 'const int' is 'const'-qualified at the top level, which may reduce code readability without improving const correctness [readability-const-return-type] const Point3d pointXYZtoPoint3d(pcl::PointXYZ point) ^~~~~~ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:30:19: warning: parameter 'line_point1' is unused [misc-unused-parameters] const Point2d & line_point1, const Point2d & line_point2, ^~~~~~~~~~~ /*line_point1*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:30:48: warning: parameter 'line_point2' is unused [misc-unused-parameters] const Point2d & line_point1, const Point2d & line_point2, ^~~~~~~~~~~ /*line_point2*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:31:19: warning: parameter 'base_point' is unused [misc-unused-parameters] const Point2d & base_point, const double backward_length) const ^~~~~~~~~~ /*base_point*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:39:27: warning: method 'getNearestPoint' can be made static [readability-convert-member-functions-to-static] PointStamped PointHelper::getNearestPoint( ^ static /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:41:36: warning: parameter 'base_pose' is unused [misc-unused-parameters] const geometry_msgs::msg::Pose & base_pose) const ^~~~~~~~~ /*base_pose*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:43:16: warning: variable 'yaw' is not initialized [cppcoreguidelines-init-variables] const double yaw = getYawFromQuaternion(base_pose.orientation); ^ = NAN /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:44:11: warning: variable 'base_pose_vec' is not initialized [cppcoreguidelines-init-variables] Point2d base_pose_vec {std::cos(yaw), std::sin(yaw)}; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:46:11: warning: variable 'pointcloud_vec' is not initialized [cppcoreguidelines-init-variables] Point2d pointcloud_vec { ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:49:10: warning: variable 'min_norm' is not initialized [cppcoreguidelines-init-variables] double min_norm = base_pose_vec.dot(pointcloud_vec); ^ = NAN /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:69:29: warning: method 'getLateralNearestPoint' can be made static [readability-convert-member-functions-to-static] PointDeviation PointHelper::getLateralNearestPoint( ^ static /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:71:36: warning: parameter 'base_pose' is unused [misc-unused-parameters] const geometry_msgs::msg::Pose & base_pose) const ^~~~~~~~~ /*base_pose*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:73:10: warning: variable 'min_norm' is not initialized [cppcoreguidelines-init-variables] double min_norm = std::numeric_limits::max(); ^ = NAN /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:74:16: warning: variable 'yaw' is not initialized [cppcoreguidelines-init-variables] const double yaw = getYawFromQuaternion(base_pose.orientation); ^ = NAN /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:75:11: warning: variable 'base_pose_vec' is not initialized [cppcoreguidelines-init-variables] Point2d base_pose_vec {std::cos(yaw), std::sin(yaw)}; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:96:81: warning: parameter 'base_path' is unused [misc-unused-parameters] const StopPoint & stop_point, const autoware_planning_msgs::msg::Trajectory & base_path, ^~~~~~~~~ /*base_path*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:97:51: warning: parameter 'input_path' is unused [misc-unused-parameters] const autoware_planning_msgs::msg::Trajectory & input_path) const ^~~~~~~~~~ /*input_path*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:100:48: warning: variable 'stop_trajectory_point' is not initialized [cppcoreguidelines-init-variables] autoware_planning_msgs::msg::TrajectoryPoint stop_trajectory_point = ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:112:24: warning: method 'searchInsertPoint' can be made static [readability-convert-member-functions-to-static] StopPoint PointHelper::searchInsertPoint( ^ static /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:113:66: warning: parameter 'base_path' is unused [misc-unused-parameters] const int idx, const autoware_planning_msgs::msg::Trajectory & base_path, ^~~~~~~~~ /*base_path*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:114:19: warning: parameter 'trajectory_vec' is unused [misc-unused-parameters] const Point2d & trajectory_vec, const Point2d & collision_point_vec) const ^~~~~~~~~~~~~~ /*trajectory_vec*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:114:51: warning: parameter 'collision_point_vec' is unused [misc-unused-parameters] const Point2d & trajectory_vec, const Point2d & collision_point_vec) const ^~~~~~~~~~~~~~~~~~~ /*collision_point_vec*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:125:12: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables] for (int j = max_dist_stop_point.index - 1; j < static_cast(idx); ++j) { ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:140:24: warning: method 'createTargetPoint' can be made static [readability-convert-member-functions-to-static] StopPoint PointHelper::createTargetPoint( ^ static /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:141:55: warning: parameter 'trajectory_vec' is unused [misc-unused-parameters] const int idx, const double margin, const Point2d & trajectory_vec, ^~~~~~~~~~~~~~ /*trajectory_vec*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:142:19: warning: parameter 'collision_point_vec' is unused [misc-unused-parameters] const Point2d & collision_point_vec, ^~~~~~~~~~~~~~~~~~~ /*collision_point_vec*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:143:51: warning: parameter 'base_path' is unused [misc-unused-parameters] const autoware_planning_msgs::msg::Trajectory & base_path) const ^~~~~~~~~ /*base_path*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:147:11: warning: variable 'line_start_point' is not initialized [cppcoreguidelines-init-variables] Point2d line_start_point = autoware_utils::fromMsg(base_path.points.at(0).pose.position).to_2d(); ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:148:16: warning: variable 'yaw' is not initialized [cppcoreguidelines-init-variables] const double yaw = getYawFromQuaternion(base_path.points.at(0).pose.orientation); ^ = NAN /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:149:11: warning: variable 'line_end_point' is not initialized [cppcoreguidelines-init-variables] Point2d line_end_point {std::cos(yaw), std::sin(yaw)}; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:167:28: warning: method 'createSlowDownStartPoint' can be made static [readability-convert-member-functions-to-static] SlowDownPoint PointHelper::createSlowDownStartPoint( ^ static /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:169:19: warning: parameter 'trajectory_vec' is unused [misc-unused-parameters] const Point2d & trajectory_vec, const Point2d & slow_down_point_vec, ^~~~~~~~~~~~~~ /*trajectory_vec*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:169:51: warning: parameter 'slow_down_point_vec' is unused [misc-unused-parameters] const Point2d & trajectory_vec, const Point2d & slow_down_point_vec, ^~~~~~~~~~~~~~~~~~~ /*slow_down_point_vec*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:170:51: warning: parameter 'base_path' is unused [misc-unused-parameters] const autoware_planning_msgs::msg::Trajectory & base_path, ^~~~~~~~~ /*base_path*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:173:10: warning: variable 'length_sum' is not initialized [cppcoreguidelines-init-variables] double length_sum = trajectory_vec.normalized().dot(slow_down_point_vec); ^ = NAN /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:174:11: warning: variable 'line_start_point' is not initialized [cppcoreguidelines-init-variables] Point2d line_start_point = autoware_utils::fromMsg(base_path.points.at(0).pose.position).to_2d(); ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:175:16: warning: variable 'yaw' is not initialized [cppcoreguidelines-init-variables] const double yaw = getYawFromQuaternion(base_path.points.at(0).pose.orientation); ^ = NAN /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:176:11: warning: variable 'line_end_point' is not initialized [cppcoreguidelines-init-variables] Point2d line_end_point {std::cos(yaw), std::sin(yaw)}; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:202:51: warning: parameter 'base_path' is unused [misc-unused-parameters] const autoware_planning_msgs::msg::Trajectory & base_path, ^~~~~~~~~ /*base_path*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:203:51: warning: parameter 'input_path' is unused [misc-unused-parameters] const autoware_planning_msgs::msg::Trajectory & input_path) const ^~~~~~~~~~ /*input_path*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:207:48: warning: variable 'slow_down_start_trajectory_point' is not initialized [cppcoreguidelines-init-variables] autoware_planning_msgs::msg::TrajectoryPoint slow_down_start_trajectory_point = ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:219:56: warning: parameter 'goal_point' is unused [misc-unused-parameters] const autoware_planning_msgs::msg::TrajectoryPoint & goal_point) const ^~~~~~~~~~ /*goal_point*/ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:229:28: warning: variable 'extend_pose' is not initialized [cppcoreguidelines-init-variables] geometry_msgs::msg::Pose extend_pose; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/point_helper.cpp:231:48: warning: variable 'extend_trajectory_point' is not initialized [cppcoreguidelines-init-variables] autoware_planning_msgs::msg::TrajectoryPoint extend_trajectory_point; ^ = 0 /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/trajectory.cpp:15:10: error: 'map' file not found [clang-diagnostic-error] #include ^ /home/kmiya/work/obstacle_stop_planner_refine/obstacle_stop_planner_refine/src/trajectory.cpp:82:10: warning: variable 'min_distance' is not initialized [cppcoreguidelines-init-variables] double min_distance = boost::geometry::distance(input_point.to_2d(), self_point.to_2d()); ^ = NAN