Skip to content

Commit

Permalink
fix(obstacle_stop_planner): extendTrajectory function causes NaN poses (
Browse files Browse the repository at this point in the history
autowarefoundation#3739)

Signed-off-by: Berkay Karaman <[email protected]>
  • Loading branch information
brkay54 authored May 19, 2023
1 parent 3feb007 commit faf4bd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions planning/obstacle_stop_planner/src/planner_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,9 +455,9 @@ TrajectoryPoints extendTrajectory(const TrajectoryPoints & input, const double e
}

const auto goal_point = input.back();
double interpolation_distance = 0.1;
constexpr double interpolation_distance = 0.1;

double extend_sum = 0.0;
double extend_sum = interpolation_distance;
while (extend_sum <= (extend_distance - interpolation_distance)) {
const auto extend_trajectory_point = getExtendTrajectoryPoint(extend_sum, goal_point);
output.push_back(extend_trajectory_point);
Expand Down

0 comments on commit faf4bd0

Please sign in to comment.