worked on signal-strength-estimation
add this information to grid nodes evaluate this information new test-cases
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user