11 #include "API/Trajectory/trajectory.hpp"
12 #include "API/ConfigSpace/configuration.hpp"
13 #include "API/Roadmap/graph.hpp"
14 #include "../../Grids/ThreeDGrid.hpp"
20 typedef double weight_t;
29 : target(arg_target), weight(arg_weight) { }
32 typedef std::map<vertex_t, std::list<edge_dijkstra> > adjacency_map_t;
33 typedef std::map<int,Node*> node_map_t;
38 template <
typename T1,
typename T2>
41 bool operator()(std::pair<T1,T2> p1, std::pair<T1,T2> p2)
const
43 if(p1.first == p2.first) {
45 return p1.second < p2.second;
47 return p1.first < p2.first;
69 void computePaths(vertex_t source,
70 adjacency_map_t& adjacency_map,
71 std::map<vertex_t, weight_t>& min_distance,
72 std::map<vertex_t, vertex_t>& previous);
74 std::list<vertex_t> getShortestPathTo(
75 vertex_t target, std::map<vertex_t, vertex_t>& previous);
95 adjacency_map_t m_graph_adjacency_map;
96 node_map_t m_graph_node_map;
Definition: dijkstra.hpp:25
Implement Dijkstra graph search algorithm.
Definition: dijkstra.hpp:55
Definition: ThreeDGrid.hpp:24
int example()
Example using the maps.
Definition: dijkstra.cpp:191
API::Trajectory * extractTrajectory(std::tr1::shared_ptr< Configuration > init, std::tr1::shared_ptr< Configuration > goal)
Extract Trajectory beetween two Configurations.
Definition: trajectory.hpp:40
void creatStructures()
Creates the Maps out of the p3d Graph struct.
Definition: dijkstra.cpp:25
Definition: dijkstra.hpp:39