Skip to content

Commit

Permalink
change function name
Browse files Browse the repository at this point in the history
Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
  • Loading branch information
kyoichi-sugahara committed Oct 19, 2023
1 parent 3b8af4f commit 4569b03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class MapBasedPredictionNode : public rclcpp::Node
void objectsCallback(const TrackedObjects::ConstSharedPtr in_objects);

void removePedestrianCrossingWithFence(PredictedObjects & predicted_objects);
bool crossWithFence(const PredictedPath & predicted_path);
bool doesPathCrossAnyFence(const PredictedPath & predicted_path);
bool doesPathCrossFence(
const PredictedPath & predicted_path, const lanelet::ConstLineString3d & fence_line);
lanelet::BasicLineString2d convertToFenceLine(const lanelet::ConstLineString3d & fence);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -988,12 +988,12 @@ void MapBasedPredictionNode::removePedestrianCrossingWithFence(PredictedObjects
return std::any_of(
predicted_object.kinematics.predicted_paths.begin(),
predicted_object.kinematics.predicted_paths.end(),
[this](const auto & path) { return this->crossWithFence(path); });
[this](const auto & path) { return this->doesPathCrossAnyFence(path); });
}),
predicted_objects.objects.end());
}

bool MapBasedPredictionNode::crossWithFence(const PredictedPath & predicted_path)
bool MapBasedPredictionNode::doesPathCrossAnyFence(const PredictedPath & predicted_path)
{
const lanelet::ConstLineStrings3d & all_fences =
lanelet::utils::query::getAllFences(lanelet_map_ptr_);
Expand Down Expand Up @@ -1143,7 +1143,7 @@ PredictedObject MapBasedPredictionNode::getPredictedObjectAsCrosswalkUser(
continue;
}
// If the predicted path to the crosswalk is crossing the fence, don't use it
if (crossWithFence(predicted_path)) {
if (doesPathCrossAnyFence(predicted_path)) {
continue;
}

Expand Down

0 comments on commit 4569b03

Please sign in to comment.