9 #ifndef CscPlaceCartography_h
10 #define CscPlaceCartography_h
16 #include <unordered_set>
18 using std::mutex, std::unordered_set;
39 bool loadLatestFromStorage(
bool logResult =
true);
40 void loadFromDirectory(
const fs::path &dirPath);
41 void loadFromPointsFile(
const fs::path &filePath);
43 static CscWorldPlace *pointCloudToWorldPlace(
const vector<const CscPoint3d *> &points);
48 void loadFromPoints(
const vector<const CscPoint3d *> &placePoints);
57 void saveToFile(
const fs::path &filePath);
63 vector<CscPoint3d *> *getAllPoints()
const;
65 unsigned long long getLastUpdatedTimestamp()
const;
75 vector<const CscPoint3d *> allPoints;
76 std::unique_ptr<CscLogger>
logger;
77 inline static int cartographyPlaceModelIdCounter = std::numeric_limits<int>::max();
78 unsigned long long lastUpdatedTimestamp = 0;
80 mutable mutex pointsMutex;