1 #ifndef APP_WAI_SLAM_PARAM_HELPER_H 
    2 #define APP_WAI_SLAM_PARAM_HELPER_H 
   30     std::vector<std::string> stringParts;
 
   33     if (stringParts.size() == 5)
 
   35         slamVideoInfos->
dateTime          = stringParts[0];
 
   38         slamVideoInfos->
purpose           = stringParts[3];
 
   49                                                     std::string extractorType,
 
   51                                                     std::string dateTime = 
"")
 
   58     std::string result = 
"DEVELOPMENT-map_" + dateTime + 
"_" + location + 
"_" + area + 
"_" + extractorType + 
"_" + std::to_string(nLevels);
 
   72     std::vector<std::string> stringParts;
 
   75     if (stringParts.size() >= 4)
 
   77         slamMapInfos->
dateTime = stringParts[1];
 
   78         slamMapInfos->
location = stringParts[2];
 
   79         slamMapInfos->
area     = stringParts[3];
 
   84     if (stringParts.size() >= 5)
 
   89     if (stringParts.size() >= 6)
 
   91         slamMapInfos->
nLevels = std::stoi(stringParts[5]);
 
  110 static std::string 
constructSlamMapDir(std::string locationsRootDir, std::string location, std::string area)
 
  135                                             std::string extractorType,
 
  137                                             std::string dateTime  = 
"",
 
  138                                             bool        binaryMap = 
false)
 
  144         result += 
".json.gz";
 
  150                                                   std::string extractorType,
 
  152                                                   std::string dateTime = 
"")
 
static std::string constructSlamVideoDir(std::string locationsRootDir, std::string location, std::string area)
 
static bool extractSlamMapInfosFromFileName(std::string fileName, SlamMapInfos *slamMapInfos)
 
static std::string constructBinarySlamMapFileName(std::string location, std::string area, std::string extractorType, int nLevels, std::string dateTime="")
 
static bool extractSlamVideoInfosFromFileName(std::string fileName, SlamVideoInfos *slamVideoInfos)
 
static std::string constructSlamMarkerDir(std::string locationsRootDir, std::string location, std::string area)
 
static std::string constructSlamMapFileName(std::string location, std::string area, std::string extractorType, int nLevels, std::string dateTime="", bool binaryMap=false)
 
static std::string constructSlamMapIdentifierString(std::string location, std::string area, std::string extractorType, int nLevels, std::string dateTime="")
 
static std::string constructSlamMapDir(std::string locationsRootDir, std::string location, std::string area)
 
static std::string constructSlamMapImgDir(std::string mapDir, std::string mapFileName)
 
static std::string constructSlamLocationDir(std::string locationsRootDir, std::string location)
 
static std::string constructSlamAreaDir(std::string locationsRootDir, std::string location, std::string area)
 
string getDateTime2String()
Returns local time as string like "20190213-154611".
 
string unifySlashes(const string &inputDir, bool withTrailingSlash)
Returns the inputDir string with unified forward slashes, e.g.: "dirA/dirB/".
 
string getFileNameWOExt(const string &pathFilename)
Returns the filename without extension.
 
void splitString(const string &s, char delimiter, vector< string > &splits)
Splits an input string at a delimiter character into a string vector.
 
std::string extractorType
 
std::string weatherConditions