Skip to content

Commit

Permalink
perf(static_obstacle_avoidance): remove heavy process
Browse files Browse the repository at this point in the history
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
  • Loading branch information
satoshi-ota committed Aug 9, 2024
1 parent d638d08 commit 7ba2c3d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2282,10 +2282,9 @@ std::pair<PredictedObjects, PredictedObjects> separateObjectsByPath(
Pose p_reference_ego_front = reference_path.points.front().point.pose;
Pose p_spline_ego_front = spline_path.points.front().point.pose;
double next_longitudinal_distance = parameters->resample_interval_for_output;
const auto offset = arc_length_array.at(ego_idx);
for (size_t i = 0; i < points_size; ++i) {
const auto distance_from_ego =
autoware::motion_utils::calcSignedArcLength(reference_path.points, ego_idx, i);
if (distance_from_ego > object_check_forward_distance) {
if (arc_length_array.at(i) > object_check_forward_distance + offset) {
break;
}

Expand Down

0 comments on commit 7ba2c3d

Please sign in to comment.