fix the issue of converting the double to single.

This commit is contained in:
Steven
2019-06-19 21:15:47 +08:00
parent 0b9c0cebfb
commit b1444f34cf

View File

@@ -27,7 +27,7 @@ static bool parseVector4(btVector4& vec4, const std::string& vector_str)
{ {
vec4.setZero(); vec4.setZero();
btArray<std::string> pieces; btArray<std::string> pieces;
btArray<float> rgba; btArray<double> rgba;
btAlignedObjectArray<std::string> strArray; btAlignedObjectArray<std::string> strArray;
urdfIsAnyOf(" ", strArray); urdfIsAnyOf(" ", strArray);
urdfStringSplit(pieces, vector_str, strArray); urdfStringSplit(pieces, vector_str, strArray);
@@ -50,7 +50,7 @@ static bool parseVector3(btVector3& vec3, const std::string& vector_str, ErrorLo
{ {
vec3.setZero(); vec3.setZero();
btArray<std::string> pieces; btArray<std::string> pieces;
btArray<float> rgba; btArray<double> rgba;
btAlignedObjectArray<std::string> strArray; btAlignedObjectArray<std::string> strArray;
urdfIsAnyOf(" ", strArray); urdfIsAnyOf(" ", strArray);
urdfStringSplit(pieces, vector_str, strArray); urdfStringSplit(pieces, vector_str, strArray);