Skip to content

Commit 593f9ee

Browse files
committed
minor update to store a ros::NodeHandle.
1 parent aa5cb55 commit 593f9ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/rosmod_actor/include/rosmod_actor/component.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class Component {
5454
virtual void process_queue();
5555

5656
protected:
57+
ros::NodeHandle nh_; /*!< NodeHandle */
5758
Json::Value config; /*!< Component Configuration */
5859
ros::Timer init_timer; /*!< Initialization timer */
5960
ros::CallbackQueue comp_queue; /*!< Component Message Queue */

src/rosmod_actor/src/rosmod_actor/component.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ Component::~Component() {
3232

3333
// Component Operation Queue Handler
3434
void Component::process_queue() {
35-
ros::NodeHandle nh;
36-
while (nh.ok())
35+
while (nh_.ok())
3736
this->comp_queue.callAvailable(ros::WallDuration(0.01));
3837
}

0 commit comments

Comments
 (0)