Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iri_base_driver
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_driver
Commits
1a81bc65
Commit
1a81bc65
authored
13 years ago
by
Joan Perez Ibarz
Browse files
Options
Downloads
Patches
Plain Diff
- adding ROS_DEBUG messages to base core classes
parent
05ee7a75
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/iri_base_driver/iri_base_driver_node.h
+11
-0
11 additions, 0 deletions
include/iri_base_driver/iri_base_driver_node.h
with
11 additions
and
0 deletions
include/iri_base_driver/iri_base_driver_node.h
+
11
−
0
View file @
1a81bc65
...
...
@@ -258,6 +258,7 @@ IriBaseNodeDriver<Driver>::IriBaseNodeDriver(ros::NodeHandle &nh) :
public_node_handle_
(
ros
::
this_node
::
getName
()),
loop_rate_
(
DEFAULT_RATE
)
{
ROS_DEBUG
(
"IriBaseNodeDriver::Constructor"
);
this
->
driver_
.
setPostOpenHook
(
boost
::
bind
(
&
IriBaseNodeDriver
::
postOpenHook
,
this
));
// create the status thread
...
...
@@ -274,6 +275,8 @@ IriBaseNodeDriver<Driver>::IriBaseNodeDriver(ros::NodeHandle &nh) :
template
<
class
Driver
>
void
*
IriBaseNodeDriver
<
Driver
>::
mainThread
(
void
*
param
)
{
ROS_DEBUG
(
"IriBaseNodeDriver::mainThread"
);
IriBaseNodeDriver
<
Driver
>
*
iriNode
=
(
IriBaseNodeDriver
<
Driver
>
*
)
param
;
while
(
ros
::
ok
())
...
...
@@ -294,6 +297,8 @@ void *IriBaseNodeDriver<Driver>::mainThread(void *param)
template
<
class
Driver
>
void
IriBaseNodeDriver
<
Driver
>::
postOpenHook
(
void
)
{
ROS_DEBUG
(
"IriBaseNodeDriver::postOpenHook"
);
//set hardware id with driver id
this
->
diagnostic_
.
setHardwareID
(
this
->
driver_
.
getID
());
...
...
@@ -303,36 +308,42 @@ void IriBaseNodeDriver<Driver>::postOpenHook(void)
template
<
class
Driver
>
void
IriBaseNodeDriver
<
Driver
>::
addDiagnostics
(
void
)
{
ROS_DEBUG
(
"IriBaseNodeDriver::addDiagnostics"
);
addNodeDiagnostics
();
}
template
<
class
Driver
>
void
IriBaseNodeDriver
<
Driver
>::
addOpenedTests
(
void
)
{
ROS_DEBUG
(
"IriBaseNodeDriver::addOpenedTests"
);
addNodeOpenedTests
();
}
template
<
class
Driver
>
void
IriBaseNodeDriver
<
Driver
>::
addStoppedTests
(
void
)
{
ROS_DEBUG
(
"IriBaseNodeDriver::addStoppedTests"
);
addNodeStoppedTests
();
}
template
<
class
Driver
>
void
IriBaseNodeDriver
<
Driver
>::
addRunningTests
(
void
)
{
ROS_DEBUG
(
"IriBaseNodeDriver::addRunningTests"
);
addNodeRunningTests
();
}
template
<
class
Driver
>
void
IriBaseNodeDriver
<
Driver
>::
reconfigureHook
(
int
level
)
{
ROS_DEBUG
(
"IriBaseNodeDriver::reconfigureHook"
);
reconfigureNodeHook
(
level
);
}
template
<
class
Driver
>
IriBaseNodeDriver
<
Driver
>::~
IriBaseNodeDriver
()
{
ROS_DEBUG
(
"IriBaseNodeDriver::Destrcutor"
);
try
{
//try access to driver to assert it is
...
...
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