Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
  • Loading branch information
soblin committed Mar 10, 2025
1 parent fddfaf4 commit d3e6fa4
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <Eigen/Dense>
#include <rclcpp/logging.hpp>

#include <utility>
#include <vector>

namespace autoware::trajectory::interpolator::detail
Expand Down Expand Up @@ -85,7 +86,7 @@ class InterpolatorCommonInterface
* @param s The input value.
* @return The input value, clamped to the range of the interpolator.
*/
double validate_compute_input(const double s) const
double validate_compute_input(const double s) const
{
if (s < start() || s > end()) {
RCLCPP_WARN(
Expand All @@ -110,7 +111,7 @@ double validate_compute_input(const double s) const
*
* @throw std::out_of_range if the input value is outside the range of the bases array.
*/
int32_t get_index(const double s, bool end_inclusive = true) const
int32_t get_index(const double s, bool end_inclusive = true) const
{
if (end_inclusive && s == end()) {
return static_cast<int32_t>(bases_.size()) - 2;
Expand Down Expand Up @@ -148,9 +149,7 @@ int32_t get_index(const double s, bool end_inclusive = true) const
if (bases.size() < minimum_required_points()) {
return false;
}
return build_impl(
std::forward<std::decay_t<BaseVectorT>>(bases),
std::forward<std::decay_t<ValueVectorT>>(values));
return build_impl(std::forward<BaseVectorT>(bases), std::forward<ValueVectorT>(values));
}

/**
Expand Down

0 comments on commit d3e6fa4

Please sign in to comment.