Skip to content
Snippets Groups Projects
Commit a552cfa6 authored by Raphael Grimm's avatar Raphael Grimm
Browse files

Fix Urdf loader for cases of absolute file paths for meshes

parent 71e32f09
No related branches found
No related tags found
No related merge requests found
......@@ -155,6 +155,12 @@ namespace VirtualRobot
std::string SimoxURDFFactory::getFilename(const std::string& f, const string &basePath)
{
if (f.find(basePath) == 0)
{
//f is already absolute
return f;
}
std::string result = f;
std::string part1 = result.substr(0, 10);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment