mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-12 22:40:19 +08:00
changed all std::atof() to uStr2Float() to fix locale comma float conversion problem
This commit is contained in:
@@ -72,7 +72,7 @@ int main(int argc, char *argv[])
|
||||
++i;
|
||||
if(i < argc)
|
||||
{
|
||||
planeDistanceThreshold = std::atof(argv[i]);
|
||||
planeDistanceThreshold = uStr2Float(argv[i]);
|
||||
if(planeDistanceThreshold < 0.0f)
|
||||
{
|
||||
showUsage();
|
||||
@@ -89,7 +89,7 @@ int main(int argc, char *argv[])
|
||||
++i;
|
||||
if(i < argc)
|
||||
{
|
||||
planeEpsAngle = std::atof(argv[i]);
|
||||
planeEpsAngle = uStr2Float(argv[i]);
|
||||
if(planeEpsAngle < 0.0f)
|
||||
{
|
||||
showUsage();
|
||||
@@ -106,7 +106,7 @@ int main(int argc, char *argv[])
|
||||
++i;
|
||||
if(i < argc)
|
||||
{
|
||||
clusterTolerance = std::atof(argv[i]);
|
||||
clusterTolerance = uStr2Float(argv[i]);
|
||||
if(clusterTolerance <= 0.0f)
|
||||
{
|
||||
showUsage();
|
||||
|
||||
Reference in New Issue
Block a user