Main Page
Namespaces
Classes
Files
File List
File Members
src
heuristics
euclidean_heuristic.cpp
Go to the documentation of this file.
1
#include <
vigir_footstep_planning_default_plugins/heuristics/euclidean_heuristic.h
>
2
3
4
5
namespace
vigir_footstep_planning
6
{
7
EuclideanHeuristic::EuclideanHeuristic
()
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)
vigir_footstep_planning::EuclideanHeuristic::getHeuristicValue
double getHeuristicValue(const State &from, const State &to, const State &start, const State &goal) const override
Definition:
euclidean_heuristic.cpp:11
vigir_footstep_planning::EuclideanHeuristic::EuclideanHeuristic
EuclideanHeuristic()
Definition:
euclidean_heuristic.cpp:7
vigir_footstep_planning
Definition:
dynamics_heuristic.h:39
vigir_footstep_planning::EuclideanHeuristic
Determining the heuristic value by the euclidean distance between two states.
Definition:
euclidean_heuristic.h:45
euclidean_heuristic.h
vigir_footstep_planning_default_plugins
Author(s): Alexander Stumpf
autogenerated on Sun Nov 17 2019 03:30:01