fixed silly compiler issues under linux and gcc
This commit is contained in:
@@ -69,9 +69,9 @@ else()
|
||||
# system specific compiler flags
|
||||
ADD_DEFINITIONS(
|
||||
|
||||
#-std=gnu++14
|
||||
-std=gnu++17
|
||||
|
||||
-lstdc++fs
|
||||
#-lstdc++fs
|
||||
|
||||
-Wall
|
||||
-Werror=return-type
|
||||
|
||||
@@ -136,14 +136,14 @@ namespace Plotta
|
||||
}
|
||||
|
||||
template<>
|
||||
static plottastream& operator<<(plottastream& stream, const float& value)
|
||||
inline plottastream& operator<<(plottastream& stream, const float& value)
|
||||
{
|
||||
return stream << (isnan(value) ? "float(\"nan\")" : std::to_string(value));
|
||||
}
|
||||
|
||||
template<>
|
||||
static plottastream& operator<<(plottastream& stream, const Point2& value)
|
||||
inline plottastream& operator<<(plottastream& stream, const Point2& value)
|
||||
{
|
||||
return stream << std::initializer_list<float>{ value.x, value.y };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -204,11 +204,11 @@ static Stats::Statistics<float> run(Settings::DataSetup setup, int walkIdx, std:
|
||||
|
||||
// error file
|
||||
const long int t = static_cast<long int>(time(NULL));
|
||||
auto evalDir = std::experimental::filesystem::path(Settings::errorDir);
|
||||
auto evalDir = std::filesystem::path(Settings::errorDir);
|
||||
evalDir.append(folder);
|
||||
|
||||
if (!std::experimental::filesystem::exists(evalDir)) {
|
||||
std::experimental::filesystem::create_directory(evalDir);
|
||||
if (!std::filesystem::exists(evalDir)) {
|
||||
std::filesystem::create_directory(evalDir);
|
||||
}
|
||||
|
||||
std::ofstream errorFile;
|
||||
|
||||
@@ -53,11 +53,11 @@ static Stats::Statistics<float> run(Settings::DataSetup setup, int numFile, std:
|
||||
|
||||
// error file
|
||||
const long int t = static_cast<long int>(time(NULL));
|
||||
auto evalDir = std::experimental::filesystem::path(Settings::errorDir);
|
||||
auto evalDir = std::filesystem::path(Settings::errorDir);
|
||||
evalDir.append(folder);
|
||||
|
||||
if (!std::experimental::filesystem::exists(evalDir)) {
|
||||
std::experimental::filesystem::create_directory(evalDir);
|
||||
if (!std::filesystem::exists(evalDir)) {
|
||||
std::filesystem::create_directory(evalDir);
|
||||
}
|
||||
|
||||
std::ofstream errorFile;
|
||||
@@ -201,7 +201,7 @@ static Stats::Statistics<float> run(Settings::DataSetup setup, int numFile, std:
|
||||
plot.addEstimationNode(est.pos.pos);
|
||||
plot.setActivity((int) act.get());
|
||||
plot.splot.getView().setCamera(0, 0);
|
||||
plot.splot.getView().setEqualXY(true);
|
||||
//plot.splot.getView().setEqualXY(true);
|
||||
|
||||
plot.plot();
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
|
||||
#include <eigen3/Eigen/Eigen>
|
||||
|
||||
#include "..\Indoor\geo\Point2.h"
|
||||
#include "..\Indoor\geo\Point3.h"
|
||||
#include <Indoor/geo/Point2.h>
|
||||
#include <Indoor/geo/Point3.h>
|
||||
|
||||
namespace Trilateration
|
||||
{
|
||||
@@ -92,4 +92,4 @@ namespace Trilateration
|
||||
|
||||
return Point3(location.x(), location.y(), location.z());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user