URDF loader: fix SDF branch, warn about unsupported geometry

This commit is contained in:
Oleg Klimov
2017-03-14 02:32:02 +03:00
parent 3a8199ec28
commit fa60cc5f56
3 changed files with 61 additions and 59 deletions

View File

@@ -755,7 +755,8 @@ upAxisMat.setIdentity();
} // mesh case
default:
b3Warning("Error: unknown visual geometry type\n");
b3Warning("Error: unknown collision geometry type %i\n", collision->m_geometry.m_type);
// for example, URDF_GEOM_PLANE
}
return shape;
}
@@ -943,7 +944,7 @@ static void convertURDFToVisualShapeInternal(const UrdfVisual* visual, const cha
}
default:
b3Warning("Error: unknown visual geometry type\n");
b3Warning("Error: unknown visual geometry type %i\n", visual->m_geometry.m_type);
}
//if we have a convex, tesselate into localVertices/localIndices