removed gridSize from the template arguments
- not needed and code much cleaner some minor changes new test-cases
This commit is contained in:
@@ -45,7 +45,7 @@ private:
|
||||
|
||||
public:
|
||||
|
||||
template <int gridSize_cm> State getDestination(Grid<gridSize_cm, T>& grid, State start, float distance_m) {
|
||||
template <int gridSize_cm> State getDestination(Grid<T>& grid, State start, float distance_m) {
|
||||
|
||||
int retries = 2;
|
||||
State res;
|
||||
@@ -73,7 +73,7 @@ private:
|
||||
return Heading(from.x_cm, from.y_cm, to.x_cm, to.y_cm);
|
||||
}
|
||||
|
||||
template <int gridSize_cm> State walk(Grid<gridSize_cm, T>& grid, State cur, float distRest_m) {
|
||||
State walk(Grid<T>& grid, State cur, float distRest_m) {
|
||||
|
||||
drawer.reset();;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user