Skip to content

Commit

Permalink
fix(autoware_behavior_velocity_planner): fix naming issues
Browse files Browse the repository at this point in the history
Signed-off-by: Esteve Fernandez <[email protected]>
  • Loading branch information
esteve committed Apr 12, 2024
1 parent 9dbeb9a commit 0f0688a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions planning/behavior_velocity_planner/src/planner_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ autoware_auto_planning_msgs::msg::PathWithLaneId BehaviorVelocityPlannerManager:
for (const auto & plugin : scene_manager_plugins_) {
plugin->updateSceneModuleInstances(planner_data, input_path_msg);
plugin->plan(&output_path_msg);
const auto firstStopPathPointIndex = plugin->getFirstStopPathPointIndex();
const auto first_stop_path_point_index_from_plugin = plugin->getFirstStopPathPointIndex();

if (firstStopPathPointIndex) {
if (firstStopPathPointIndex.value() < first_stop_path_point_index) {
first_stop_path_point_index = firstStopPathPointIndex.value();
if (first_stop_path_point_index_from_plugin) {
if (first_stop_path_point_index_from_plugin.value() < first_stop_path_point_index) {
first_stop_path_point_index = first_stop_path_point_index_from_plugin.value();
stop_reason_msg = plugin->getModuleName();
}
}
Expand Down

0 comments on commit 0f0688a

Please sign in to comment.