Skip to content

Commit

Permalink
fix(avoidance): check safety for only moving objects
Browse files Browse the repository at this point in the history
Signed-off-by: satoshi-ota <[email protected]>
  • Loading branch information
satoshi-ota committed Feb 1, 2024
1 parent 18a599e commit 0cedbfc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion planning/behavior_path_avoidance_module/src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1846,7 +1846,10 @@ std::vector<ExtendedPredictedObject> getSafetyCheckTargetObjects(
PredictedObjects ret{};
std::for_each(objects.begin(), objects.end(), [&p, &ret, &parameters](const auto & object) {
if (filtering_utils::isSafetyCheckTargetObjectType(object.object, parameters)) {
ret.objects.push_back(object.object);
// check only moving objects
if (filtering_utils::isMovingObject(object, parameters)) {
ret.objects.push_back(object.object);
}
}
});
return ret;
Expand Down

0 comments on commit 0cedbfc

Please sign in to comment.