Skip to content

Commit

Permalink
fix(autoware_behavior_velocity_planner_common): fix variableScope (au…
Browse files Browse the repository at this point in the history
…towarefoundation#8446)

fix:variableScope

Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
  • Loading branch information
kobayu858 authored and kyoichi-sugahara committed Aug 27, 2024
1 parent 00a96dc commit dd85c1e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ autoware_planning_msgs::msg::Path interpolatePath(
const auto logger{rclcpp::get_logger("behavior_velocity_planner").get_child("path_utilization")};

const double epsilon = 0.01;
std::vector<double> x;
std::vector<double> y;
std::vector<double> z;
std::vector<double> v;
std::vector<double> s_in;
if (2000 < path.points.size()) {
RCLCPP_WARN(
Expand All @@ -70,6 +66,10 @@ autoware_planning_msgs::msg::Path interpolatePath(

double path_len = std::min(length, autoware::motion_utils::calcArcLength(path.points));
{
std::vector<double> x;
std::vector<double> y;
std::vector<double> z;
std::vector<double> v;
double s = 0.0;
for (size_t idx = 0; idx < path.points.size(); ++idx) {
const auto path_point = path.points.at(idx);
Expand Down

0 comments on commit dd85c1e

Please sign in to comment.