Revision: 8665 http://playerstage.svn.sourceforge.net/playerstage/?rev=8665&view=rev Author: hsujohnhsu Date: 2010-05-06 19:45:13 +0000 (Thu, 06 May 2010)
Log Message: ----------- give more useful info message for boost lexical casting inf values Modified Paths: -------------- code/gazebo/trunk/server/Param.hh Modified: code/gazebo/trunk/server/Param.hh =================================================================== --- code/gazebo/trunk/server/Param.hh 2010-05-06 19:38:12 UTC (rev 8664) +++ code/gazebo/trunk/server/Param.hh 2010-05-06 19:45:13 UTC (rev 8665) @@ -185,7 +185,15 @@ } catch (boost::bad_lexical_cast &e) { - std::cerr << "Unable to read value with key[" << this->key << "]\n"; + if (str == "inf" || str == "-inf") + { + // int this case, the parser complains, but seems to assign the right values, so skip the spam + std::cout << "INFO [gazebo::Param]: boost throws when lexical casting inf's, but the values are usually passed through correctly (key[" << this->key << "], value[" << str << "])\n"; + } + else + { + std::cerr << "Unable to read value with key[" << this->key << "] and value[" << str << "]\n"; + } } if (callback) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ _______________________________________________ Playerstage-commit mailing list Playerstage-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/playerstage-commit