Skip to content

Commit

Permalink
[URDF] Do not throw when the list of package directory is empty.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmirabel committed Dec 5, 2017
1 parent 1df1ba6 commit ee4dda6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/parsers/urdf/geometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -443,11 +443,6 @@ namespace se3
std::vector<std::string> ros_pkg_paths = rosPaths();
hint_directories.insert(hint_directories.end(), ros_pkg_paths.begin(), ros_pkg_paths.end());

if(hint_directories.empty())
{
throw std::runtime_error("You did not specify any package directory and ROS_PACKAGE_PATH is empty. Geometric parsing will crash");
}

details::parseTreeForGeom(tree, tree.urdf_->getRoot(), model, geomModel, hint_directories,type);
return geomModel;
}
Expand Down

0 comments on commit ee4dda6

Please sign in to comment.