Skip to content

Commit

Permalink
use getPreviousModuleOutput also in waiting approval
Browse files Browse the repository at this point in the history
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
  • Loading branch information
kosuke55 committed Oct 26, 2023
1 parent 7b3aed4 commit 685688c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,11 @@ BehaviorModuleOutput GoalPlannerModule::planWaitingApproval()

BehaviorModuleOutput GoalPlannerModule::planWaitingApprovalWithGoalModification()
{
// if pull over path candidates generation is not finished, use previous module output
if (status_.get_pull_over_path_candidates().empty()) {
return getPreviousModuleOutput();
}

waitApproval();

// if pull over path candidates generation is not finished, use previous module output
Expand Down Expand Up @@ -1039,7 +1044,7 @@ BehaviorModuleOutput GoalPlannerModule::planWaitingApprovalWithGoalModification(

std::pair<double, double> GoalPlannerModule::calcDistanceToPathChange() const
{
const auto & full_path = status_.get_pull_over_path()->getFullPath();
const auto full_path = status_.get_pull_over_path()->getFullPath();

const auto ego_segment_idx = motion_utils::findNearestSegmentIndex(
full_path.points, planner_data_->self_odometry->pose.pose, std::numeric_limits<double>::max(),
Expand Down

0 comments on commit 685688c

Please sign in to comment.