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

- adding execption to segway driver constructor

- implementing reconfigure callback instead of making it virtual in iri_base_algorithm
parent b5945b71
No related branches found
No related tags found
No related merge requests found
// Copyright (C) 2010-2011 Institut de Robotica i Informatica Industrial, CSIC-UPC.
// Author Sergi Hernandez & Joan Perez
// All rights reserved.
//
// This file is part of iri-ros-pkg
// iri-ros-pkg is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef _IRI_BASE_ALGORITHM_H
#define _IRI_BASE_ALGORITHM_H
......@@ -206,7 +224,7 @@ class IriBaseAlgorithm : public AbstractAlgorithmNode
* \param level integer referring the level in which the configuration
* has been changed.
*/
virtual void reconfigureCallback(Config &config, uint32_t level) = 0;
void reconfigureCallback(Config &config, uint32_t level);
/**
* \brief add diagnostics
......@@ -285,11 +303,12 @@ IriBaseAlgorithm<Algorithm>::~IriBaseAlgorithm()
this->thread_server_->kill_thread(this->main_thread_id_);
}
// template <class Algorithm>
// void IriBaseAlgorithm<Algorithm>::reconfigureCallback(Config &config, uint32_t level)
// {
template <class Algorithm>
void IriBaseAlgorithm<Algorithm>::reconfigureCallback(Config &config, uint32_t level)
{
// this->alg_.config_ = config;
// }
this->alg_.config_update(config, level);
}
template <class Algorithm>
void IriBaseAlgorithm<Algorithm>::addDiagnostics(void)
......
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