started with eval
This commit is contained in:
45
main.cpp
45
main.cpp
@@ -13,24 +13,53 @@
|
||||
#include <KLib/misc/gnuplot/GnuplotSplot.h>
|
||||
#include <KLib/misc/gnuplot/GnuplotSplotElementPoints.h>
|
||||
#include <KLib/misc/gnuplot/GnuplotSplotElementLines.h>
|
||||
#include <Indoor/geo/EarthMapping.h>
|
||||
|
||||
#include "Settings.h"
|
||||
|
||||
#include "EvalCompareOpt.h"
|
||||
|
||||
#include "EvalApOpt.h"
|
||||
#include "EvalWalk.h"
|
||||
#include "EvalData.h"
|
||||
#include "EvalWiFi.h"
|
||||
|
||||
#define BREAK raise(SIGTRAP);
|
||||
|
||||
int main(void) {
|
||||
|
||||
const std::string fMap = "/apps/android/workspace/OTHER2017/data/SHL35.xml";
|
||||
const std::string fCalib = "/apps/android/workspace/OTHER2017/data/wifi_fp_all.dat";
|
||||
// test gps within data files
|
||||
if (1 == 0) {
|
||||
EvalData::dumpGPSforPath(Settings::path1a); BREAK;
|
||||
EvalData::dumpGPSforPath(Settings::path1b); BREAK;
|
||||
EvalData::dumpGPSforPath(Settings::path2a); BREAK;
|
||||
EvalData::dumpGPSforPath(Settings::path2b); BREAK;
|
||||
}
|
||||
|
||||
// test wifi within data files
|
||||
if (1 == 1) {
|
||||
//EvalWiFi ew1(Settings::fMap, Settings::path2a, Settings::GroundTruth::path2);
|
||||
EvalWiFi ew1(Settings::fMap, Settings::path2a, Settings::GroundTruth::path1);
|
||||
//ew1.fixedParams(-40, 2.5, -8); BREAK;
|
||||
ew1.fixedParams(-64.5905, 1.25988, -2.47863); BREAK;
|
||||
}
|
||||
|
||||
|
||||
// run walking
|
||||
|
||||
|
||||
// run earthmapping
|
||||
//testMapEarthReg(fMap);
|
||||
|
||||
// EvalApOpt eval(fMap, fCalib);
|
||||
// eval.optAll();
|
||||
|
||||
{
|
||||
EvalCompareOptAllFixed allFixed(fMap, fCalib);
|
||||
//allFixed.fixedPosFixedParamsForAll();
|
||||
//allFixed.fixedPosOptParamsForAll();
|
||||
//allFixed.fixedPosOptParamsForEach();
|
||||
|
||||
// run evaluation
|
||||
if (1 == 0) {
|
||||
EvalCompareOptAllFixed allFixed(Settings::fMap, Settings::fCalib);
|
||||
allFixed.fixedPosFixedParamsForAll();
|
||||
allFixed.fixedPosOptParamsForAll();
|
||||
allFixed.fixedPosOptParamsForEach();
|
||||
allFixed.optPosOptParamsForEach();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user