This repository has been archived on 2020-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Indoor/tests/api/TestAPI.cpp
FrankE 99ee95ce7b worked on signal-strength-estimation
add this information to grid nodes
evaluate this information
new test-cases
2016-07-15 15:29:07 +02:00

38 lines
602 B
C++

#ifdef WITH_TESTS
#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