Skip to content

Commit

Permalink
Leverage forward declarations to improve compile times
Browse files Browse the repository at this point in the history
  • Loading branch information
rjoomen committed Jul 18, 2024
1 parent e87265a commit 1b8cde1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ namespace tesseract_collision::tesseract_collision_hpp_fcl
class HPP_FCLDiscreteBVHManagerFactory : public DiscreteContactManagerFactory
{
public:
DiscreteContactManager::UPtr create(const std::string& name, const YAML::Node& config) const override final;
std::unique_ptr<DiscreteContactManager> create(const std::string& name,
const YAML::Node& config) const override final;
};

TESSERACT_PLUGIN_ANCHOR_DECL(HPP_FCLFactoriesAnchor)
Expand Down
7 changes: 4 additions & 3 deletions tesseract_collision/hpp_fcl/src/hpp_fcl_factories.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@

#include <tesseract_collision/hpp_fcl/hpp_fcl_factories.h>
#include <tesseract_collision/hpp_fcl/hpp_fcl_discrete_managers.h>
#include <tesseract_collision/core/discrete_contact_manager.h>

namespace tesseract_collision::tesseract_collision_hpp_fcl
{
DiscreteContactManager::UPtr HPP_FCLDiscreteBVHManagerFactory::create(const std::string& name,
const YAML::Node& /*config*/) const
std::unique_ptr<tesseract_collision::DiscreteContactManager>
HPP_FCLDiscreteBVHManagerFactory::create(const std::string& name, const YAML::Node& /*config*/) const
{
return std::make_unique<HPP_FCLDiscreteBVHManager>(name);
}
Expand All @@ -42,4 +43,4 @@ TESSERACT_PLUGIN_ANCHOR_IMPL(HPP_FCLFactoriesAnchor) // LCOV_EXCL_LINE
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
TESSERACT_ADD_DISCRETE_MANAGER_PLUGIN(
tesseract_collision::tesseract_collision_hpp_fcl::HPP_FCLDiscreteBVHManagerFactory,
HPP_FCLDiscreteBVHManagerFactory);
HPP_FCLDiscreteBVHManagerFactory)
2 changes: 1 addition & 1 deletion tesseract_collision/hpp_fcl/src/hpp_fcl_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ CollisionGeometryPtr createShapePrimitive(const tesseract_geometry::Octree::Cons
{
switch (geom->getSubType())
{
case tesseract_geometry::Octree::SubType::BOX:
case tesseract_geometry::OctreeSubType::BOX:
{
return CollisionGeometryPtr(new hpp::fcl::OcTree(geom->getOctree()));
}
Expand Down

0 comments on commit 1b8cde1

Please sign in to comment.