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
afc0fac5
Commit
afc0fac5
authored
13 years ago
by
Joan Perez Ibarz
Browse files
Options
Downloads
Patches
Plain Diff
- adding ROS_DEBUG messages to base core classes
parent
e252e98d
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
+7
-8
7 additions, 8 deletions
include/iri_base_algorithm/iri_base_algorithm.h
with
7 additions
and
8 deletions
include/iri_base_algorithm/iri_base_algorithm.h
+
7
−
8
View file @
afc0fac5
...
...
@@ -298,7 +298,7 @@ IriBaseAlgorithm<Algorithm>::IriBaseAlgorithm() :
diagnostic_
(),
dsrv_
(
private_node_handle_
)
{
ROS_DEBUG
(
"I
RI
Base
Algorithm
Constructor"
);
ROS_DEBUG
(
"I
ri
BaseAlgorithm
::
Constructor"
);
// create thread server instance
this
->
thread_server_
=
CThreadServer
::
instance
();
...
...
@@ -317,7 +317,7 @@ IriBaseAlgorithm<Algorithm>::IriBaseAlgorithm() :
template
<
class
Algorithm
>
IriBaseAlgorithm
<
Algorithm
>::~
IriBaseAlgorithm
()
{
ROS_DEBUG
(
"I
RI
Base
Algorithm
Destructor"
);
ROS_DEBUG
(
"I
ri
BaseAlgorithm
::
Destructor"
);
this
->
thread_server_
->
kill_thread
(
this
->
main_thread_id_
);
}
...
...
@@ -325,23 +325,22 @@ IriBaseAlgorithm<Algorithm>::~IriBaseAlgorithm()
template
<
class
Algorithm
>
void
IriBaseAlgorithm
<
Algorithm
>::
reconfigureCallback
(
Config
&
config
,
uint32_t
level
)
{
ROS_
INFO
(
"IriBaseAlgorithm::reconfigureCallback"
);
ROS_
DEBUG
(
"IriBaseAlgorithm::reconfigureCallback"
);
this
->
node_config_update
(
config
,
level
);
ROS_INFO
(
"IriBaseAlgorithm::reconfigureCallback: node_config_update"
);
this
->
alg_
.
config_update
(
config
,
level
);
ROS_INFO
(
"IriBaseAlgorithm::reconfigureCallback: alg_.config_update"
);
}
template
<
class
Algorithm
>
void
IriBaseAlgorithm
<
Algorithm
>::
addDiagnostics
(
void
)
{
ROS_DEBUG
(
"IriBaseAlgorithm::addDiagnostics"
);
addNodeDiagnostics
();
}
template
<
class
Algorithm
>
void
*
IriBaseAlgorithm
<
Algorithm
>::
mainThread
(
void
*
param
)
{
ROS_DEBUG
(
"I
RI
Base
Algorithm
mainThread"
);
ROS_DEBUG
(
"I
ri
BaseAlgorithm
::
mainThread"
);
// retrieve base algorithm class
IriBaseAlgorithm
*
iriNode
=
(
IriBaseAlgorithm
*
)
param
;
...
...
@@ -362,7 +361,7 @@ void *IriBaseAlgorithm<Algorithm>::mainThread(void *param)
template
<
class
Algorithm
>
int
IriBaseAlgorithm
<
Algorithm
>::
spin
(
void
)
{
ROS_DEBUG
(
"I
RI
Base
Algorithm
spin"
);
ROS_DEBUG
(
"I
ri
BaseAlgorithm
::
spin"
);
// initialize diagnostics
this
->
diagnostic_
.
setHardwareID
(
"none"
);
...
...
@@ -413,7 +412,7 @@ int AbstractAlgorithmNode::ctrl_c_hit_count_ = 0;
template
<
class
AlgImplTempl
>
int
main
(
int
argc
,
char
**
argv
,
std
::
string
node_name
)
{
ROS_DEBUG
(
"I
RI
Base
Algorithm
%s Launched"
,
node_name
.
c_str
());
ROS_DEBUG
(
"I
ri
BaseAlgorithm
::
%s Launched"
,
node_name
.
c_str
());
// ROS initialization
ros
::
init
(
argc
,
argv
,
node_name
);
...
...
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