Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iri_base_algorithm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
labrobotica
ros
iri_core
iri_base_algorithm
Commits
9e8800a4
Commit
9e8800a4
authored
14 years ago
by
Joan Perez Ibarz
Browse files
Options
Downloads
Patches
Plain Diff
- 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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/iri_base_algorithm/iri_base_algorithm.h
+15
-0
15 additions, 0 deletions
include/iri_base_algorithm/iri_base_algorithm.h
with
15 additions
and
0 deletions
include/iri_base_algorithm/iri_base_algorithm.h
+
15
−
0
View file @
9e8800a4
...
...
@@ -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
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment