mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 00:37:46 +08:00
Added Stereo and StereoDense base classes (with Stereo->StereoOpticalFlow and StereoDense->StereoBM) to handle easily stereo parameters. Added stereoEval tool to test Stereo/OpticalFlow=false or true. Added StereoBM parameters. Refactoring of the Preferences dialog (tree view order and some titles)
This commit is contained in:
@@ -117,6 +117,12 @@ std::string UTILITE_EXP uNumber2Str(float number);
|
||||
*/
|
||||
std::string UTILITE_EXP uNumber2Str(double number);
|
||||
|
||||
/**
|
||||
* Convert a string to an integer.
|
||||
* @param the string
|
||||
* @return the number
|
||||
*/
|
||||
int UTILITE_EXP uStr2Int(const std::string & str);
|
||||
|
||||
/**
|
||||
* Convert a string to a float independent of the locale (comma/dot).
|
||||
|
||||
@@ -113,6 +113,11 @@ std::string uNumber2Str(double number)
|
||||
return s.str();
|
||||
}
|
||||
|
||||
int uStr2Int(const std::string & str)
|
||||
{
|
||||
return atoi(str.c_str());
|
||||
}
|
||||
|
||||
float uStr2Float(const std::string & str)
|
||||
{
|
||||
float value = 0.0f;
|
||||
|
||||
Reference in New Issue
Block a user