diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-11-26 13:18:28 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-11-26 13:18:28 +0100 |
commit | ee534b827a51a7356e565b665e280f765bd8d302 (patch) | |
tree | 26509aeeb1484826e91d3f292e55a4d218b4fcc0 /src/platforms/px4_nodehandle.h | |
parent | 818a49b5a81a5b821fa9a1a13db4591da5c33751 (diff) | |
download | px4-firmware-ee534b827a51a7356e565b665e280f765bd8d302.tar.gz px4-firmware-ee534b827a51a7356e565b665e280f765bd8d302.tar.bz2 px4-firmware-ee534b827a51a7356e565b665e280f765bd8d302.zip |
move spin functions to nodehandle
Diffstat (limited to 'src/platforms/px4_nodehandle.h')
-rw-r--r-- | src/platforms/px4_nodehandle.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/platforms/px4_nodehandle.h b/src/platforms/px4_nodehandle.h index 972792d53..b665f3fe7 100644 --- a/src/platforms/px4_nodehandle.h +++ b/src/platforms/px4_nodehandle.h @@ -53,6 +53,7 @@ namespace px4 { +//XXX create abstract base class #if defined(__linux) || (defined(__APPLE__) && defined(__MACH__)) class NodeHandle : private ros::NodeHandle @@ -83,6 +84,10 @@ public: _pubs.push_back(pub); return pub; } + + void spin() { ros::spin(); } + + void spinOnce() { ros::spinOnce(); } private: static const uint32_t kQueueSizeDefault = 1000; std::list<Subscriber*> _subs; |