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
745ef276
Commit
745ef276
authored
14 years ago
by
Joan Perez Ibarz
Browse files
Options
Downloads
Patches
Plain Diff
updating alg_core and examples to move cfg file at the impl_algorithm layer
parent
820b26e1
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
+11
-10
11 additions, 10 deletions
include/iri_base_algorithm/iri_base_algorithm.h
with
11 additions
and
10 deletions
include/iri_base_algorithm/iri_base_algorithm.h
+
11
−
10
View file @
745ef276
...
...
@@ -198,14 +198,15 @@ class IriBaseAlgorithm : public AbstractAlgorithmNode
* \brief dynamic reconfigure server callback
*
* This method is called whenever a new configuration is received through
* the dynamic reconfigure.
* 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.
*/
void
reconfigureCallback
(
Config
&
config
,
uint32_t
level
);
virtual
void
reconfigureCallback
(
Config
&
config
,
uint32_t
level
)
=
0
;
/**
* \brief add diagnostics
...
...
@@ -257,11 +258,11 @@ class IriBaseAlgorithm : public AbstractAlgorithmNode
template
<
class
Algorithm
>
IriBaseAlgorithm
<
Algorithm
>::
IriBaseAlgorithm
()
:
private_node_handle_
(
"~"
),
public_node_handle_
(
ros
::
this_node
::
getName
()),
private_node_handle_
(
"~"
),
loop_rate_
(
DEFAULT_RATE
),
dsrv_
(
private_node_handle_
),
diagnostic_
(),
loop_rate_
(
DEFAULT_RATE
)
diagnostic_
()
{
// create thread server instance
this
->
thread_server_
=
CThreadServer
::
instance
();
...
...
@@ -284,11 +285,11 @@ IriBaseAlgorithm<Algorithm>::~IriBaseAlgorithm()
this
->
thread_server_
->
kill_thread
(
this
->
main_thread_id_
);
}
template
<
class
Algorithm
>
void
IriBaseAlgorithm
<
Algorithm
>::
reconfigureCallback
(
Config
&
config
,
uint32_t
level
)
{
this
->
alg_
.
config_
=
config
;
}
//
template <class Algorithm>
//
void IriBaseAlgorithm<Algorithm>::reconfigureCallback(Config &config, uint32_t level)
//
{
//
this->alg_.config_ = config;
//
}
template
<
class
Algorithm
>
void
IriBaseAlgorithm
<
Algorithm
>::
addDiagnostics
(
void
)
...
...
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