Main Page
Namespaces
Classes
Files
File List
File Members
src
plugin_aggregators
heuristic.cpp
Go to the documentation of this file.
1
#include <
vigir_footstep_planning_plugins/plugin_aggregators/heuristic.h
>
2
3
4
5
namespace
vigir_footstep_planning
6
{
7
Heuristic::Heuristic
()
8
:
ExtendedPluginAggregator
<
Heuristic
,
HeuristicPlugin
>(
"Heuristic"
)
9
{
10
}
11
12
double
Heuristic::getHeuristicValue
(
const
State
& from,
const
State
& to,
const
State
& start,
const
State
& goal)
const
13
{
14
double
h = 0.0;
15
16
for
(
HeuristicPlugin::Ptr
plugin :
getPlugins
())
17
{
18
if
(plugin)
19
h += plugin->getHeuristicValue(from, to, start, goal);
20
}
21
22
return
h;
23
}
24
}
heuristic.h
vigir_footstep_planning::HeuristicPlugin
Definition:
heuristic_plugin.h:42
boost::shared_ptr
vigir_footstep_planning::State
vigir_footstep_planning
vigir_footstep_planning::Heuristic::getHeuristicValue
double getHeuristicValue(const State &from, const State &to, const State &start, const State &goal) const
Definition:
heuristic.cpp:12
getPlugins
ROSLIB_DECL void getPlugins(const std::string &package, const std::string &attribute, V_string &plugins, bool force_recrawl=false)
vigir_footstep_planning::Heuristic
Definition:
heuristic.h:41
vigir_footstep_planning::ExtendedPluginAggregator
Definition:
extended_plugin_aggregator.h:43
vigir_footstep_planning::Heuristic::Heuristic
Heuristic()
Definition:
heuristic.cpp:7
vigir_footstep_planning_plugins
Author(s): Alexander Stumpf
autogenerated on Mon Jun 10 2019 15:47:39