Skip to content

Commit 4bb9904

Browse files
committed
refactor(autoware_trajectory): rename binary search functions for clarity
Signed-off-by: Y.Hisaki <yhisaki31@gmail.com>
1 parent bd4e304 commit 4bb9904

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

common/autoware_trajectory/src/detail/time_distance_mapping.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ double TimeDistanceMapping::time_at_distance(const double distance) const
292292

293293
// Use binary search to find the time where distance is reached
294294
constexpr size_t k_max_iterations = 100;
295-
const auto result_time = binary_search(
295+
const auto result_time = lower_bound_by_predicate(
296296
start_time_, end_time_,
297297
[this, clamped_distance](double time) { return compute_distance(time) >= clamped_distance; },
298298
k_max_iterations, k_same_time_threshold);

0 commit comments

Comments
 (0)