mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 03:23:35 +08:00
add and use PX4_ROS preprocessor define
This commit is contained in:
@@ -36,9 +36,11 @@
|
||||
*
|
||||
* PX4 Middleware Wrapper Subscriber
|
||||
*/
|
||||
#include <functional>
|
||||
#pragma once
|
||||
#if defined(__linux) || (defined(__APPLE__) && defined(__MACH__))
|
||||
|
||||
#include <functional>
|
||||
|
||||
#if defined(__PX4_ROS)
|
||||
/* includes when building for ros */
|
||||
#include "ros/ros.h"
|
||||
#else
|
||||
@@ -87,7 +89,7 @@ public:
|
||||
virtual void * get_void_ptr() = 0;
|
||||
};
|
||||
|
||||
#if defined(__linux) || (defined(__APPLE__) && defined(__MACH__))
|
||||
#if defined(__PX4_ROS)
|
||||
/**
|
||||
* Subscriber class that is templated with the ros n message type
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user