Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
LiJiangnanBit committed May 30, 2020
1 parent df9238f commit 5490467
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class ReferencePathSmoother {
std::vector<State> *smoothed_path_display) = 0;
void bSpline();
// search.
bool modifyInputPoints();
bool graphSearch();
inline bool checkExistenceInClosedSet(const APoint &point) const;
inline double getG(const APoint &point, const APoint &parent) const;
inline double getH(const APoint &p) const;
Expand Down
4 changes: 2 additions & 2 deletions src/reference_path_smoother/reference_path_smoother.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ std::unique_ptr<ReferencePathSmoother> ReferencePathSmoother::create(const std::
bool ReferencePathSmoother::solve(PathOptimizationNS::ReferencePath *reference_path,
std::vector<PathOptimizationNS::State> *smoothed_path_display) {
bSpline();
if (FLAGS_enable_searching && modifyInputPoints()) {
if (FLAGS_enable_searching && graphSearch()) {
// If searching process succeeded, add the searched result into reference_path.
tk::spline searched_xs, searched_ys;
searched_xs.set_points(s_list_, x_list_);
Expand Down Expand Up @@ -141,7 +141,7 @@ double ReferencePathSmoother::getG(const PathOptimizationNS::APoint &point,
return parent.g + offset_cost + obstacle_cost;
}

bool ReferencePathSmoother::modifyInputPoints() {
bool ReferencePathSmoother::graphSearch() {
auto t1 = std::clock();
if (x_list_.empty() || y_list_.empty() || s_list_.empty()) return false;
tk::spline x_s, y_s;
Expand Down

0 comments on commit 5490467

Please sign in to comment.