Commit 43b1b2d2 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Do not SEGV when URDF model is not valid.

parent a29405c9
......@@ -198,6 +198,8 @@ namespace hpp {
const std::istream& urdfStream,
const std::string& srdf)
if (!urdfTree)
throw std::invalid_argument ("Failed to parse URDF. Use check_urdf command to know what's wrong.");
if (baseJoint != 0)
throw std::invalid_argument ("Only appending robots at the world is supported.");
Supports Markdown
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