@@ -35,7 +35,7 @@ std::string jsonDumpsPose(const geometry_msgs::msg::Pose & pose)
35
35
}
36
36
37
37
diagnostic_msgs::msg::DiagnosticStatus makeStopReasonDiag (
38
- const std::string & stop_reason, const geometry_msgs::msg::Pose & stop_pose)
38
+ const std::string stop_reason, const geometry_msgs::msg::Pose & stop_pose)
39
39
{
40
40
diagnostic_msgs::msg::DiagnosticStatus stop_reason_diag;
41
41
diagnostic_msgs::msg::KeyValue stop_reason_diag_kv;
@@ -83,7 +83,7 @@ void BehaviorVelocityPlannerManager::removeScenePlugin(
83
83
{
84
84
auto it = std::remove_if (
85
85
scene_manager_plugins_.begin (), scene_manager_plugins_.end (),
86
- [&](const std::shared_ptr<behavior_velocity_planner::PluginInterface> & plugin) {
86
+ [&](const std::shared_ptr<behavior_velocity_planner::PluginInterface> plugin) {
87
87
return plugin->getModuleName () == name;
88
88
});
89
89
@@ -109,11 +109,11 @@ autoware_auto_planning_msgs::msg::PathWithLaneId BehaviorVelocityPlannerManager:
109
109
for (const auto & plugin : scene_manager_plugins_) {
110
110
plugin->updateSceneModuleInstances (planner_data, input_path_msg);
111
111
plugin->plan (&output_path_msg);
112
- const auto first_stop_path_point_index_from_plugin = plugin->getFirstStopPathPointIndex ();
112
+ const auto firstStopPathPointIndex = plugin->getFirstStopPathPointIndex ();
113
113
114
- if (first_stop_path_point_index_from_plugin ) {
115
- if (first_stop_path_point_index_from_plugin .value () < first_stop_path_point_index) {
116
- first_stop_path_point_index = first_stop_path_point_index_from_plugin .value ();
114
+ if (firstStopPathPointIndex ) {
115
+ if (firstStopPathPointIndex .value () < first_stop_path_point_index) {
116
+ first_stop_path_point_index = firstStopPathPointIndex .value ();
117
117
stop_reason_msg = plugin->getModuleName ();
118
118
}
119
119
}
0 commit comments