aboutsummaryrefslogtreecommitdiff
path: root/src/platforms/px4_nodehandle.h
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-12-11 10:51:19 +0100
committerThomas Gubler <thomasgubler@gmail.com>2014-12-11 10:51:19 +0100
commit173b1b2a8bcf2344be92b1f6e5acbc089a43fcab (patch)
tree63afb74e15312ecf8c60800962895e217c6e634c /src/platforms/px4_nodehandle.h
parenta1685ed6d093ec01214e6839ea66f9dd565e55ce (diff)
downloadpx4-firmware-173b1b2a8bcf2344be92b1f6e5acbc089a43fcab.tar.gz
px4-firmware-173b1b2a8bcf2344be92b1f6e5acbc089a43fcab.tar.bz2
px4-firmware-173b1b2a8bcf2344be92b1f6e5acbc089a43fcab.zip
WIP, make class based and extended subscriber/publisher example compile for ros
Diffstat (limited to 'src/platforms/px4_nodehandle.h')
-rw-r--r--src/platforms/px4_nodehandle.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/platforms/px4_nodehandle.h b/src/platforms/px4_nodehandle.h
index 5b7247b20..25b8e037d 100644
--- a/src/platforms/px4_nodehandle.h
+++ b/src/platforms/px4_nodehandle.h
@@ -100,6 +100,19 @@ public:
}
/**
+ * Subscribe with no callback, just the latest value is stored on updates
+ * @param topic Name of the topic
+ */
+ template<typename M>
+ Subscriber *subscribe(const char *topic)
+ {
+ //XXX missing implementation
+ // Subscriber *sub = new Subscriber(ros_sub);
+ // _subs.push_back(sub);
+ return (Subscriber *)NULL;
+ }
+
+ /**
* Advertise topic
* @param topic Name of the topic
*/