libmove3d-planners
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros Groups Pages
CostGraph.hpp
1 /*
2  * CostGraph.h
3  * BioMove3D
4  *
5  * Created by Jim Mainprice on 06/07/10.
6  * Copyright 2010 LAAS/CNRS. All rights reserved.
7  *
8  */
9 
10 #ifndef COST_GRAPH_H_
11 #define COST_GRAPH_H_
12 
13 #include "API/Device/robot.hpp"
14 #include "API/ConfigSpace/localpath.hpp"
15 #include "API/Roadmap/Graph.hpp"
16 
17 class CostGraph : class Graph
18 {
19 public:
20  CostGraph(Robot* R);
21  CostGraph(Robot* R, p3d_graph* G);
22  CostGraph(const Graph& G);
23  ~CostGraph();
24 
25  void setThreshold(const double& thresh) { m_thresh = thresh; }
26  double getThreshold() { return m_thresh; }
27 
28  Graph* getGraphUnderThreshold();
29  vector<LocalPath*> getLocalPathsUnderThreshold(const LocalPath& LP);
30 
31 private:
32  double m_thresh;
33 };
34 
35 #endif
Classe représentant un chemin local.
Definition: localpath.hpp:15
Definition: graph.hpp:28
This class holds a the robot represented by a kinematic chain.
Definition: robot.hpp:42
Definition: CostGraph.hpp:17