From 173b1b2a8bcf2344be92b1f6e5acbc089a43fcab Mon Sep 17 00:00:00 2001 From: Thomas Gubler Date: Thu, 11 Dec 2014 10:51:19 +0100 Subject: WIP, make class based and extended subscriber/publisher example compile for ros --- src/platforms/px4_nodehandle.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/platforms/px4_nodehandle.h') 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 @@ -99,6 +99,19 @@ public: return sub; } + /** + * Subscribe with no callback, just the latest value is stored on updates + * @param topic Name of the topic + */ + template + 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 -- cgit v1.2.3