also drop 'model://' from URDF file names (like we drop package://)
This commit is contained in:
@@ -564,9 +564,13 @@ bool findExistingMeshFile(
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string drop_it = "package://";
|
std::string drop_it_pack = "package://";
|
||||||
if (fn.substr(0, drop_it.length())==drop_it)
|
std::string drop_it_model = "model://";
|
||||||
fn = fn.substr(drop_it.length());
|
if (fn.substr(0, drop_it_pack.length())==drop_it_pack)
|
||||||
|
fn = fn.substr(drop_it_pack.length());
|
||||||
|
else if (fn.substr(0, drop_it_model.length())==drop_it_model)
|
||||||
|
fn = fn.substr(drop_it_model.length());
|
||||||
|
|
||||||
|
|
||||||
std::list<std::string> shorter;
|
std::list<std::string> shorter;
|
||||||
shorter.push_back("../..");
|
shorter.push_back("../..");
|
||||||
|
|||||||
Reference in New Issue
Block a user