libmove3d-planners
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros Groups Pages
HRICS_distance2d.h
1 #ifndef HRICS_DISTANCE2D_H
2 #define HRICS_DISTANCE2D_H
3 
4 #include "API/planningAPI.hpp"
5 #include "Logging/Logger.h"
6 #include "HRICS_CF_VirtualCostFunction.h"
7 
8 namespace HRICS {
9 namespace CF{
10 
12 {
13  MOVE3D_STATIC_LOGGER;
14 public:
15  using VirtualCostFunction::getCost;
16 
17  Distance2D(CostFunctionCommon *commonCF,double min, double max, double low,double up,double maxToMeanRatio, FunctionShape shape);
18  virtual ~Distance2D();
19 
20  static std::string getName(){return "Distance2D";}
21 
22  double getCost();
23  double getCost(double d);
24 
30  void setMaxToMeanRatio(double a);
31  double getMaxToMeanRatio(){return _maxToMeanRatio;}
32 
33  void setMaxCost(double max){_maxCost = max;}
34  void setMinCost(double min){_minCost = min;}
35  double getMaxCost(){return _maxCost;}
36  double getMinCost(){return _minCost;}
37 
38 private:
39 
40  double _ignore_threshold;
41  double _minCost;
42  double _maxCost;
43  double _maxToMeanRatio;
44 
45 };
46 
47 } // namespace CF
48 } // namespace HRICS
49 
50 #endif // HRICS_DISTANCE2D_H
Definition: HRICS_costfunction.h:15
double maxToMeanRatio() const
when the cost is a compostion of several elements (e.g.
Definition: HRICS_CF_VirtualCostFunction.cpp:145
Definition: HRICS_distance2d.h:11
This file implements macros to help with the logging, in a way similar to ROS, using log4cxx...
Definition: HRICS_CF_VirtualCostFunction.h:13
void setMaxToMeanRatio(double a)
setMaxToMeanRatio
Definition: HRICS_distance2d.cpp:67