4 #include "API/Roadmap/node.hpp"
5 #include "API/ConfigSpace/localpath.hpp"
28 Edge(
Graph* G,
unsigned int i,
unsigned j);
52 Edge(
Graph* G,
Node* N1,
Node* N2,
bool compute_length,
double& length,
bool compute_cost,
double&
cost );
99 Edge * getOppositeEdge()
const {
return oppositeEdge; }
101 void setOppositeEdge(
Edge * edge) { oppositeEdge = edge; }
108 void setCost(
double cost);
121 void setLocalPath(std::tr1::shared_ptr<LocalPath> pathPtr);
125 BGL_Edge getDescriptor();
127 void setDescriptor(
const BGL_Edge& E) {
128 m_is_BGL_Descriptor_Valid =
true;
129 m_BGL_Descriptor = E;
132 void unSetDescriptor() {
133 m_is_BGL_Descriptor_Valid =
false;
139 bool m_is_cost_computed;
152 BGL_Edge m_BGL_Descriptor;
153 bool m_is_BGL_Descriptor_Valid;
155 std::tr1::shared_ptr<LocalPath> m_path;
156 bool m_is_LocalPath_Computed;
Node * getSource()
obtient le Node initial de l'Edge
Definition: edge.cpp:187
Node * getTarget()
obtient le Node final de l'Edge
Definition: edge.cpp:192
void setLocalPath(std::tr1::shared_ptr< LocalPath > pathPtr)
Set the LocalPath associated with the edge.
Definition: edge.cpp:234
Classe représentant un Node d'un Graph.
Definition: node.hpp:39
std::tr1::shared_ptr< LocalPath > getLocalPath()
Get the LocalPath associated with the edge.
Definition: edge.cpp:221
Robot * getRobot()
obtient le Robot pour lequel l'Edge est créée
Definition: edge.cpp:177
Classe représentant une Edge d'un Graph.
Definition: edge.hpp:24
This class holds a the robot represented by a kinematic chain.
Definition: robot.hpp:42
double cost()
Computes the edge cost and returns it.
Definition: edge.cpp:197
edge * getEdgeStruct()
obtient la structure p3d_edge stockée
Definition: edge.cpp:167
Graph * getGraph()
obtient le Graph pour lequel l'Edge est créée
Definition: edge.cpp:172
double longueur()
obtient la longueur de l'Edge
Definition: edge.cpp:182
~Edge()
Destructeur de la classe.
Definition: edge.cpp:157