Skip to content

Commit

Permalink
complete to implementation
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Takagi <[email protected]>
  • Loading branch information
yuki-takagi-66 committed Nov 2, 2023
1 parent 9d938e4 commit cde9731
Show file tree
Hide file tree
Showing 3 changed files with 179 additions and 207 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ boost::optional<size_t> searchZeroVelocityIndex(

constexpr double epsilon = 1e-3;
for (size_t i = src_idx; i < dst_idx; ++i) {
std::cerr << std::fabs(points_with_twist.at(i).longitudinal_velocity_mps) << std::endl;
if (std::fabs(points_with_twist.at(i).longitudinal_velocity_mps) < epsilon) {
return i;
}
Expand Down
2 changes: 1 addition & 1 deletion planning/obstacle_cruise_planner/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ std::optional<double> ObstacleCruisePlannerNode::calcTrajDistToSecurePolysDist(
}
last_dist = sec_i_dist;
}
return 0.0;
return last_dist - dist_to_be_secured;
}
}
return std::nullopt;
Expand Down
Loading

0 comments on commit cde9731

Please sign in to comment.