worked on signal-strength-estimation

add this information to grid nodes
evaluate this information
new test-cases
This commit is contained in:
2016-07-15 15:29:07 +02:00
parent 34e52cd7f0
commit 99ee95ce7b
21 changed files with 568 additions and 26 deletions

View File

@@ -1,4 +1,37 @@
#ifndef TESTAPI_CPP
#define TESTAPI_CPP
#ifdef WITH_TESTS
#endif // TESTAPI_CPP
#include "../Tests.h"
#include "../../api/api.h"
#include "../../api/DummyAPI.h"
class LeListener : public APIListener {
virtual void onPathUpdate(const std::vector<Point3>& curPath) override {
}
virtual void onPositionUpdate(const Point3 curPos) override {
//std::cout << curPos.x << "," << curPos.y << "," << curPos.z << std::endl;
}
};
TEST(API, run) {
std::string folder = "/mnt/data/workspaces/IndoorMap/maps";
DummyAPI api(folder);
api.setTarget(1);
api.addListener(new LeListener());
api.startNavigation();
sleep(5);
api.stopNavigation();
}
#endif