#include <Utils.h>
#include <string>
 
Go to the source code of this file.
 | 
| static bool  | extractSlamVideoInfosFromFileName (std::string fileName, SlamVideoInfos *slamVideoInfos) | 
|   | 
| static std::string  | constructSlamMapIdentifierString (std::string location, std::string area, std::string extractorType, int nLevels, std::string dateTime="") | 
|   | 
| static bool  | extractSlamMapInfosFromFileName (std::string fileName, SlamMapInfos *slamMapInfos) | 
|   | 
| static std::string  | constructSlamLocationDir (std::string locationsRootDir, std::string location) | 
|   | 
| static std::string  | constructSlamAreaDir (std::string locationsRootDir, std::string location, std::string area) | 
|   | 
| 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  | constructSlamVideoDir (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  | constructBinarySlamMapFileName (std::string location, std::string area, std::string extractorType, int nLevels, std::string dateTime="") | 
|   | 
| static std::string  | constructSlamMarkerDir (std::string locationsRootDir, std::string location, std::string area) | 
|   | 
◆ constructBinarySlamMapFileName()
  
  
      
        
          | static std::string constructBinarySlamMapFileName  | 
          ( | 
          std::string  | 
          location,  | 
         
        
           | 
           | 
          std::string  | 
          area,  | 
         
        
           | 
           | 
          std::string  | 
          extractorType,  | 
         
        
           | 
           | 
          int  | 
          nLevels,  | 
         
        
           | 
           | 
          std::string  | 
          dateTime = ""  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Definition at line 148 of file AppWAISlamParamHelper.h.
static std::string constructSlamMapIdentifierString(std::string location, std::string area, std::string extractorType, int nLevels, std::string dateTime="")
 
 
 
 
◆ constructSlamAreaDir()
  
  
      
        
          | static std::string constructSlamAreaDir  | 
          ( | 
          std::string  | 
          locationsRootDir,  | 
         
        
           | 
           | 
          std::string  | 
          location,  | 
         
        
           | 
           | 
          std::string  | 
          area  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Definition at line 103 of file AppWAISlamParamHelper.h.
static std::string constructSlamLocationDir(std::string locationsRootDir, std::string location)
 
string getFileNameWOExt(const string &pathFilename)
Returns the filename without extension.
 
 
 
 
◆ constructSlamLocationDir()
  
  
      
        
          | static std::string constructSlamLocationDir  | 
          ( | 
          std::string  | 
          locationsRootDir,  | 
         
        
           | 
           | 
          std::string  | 
          location  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Definition at line 96 of file AppWAISlamParamHelper.h.
string unifySlashes(const string &inputDir, bool withTrailingSlash)
Returns the inputDir string with unified forward slashes, e.g.: "dirA/dirB/".
 
 
 
 
◆ constructSlamMapDir()
  
  
      
        
          | static std::string constructSlamMapDir  | 
          ( | 
          std::string  | 
          locationsRootDir,  | 
         
        
           | 
           | 
          std::string  | 
          location,  | 
         
        
           | 
           | 
          std::string  | 
          area  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Definition at line 110 of file AppWAISlamParamHelper.h.
static std::string constructSlamAreaDir(std::string locationsRootDir, std::string location, std::string area)
 
 
 
 
◆ constructSlamMapFileName()
  
  
      
        
          | static std::string constructSlamMapFileName  | 
          ( | 
          std::string  | 
          location,  | 
         
        
           | 
           | 
          std::string  | 
          area,  | 
         
        
           | 
           | 
          std::string  | 
          extractorType,  | 
         
        
           | 
           | 
          int  | 
          nLevels,  | 
         
        
           | 
           | 
          std::string  | 
          dateTime = "",  | 
         
        
           | 
           | 
          bool  | 
          binaryMap = false  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
 
◆ constructSlamMapIdentifierString()
  
  
      
        
          | static std::string constructSlamMapIdentifierString  | 
          ( | 
          std::string  | 
          location,  | 
         
        
           | 
           | 
          std::string  | 
          area,  | 
         
        
           | 
           | 
          std::string  | 
          extractorType,  | 
         
        
           | 
           | 
          int  | 
          nLevels,  | 
         
        
           | 
           | 
          std::string  | 
          dateTime = ""  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Definition at line 47 of file AppWAISlamParamHelper.h.
   58     std::string result = 
"DEVELOPMENT-map_" + dateTime + 
"_" + location + 
"_" + area + 
"_" + extractorType + 
"_" + std::to_string(nLevels);
 
string getDateTime2String()
Returns local time as string like "20190213-154611".
 
 
 
 
◆ constructSlamMapImgDir()
  
  
      
        
          | static std::string constructSlamMapImgDir  | 
          ( | 
          std::string  | 
          mapDir,  | 
         
        
           | 
           | 
          std::string  | 
          mapFileName  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
 
◆ constructSlamMarkerDir()
  
  
      
        
          | static std::string constructSlamMarkerDir  | 
          ( | 
          std::string  | 
          locationsRootDir,  | 
         
        
           | 
           | 
          std::string  | 
          location,  | 
         
        
           | 
           | 
          std::string  | 
          area  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
 
◆ constructSlamVideoDir()
  
  
      
        
          | static std::string constructSlamVideoDir  | 
          ( | 
          std::string  | 
          locationsRootDir,  | 
         
        
           | 
           | 
          std::string  | 
          location,  | 
         
        
           | 
           | 
          std::string  | 
          area  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
 
◆ extractSlamMapInfosFromFileName()
  
  
      
        
          | static bool extractSlamMapInfosFromFileName  | 
          ( | 
          std::string  | 
          fileName,  | 
         
        
           | 
           | 
          SlamMapInfos *  | 
          slamMapInfos  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Definition at line 63 of file AppWAISlamParamHelper.h.
   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]);
 
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
 
 
 
 
◆ extractSlamVideoInfosFromFileName()
  
  
      
        
          | static bool extractSlamVideoInfosFromFileName  | 
          ( | 
          std::string  | 
          fileName,  | 
         
        
           | 
           | 
          SlamVideoInfos *  | 
          slamVideoInfos  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Definition at line 25 of file AppWAISlamParamHelper.h.
   30     std::vector<std::string> stringParts;
 
   33     if (stringParts.size() == 5)
 
   35         slamVideoInfos->
dateTime          = stringParts[0];
 
   38         slamVideoInfos->
purpose           = stringParts[3];
 
std::string weatherConditions