Skip to content
Snippets Groups Projects
Commit 9e8800a4 authored by Joan Perez Ibarz's avatar Joan Perez Ibarz
Browse files

- updating algorithm templates to include CMutex and reconfigure callback

- adding virtual reconfigure callback in base algorithm
parent d709df55
No related branches found
No related tags found
No related merge requests found
......@@ -228,6 +228,20 @@ class IriBaseAlgorithm : public AbstractAlgorithmNode
*/
void reconfigureCallback(Config &config, uint32_t level);
/**
* \brief dynamic reconfigure server callback
*
* This method is called whenever a new configuration is received through
* the dynamic reconfigure. The derivated generic algorithm class must
* implement it.
*
* \param config an object with new configuration from all algorithm
* parameters defined in the config file.
* \param level integer referring the level in which the configuration
* has been changed.
*/
virtual void node_config_update(Config &config, uint32_t level) = 0;
/**
* \brief add diagnostics
*
......@@ -311,6 +325,7 @@ IriBaseAlgorithm<Algorithm>::~IriBaseAlgorithm()
template <class Algorithm>
void IriBaseAlgorithm<Algorithm>::reconfigureCallback(Config &config, uint32_t level)
{
node_config_update(config, level);
this->alg_.config_update(config, level);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment