mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 00:37:46 +08:00
Update version 0.10.11:
-Added parameter "Mem/ReduceGraph" with new link type (NeighborMerged) -DatabaseViewer: add Info panel, fixed empty extracted database when "RGB images" is not checked -ConsoleWidget: added buffer size and refresh rate options -DBDriver: new database info getters -Graph: added reduceGraph() method, added Dijsktra computePath() with links only -Updated default parameters: RGBD/LocalLoopDetectionSpace=true, RGBD/LinearUpdate=0.1 and RGBD/AngularUpdate=0.1 -Goals are saved with label instead of ID if the target node has a label -DataRecorder: fixed saving incrementally the database (instead of only at the end) -MainWindow: When waypoints are used, resend the current goal (1 sec delay) if it has failed setting it
This commit is contained in:
@@ -600,13 +600,28 @@ inline std::string uJoin(const std::list<std::string> & strings, const std::stri
|
||||
/**
|
||||
* Check if a character is a digit.
|
||||
* @param c the character
|
||||
* @return if the character is a digit (if c >= '0' && c <= '9')
|
||||
* @return true if the character is a digit (if c >= '0' && c <= '9')
|
||||
*/
|
||||
inline bool uIsDigit(const char c)
|
||||
{
|
||||
return c >= '0' && c <= '9';
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a string is a interger number.
|
||||
* @param str the string
|
||||
* @return true if the string is a integer number
|
||||
*/
|
||||
inline bool uIsInteger(const std::string & str)
|
||||
{
|
||||
bool isInteger = str.size();
|
||||
for(unsigned int i=0; i<str.size() && isInteger; ++i)
|
||||
{
|
||||
isInteger = isdigit(str[i]);
|
||||
}
|
||||
return isInteger;
|
||||
}
|
||||
|
||||
/**
|
||||
* Split a string into number and character strings.
|
||||
* Example:
|
||||
|
||||
Reference in New Issue
Block a user