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

Commit 383a895

Browse files
author
Alain Sanguinetti
committed
Manual reset of the kinematics loader implementation shared pointer to avoid bug #592
1 parent 30bb70f commit 383a895

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

planning/kinematics_plugin_loader/src/kinematics_plugin_loader.cpp

Lines changed: 8 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

0 commit comments

Comments
 (0)