Skip to content
This repository was archived by the owner on Nov 13, 2017. It is now read-only.

Commit 2da142f

Browse files
author
Alain Sanguinetti
committed
Keep PR#702 to just the minimum needed to fix #592
1 parent 9283d9a commit 2da142f

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

planning/kinematics_plugin_loader/include/moveit/kinematics_plugin_loader/kinematics_plugin_loader.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ class KinematicsPluginLoader
6262
{
6363
}
6464

65+
~KinematicsPluginLoader();
66+
6567
/** \brief Use a default kinematics solver (\e solver_plugin) for
6668
all the groups in the robot model. The default timeout for the
6769
solver is \e solve_timeout and the default number of IK attempts

planning/kinematics_plugin_loader/src/kinematics_plugin_loader.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@ class KinematicsPluginLoader::KinematicsLoaderImpl
7676
}
7777
}
7878

79+
/**
80+
* \brief Explicit destructor to avoid bugs in unloading the library
81+
*/
82+
~KinematicsLoaderImpl( )
83+
{
84+
kinematics_loader_.reset(); // we delete it manually
85+
}
86+
7987
/**
8088
* \brief Helper function to decide which, and how many, tip frames a planning group has
8189
* \param jmg - joint model group pointer
@@ -243,6 +251,10 @@ void kinematics_plugin_loader::KinematicsPluginLoader::status() const
243251
ROS_INFO("Loader function was never required");
244252
}
245253

254+
kinematics_plugin_loader::KinematicsPluginLoader::~KinematicsPluginLoader()
255+
{
256+
}
257+
246258
robot_model::SolverAllocatorFn kinematics_plugin_loader::KinematicsPluginLoader::getLoaderFunction()
247259
{
248260
moveit::tools::Profiler::ScopedStart prof_start;

0 commit comments

Comments
 (0)