aboutsummaryrefslogtreecommitdiff
path: root/src/platforms/px4_publisher.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/platforms/px4_publisher.h')
-rw-r--r--src/platforms/px4_publisher.h4
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