Skip to content

Commit

Permalink
feat(intersection): continue detection after pass judge (autowarefoun…
Browse files Browse the repository at this point in the history
…dation#1719)

Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
  • Loading branch information
soblin committed Dec 22, 2022
1 parent f409f1d commit e139933
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,21 @@ lanelet::ConstLanelet generateOffsetLanelet(

geometry_msgs::msg::Pose toPose(const geometry_msgs::msg::Point & p);

/**
* @brief check if ego is over the target_idx. If the index is same, compare the exact pose
* @param path path
* @param closest_idx ego's closest index on the path
* @param current_pose ego's exact pose
* @return true if ego is over the target_idx
*/
bool isOverTargetIndex(
const autoware_auto_planning_msgs::msg::PathWithLaneId & path, const int closest_idx,
const geometry_msgs::msg::Pose & current_pose, const int target_idx);

bool isBeforeTargetIndex(
const autoware_auto_planning_msgs::msg::PathWithLaneId & path, const int closest_idx,
const geometry_msgs::msg::Pose & current_pose, const int target_idx);

} // namespace util
} // namespace behavior_velocity_planner

Expand Down

0 comments on commit e139933

Please sign in to comment.