diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-12-03 07:43:08 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-12-03 07:43:08 +0100 |
commit | 905913986a03cdb31d056b278cadc2d6f6421e38 (patch) | |
tree | bbf151316943dfd96e896c115c0c14c2a1e6ce4d /src/platforms/px4_nodehandle.h | |
parent | 05a87a706a122b8a83becaaa94c70161fb69c82a (diff) | |
download | px4-firmware-905913986a03cdb31d056b278cadc2d6f6421e38.tar.gz px4-firmware-905913986a03cdb31d056b278cadc2d6f6421e38.tar.bz2 px4-firmware-905913986a03cdb31d056b278cadc2d6f6421e38.zip |
update comments
Diffstat (limited to 'src/platforms/px4_nodehandle.h')
-rw-r--r-- | src/platforms/px4_nodehandle.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/platforms/px4_nodehandle.h b/src/platforms/px4_nodehandle.h index 415351756..cf47fec59 100644 --- a/src/platforms/px4_nodehandle.h +++ b/src/platforms/px4_nodehandle.h @@ -55,7 +55,6 @@ namespace px4 { -//XXX create abstract base class #if defined(__linux) || (defined(__APPLE__) && defined(__MACH__)) class NodeHandle : private ros::NodeHandle @@ -71,7 +70,7 @@ public: //XXX empty lists }; - /* Constructor with callback to function */ + /* Subscribe with callback to function */ template<typename M> Subscriber * subscribe(const char *topic, void(*fp)(M)) { ros::Subscriber ros_sub = ros::NodeHandle::subscribe(topic, kQueueSizeDefault, fp); @@ -79,7 +78,8 @@ public: _subs.push_back(sub); return sub; } - /* Constructor with callback to class method */ + + /* Subscribe with callback to class method */ template<typename M, typename T> Subscriber * subscribe(const char *topic, void(T::*fp)(M), T *obj) { ros::Subscriber ros_sub = ros::NodeHandle::subscribe(topic, kQueueSizeDefault, fp, obj); |