added interface for walkers

some new helper methods
added interpolater for paths
This commit is contained in:
2016-01-28 21:48:04 +01:00
parent c4ea811342
commit da0bd43fe0
10 changed files with 92 additions and 66 deletions

View File

@@ -2,6 +2,7 @@
#define GRIDWALKHELPER_H
#include "../../geo/Heading.h"
#include "GridWalkState.h"
class GridWalkHelper {
@@ -41,6 +42,7 @@ public:
template <typename T, typename Walker> static GridWalkState<T> retryOrInvert(Walker& w, const int numRetries, Grid<T>& grid, GridWalkState<T> start, float distance_m) {
Assert::isTrue(distance_m >= 0, "distance must not be negative!");
Assert::isNotNull(start.node, "starting node must not be null");
GridWalkState<T> res;