hpp-rbprm  4.12.0
Implementation of RB-PRM planner using hpp.
heuristic.hh
Go to the documentation of this file.
1 //
2 // Copyright (c) 2014 CNRS
3 // Authors: Steve Tonneau (steve.tonneau@laas.fr)
4 //
5 // This file is part of hpp-rbprm.
6 // hpp-rbprm is free software: you can redistribute it
7 // and/or modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation, either version
9 // 3 of the License, or (at your option) any later version.
10 //
11 // hpp-rbprm is distributed in the hope that it will be
12 // useful, but WITHOUT ANY WARRANTY; without even the implied warranty
13 // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // General Lesser Public License for more details. You should have
15 // received a copy of the GNU Lesser General Public License along with
16 // hpp-core If not, see
17 // <http://www.gnu.org/licenses/>.
18 
19 #ifndef HPP_HEURISTIC_HH
20 #define HPP_HEURISTIC_HH
21 
23 
24 #include <map>
25 
26 namespace hpp {
27 
28 namespace rbprm {
29 namespace sampling {
30 
31 struct HeuristicParam;
32 
39 typedef double (*heuristic)(const sampling::Sample& sample, const Eigen::Vector3d& direction,
40  const Eigen::Vector3d& normal, const HeuristicParam& params);
41 
47  ~HeuristicFactory();
48 
49  bool AddHeuristic(const std::string& name, const heuristic func);
50  std::map<std::string, const heuristic> heuristics_;
51 };
52 
53 } // namespace sampling
54 } // namespace rbprm
55 } // namespace hpp
56 #endif // HPP_HEURISTIC_HH
#define HPP_RBPRM_DLLAPI
Definition: config.hh:64
std::map< std::string, const heuristic > heuristics_
Definition: heuristic.hh:50
Definition: sample.hh:40
Definition: algorithm.hh:27
Defines a parameters set for the ZMP-based heuristic.
Definition: heuristic-tools.hh:13
double(* heuristic)(const sampling::Sample &sample, const Eigen::Vector3d &direction, const Eigen::Vector3d &normal, const HeuristicParam &params)
Definition: heuristic.hh:39
Definition: heuristic.hh:45