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
acd53d33
Commit
acd53d33
authored
2 years ago
by
Sergi Hernandez
Browse files
Options
Downloads
Patches
Plain Diff
Used the constructor argument NodeHandle to initialize the private_node_handle_.
parent
769c35c7
No related branches found
Branches containing commit
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_driver/iri_base_driver_node.h
+2
-2
2 additions, 2 deletions
include/iri_base_driver/iri_base_driver_node.h
with
2 additions
and
2 deletions
include/iri_base_driver/iri_base_driver_node.h
+
2
−
2
View file @
acd53d33
...
...
@@ -340,7 +340,7 @@ IriBaseNodeDriver<Driver>::IriBaseNodeDriver(const ros::NodeHandle &nh) :
loop_rate_
(
DEFAULT_RATE
),
diagnostic_
(),
dsrv_
(
private_node_handle_
),
private_node_handle_
(
"~"
),
private_node_handle_
(
nh
),
driver_status_standard_diagnostic_
(
"Driver Status"
,
boost
::
bind
(
&
IriBaseNodeDriver
::
statusDiagnostic
,
this
,
_1
))
{
ROS_DEBUG
(
"IriBaseNodeDriver::Constructor"
);
...
...
@@ -643,7 +643,7 @@ int main(int argc, char **argv, std::string node_name)
ros
::
init
(
argc
,
argv
,
node_name
);
// define and launch generic algorithm implementation object
ros
::
NodeHandle
nh
;
ros
::
NodeHandle
nh
(
ros
::
this_node
::
getName
())
;
DriverType
driver
(
nh
);
driver
.
spin
();
...
...
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