euclidean_heuristic.cpp
Go to the documentation of this file.
2 
3 
4 
6 {
8 : HeuristicPlugin("euclidean_heuristic")
9 {}
10 
11 double EuclideanHeuristic::getHeuristicValue(const State& from, const State& to, const State& /*start*/, const State& /*goal*/) const
12 {
13  if (from == to)
14  return 0.0;
15 
16  return euclidean_distance(from.getX(), from.getY(), from.getZ(), to.getX(), to.getY(), to.getZ());
17 }
18 }
19 
20 #include <pluginlib/class_list_macros.h>
21 PLUGINLIB_EXPORT_CLASS(vigir_footstep_planning::EuclideanHeuristic, vigir_footstep_planning::HeuristicPlugin)
double getHeuristicValue(const State &from, const State &to, const State &start, const State &goal) const override
Determining the heuristic value by the euclidean distance between two states.


vigir_footstep_planning_default_plugins
Author(s): Alexander Stumpf
autogenerated on Sun Nov 17 2019 03:30:01