adjusted to match new dijkstra interface
This commit is contained in:
@@ -67,6 +67,7 @@ ADD_DEFINITIONS(
|
||||
-O2
|
||||
-DWITH_TESTS
|
||||
-DWITH_ASSERTIONS
|
||||
-DWITH_DEBUG_LOG
|
||||
|
||||
)
|
||||
|
||||
|
||||
@@ -124,7 +124,7 @@ public:
|
||||
DijkstraMapperNormal accNormal(grid);
|
||||
|
||||
// path without importance
|
||||
dijkstra.build(gnStart, gnStart, accNormal);
|
||||
dijkstra.build(&gnStart, accNormal);
|
||||
DijkstraPath<MyGridNode> pathNormal(dijkstra.getNode(gnEnd), dijkstra.getNode(gnStart));
|
||||
|
||||
// stamp importance information onto the grid-nodes
|
||||
@@ -132,7 +132,7 @@ public:
|
||||
gridImp.addImportance(grid, h0.cm());
|
||||
|
||||
// path WITH importance
|
||||
dijkstra.build(gnStart, gnStart, accImp);
|
||||
dijkstra.build(&gnStart, accImp);
|
||||
DijkstraPath<MyGridNode> pathImp(dijkstra.getNode(gnEnd), dijkstra.getNode(gnStart));
|
||||
|
||||
// build plot
|
||||
@@ -240,7 +240,7 @@ public:
|
||||
|
||||
// path WITH importance
|
||||
DijkstraMapper accImp(grid);
|
||||
dijkstra.build(gnStart, gnStart, accImp);
|
||||
dijkstra.build(&gnStart, accImp);
|
||||
DijkstraPath<MyGridNode> pathImp(dijkstra.getNode(gnEnd), dijkstra.getNode(gnStart));
|
||||
|
||||
// stamp distance information onto the grid
|
||||
|
||||
Reference in New Issue
Block a user