diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-11-25 10:19:18 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-11-25 10:19:18 +0100 |
commit | c167df90380fdd99d1b56024c4de104a3f0a2f85 (patch) | |
tree | 8eb7266eb1813398b8da656fa8c63b10d79df1e0 /src/platforms/px4_publisher.h | |
parent | 978013bbb8d67e295d92a54e16f7728013722e92 (diff) | |
download | px4-firmware-c167df90380fdd99d1b56024c4de104a3f0a2f85.tar.gz px4-firmware-c167df90380fdd99d1b56024c4de104a3f0a2f85.tar.bz2 px4-firmware-c167df90380fdd99d1b56024c4de104a3f0a2f85.zip |
ros wrapper: small reordering
Diffstat (limited to 'src/platforms/px4_publisher.h')
-rw-r--r-- | src/platforms/px4_publisher.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/platforms/px4_publisher.h b/src/platforms/px4_publisher.h index 799525190..72f69a5af 100644 --- a/src/platforms/px4_publisher.h +++ b/src/platforms/px4_publisher.h @@ -46,14 +46,14 @@ namespace px4 #if defined(__linux) || (defined(__APPLE__) && defined(__MACH__)) class Publisher { -private: - ros::Publisher _ros_pub; public: Publisher(ros::Publisher ros_pub) : _ros_pub(ros_pub) {} ~Publisher() {}; template<typename M> int publish(const M &msg) { _ros_pub.publish(msg); return 0; } +private: + ros::Publisher _ros_pub; }; #else class Publisher |