Commit 2abbac65 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

[C++][Parser] Throw exception when mesh file is not found

parent 11395d85
......@@ -67,6 +67,11 @@ namespace se3
std::string collisionFilename = collisionGeometry->filename;
meshPath = retrieveResourcePath(collisionFilename, package_dirs);
if (meshPath == "") {
std::stringstream ss;
ss << "Mesh " << collisionFilename << " could not be found.";
throw std::invalid_argument (ss.str());
}
fcl::Vec3f scale = fcl::Vec3f(collisionGeometry->scale.x,
collisionGeometry->scale.y,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment