Simplified rtabmap-imagesJoiner tools

This commit is contained in:
Mathieu Labbe
2015-01-30 18:07:28 -05:00
parent 1fe2a9ed95
commit 9d20403930
3 changed files with 57 additions and 69 deletions
@@ -115,6 +115,12 @@ public:
*/
std::string getNextFileName();
/**
* Get the next file path.
* @return the next file path
*/
std::string getNextFilePath();
/**
* Get all file names.
* @see UDirectory()
+11
View File
@@ -229,6 +229,17 @@ std::string UDirectory::getNextFileName()
return fileName;
}
std::string UDirectory::getNextFilePath()
{
std::string filePath;
if(iFileName_ != fileNames_.end())
{
filePath = path_+separator()+*iFileName_;
++iFileName_;
}
return filePath;
}
void UDirectory::rewind()
{
iFileName_ = fileNames_.begin();