Export GPS poses: set 8 decimals (1 mm accuracy) https://github.com/introlab/rtabmap_ros/issues/833

This commit is contained in:
matlabbe
2022-11-02 11:35:54 -07:00
parent 2889cf8048
commit c9d50ef445
3 changed files with 17 additions and 16 deletions
@@ -109,13 +109,13 @@ std::string UTILITE_EXP uNumber2Str(int number);
* @param number the number to convert in a string
* @return the string
*/
std::string UTILITE_EXP uNumber2Str(float number);
std::string UTILITE_EXP uNumber2Str(float number, int precision=6);
/**
* Convert a number (double) to a string.
* @param number the number to convert in a string
* @return the string
*/
std::string UTILITE_EXP uNumber2Str(double number);
std::string UTILITE_EXP uNumber2Str(double number, int precision=6);
/**
* Convert a string to an integer.