mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 00:37:46 +08:00
Simplified rtabmap-imagesJoiner tools
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user