Go to the documentation of this file.
40 #include <boost/filesystem.hpp>
42 #ifdef HPP_FCL_HAS_OCTOMAP
52 for (
int i = 0; i < 3; ++i) {
53 if (
a.scale[i] <
b.scale[i])
55 else if (
a.scale[i] >
b.scale[i])
58 return std::less<std::string>()(
a.filename,
b.filename);
61 template <
typename BV>
80 return _load<OBBRSS>(
filename, scale);
82 return _load<KDOP<16> >(
filename, scale);
84 return _load<KDOP<18> >(
filename, scale);
86 return _load<KDOP<24> >(
filename, scale);
88 throw std::invalid_argument(
"Unhandled bouding volume type.");
93 #ifdef HPP_FCL_HAS_OCTOMAP
97 throw std::logic_error(
98 "hpp-fcl compiled without OctoMap. Cannot create OcTrees.");
103 const Vec3f& scale) {
106 std::time_t mtime = 0;
108 mtime = boost::filesystem::last_write_time(
filename);
110 Cache_t::const_iterator _cached =
cache_.find(key);
111 if (_cached !=
cache_.end() && _cached->second.mtime == mtime)
113 return _cached->second.model;
114 }
catch (boost::filesystem::filesystem_error&) {
Eigen::Matrix< FCL_REAL, 3, 1 > Vec3f
void loadPolyhedronFromResource(const std::string &resource_path, const fcl::Vec3f &scale, const shared_ptr< BVHModel< BoundingVolume > > &polyhedron)
Read a mesh file and convert it to a polyhedral mesh.
bool operator<(const CachedMeshLoader::Key &b) const
shared_ptr< CollisionGeometry > CollisionGeometryPtr_t
BVHModelPtr_t _load(const std::string &filename, const Vec3f &scale)
virtual BVHModelPtr_t load(const std::string &filename, const Vec3f &scale)
A class describing the bounding hierarchy of a mesh model or a point cloud model (which is viewed as ...
virtual BVHModelPtr_t load(const std::string &filename, const Vec3f &scale=Vec3f::Ones())
Octree is one type of collision geometry which can encode uncertainty information in the sensor data.
virtual CollisionGeometryPtr_t loadOctree(const std::string &filename)
shared_ptr< BVHModelBase > BVHModelPtr_t
hpp-fcl
Author(s):
autogenerated on Fri Aug 2 2024 02:45:14