Skip to content

Commit

Permalink
add debug print
Browse files Browse the repository at this point in the history
Signed-off-by: kyoichi-sugahara <[email protected]>
  • Loading branch information
kyoichi-sugahara committed May 31, 2024
1 parent 8fd8bd5 commit 1dfe8b9
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,12 @@ bool StartPlannerModule::canTransitSuccessState()
// - Can transit to success if the goal position is reached.
// - Cannot transit to success if the goal position is not reached.
if (status_.planner_type == PlannerType::FREESPACE) {
return hasReachedFreespaceEnd();
if (hasReachedFreespaceEnd()) {
RCLCPP_DEBUG(
getLogger(), "Transit to success: Freespace planner reached the end point of the path.");
return true;
}
return false;
}

// Other Planners:
Expand All @@ -597,7 +602,12 @@ bool StartPlannerModule::canTransitSuccessState()
return false;
}

return hasReachedPullOutEnd();
if (hasReachedPullOutEnd()) {
RCLCPP_DEBUG(getLogger(), "Transit to success: Reached the end point of the pullout path.");
return true;
}

return false;
}

BehaviorModuleOutput StartPlannerModule::plan()
Expand Down

0 comments on commit 1dfe8b9

Please sign in to comment.