We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa5cb55 commit 593f9eeCopy full SHA for 593f9ee
src/rosmod_actor/include/rosmod_actor/component.hpp
@@ -54,6 +54,7 @@ class Component {
54
virtual void process_queue();
55
56
protected:
57
+ ros::NodeHandle nh_; /*!< NodeHandle */
58
Json::Value config; /*!< Component Configuration */
59
ros::Timer init_timer; /*!< Initialization timer */
60
ros::CallbackQueue comp_queue; /*!< Component Message Queue */
src/rosmod_actor/src/rosmod_actor/component.cpp
@@ -32,7 +32,6 @@ Component::~Component() {
32
33
// Component Operation Queue Handler
34
void Component::process_queue() {
35
- ros::NodeHandle nh;
36
- while (nh.ok())
+ while (nh_.ok())
37
this->comp_queue.callAvailable(ros::WallDuration(0.01));
38
}
0 commit comments