#include <DJI_LIB_ROS_Adapter.h>
Public Member Functions | |
void | activate (ActivateData *data, CallBack callback) |
void | init (std::string device, unsigned int baudrate) |
ROSAdapter () | |
void | sendToMobile (uint8_t *data, uint8_t len) |
template<class T > | |
void | setBroadcastCallback (void(T::*func)(), T *obj) |
template<class T > | |
void | setFromMobileCallback (void(T::*func)(uint8_t *, uint8_t), T *obj) |
template<class T > | |
void | setMissionEventCallback (void(T::*func)(uint8_t *, uint8_t), T *obj) |
template<class T > | |
void | setMissionStatusCallback (void(T::*func)(uint8_t *, uint8_t), T *obj) |
void | usbHandshake (std::string &device) |
~ROSAdapter () | |
Static Public Member Functions | |
static void * | APIRecvThread (void *param) |
static void | broadcastCallback (CoreAPI *coreAPI, Header *header, void *userData) |
static void | fromMobileCallback (CoreAPI *coreAPI, Header *header, void *userData) |
static void | missionEventCallback (CoreAPI *coreAPI, Header *header, void *userData) |
static void | missionStatusCallback (CoreAPI *coreAPI, Header *header, void *userData) |
Public Attributes | |
Camera * | camera |
CoreAPI * | coreAPI |
Flight * | flight |
Follow * | followme |
HotPoint * | hotpoint |
VirtualRC * | virtualRC |
WayPoint * | waypoint |
Private Attributes | |
std::function< void()> | m_broadcastCallback |
std::function< void(uint8_t *, uint8_t) | m_fromMobileCallback ) |
HardDriver_Manifold * | m_hd |
std::function< void(uint8_t *, uint8_t) | m_missionEventCallback ) |
std::function< void(uint8_t *, uint8_t) | m_missionStatusCallback ) |
pthread_t | m_recvTid |
Definition at line 60 of file DJI_LIB_ROS_Adapter.h.
DJI::onboardSDK::ROSAdapter::ROSAdapter | ( | ) | [inline] |
Definition at line 62 of file DJI_LIB_ROS_Adapter.h.
DJI::onboardSDK::ROSAdapter::~ROSAdapter | ( | ) | [inline] |
Definition at line 66 of file DJI_LIB_ROS_Adapter.h.
void DJI::onboardSDK::ROSAdapter::activate | ( | ActivateData * | data, |
CallBack | callback | ||
) | [inline] |
Definition at line 142 of file DJI_LIB_ROS_Adapter.h.
static void* DJI::onboardSDK::ROSAdapter::APIRecvThread | ( | void * | param | ) | [inline, static] |
Definition at line 78 of file DJI_LIB_ROS_Adapter.h.
static void DJI::onboardSDK::ROSAdapter::broadcastCallback | ( | CoreAPI * | coreAPI, |
Header * | header, | ||
void * | userData | ||
) | [inline, static] |
Definition at line 88 of file DJI_LIB_ROS_Adapter.h.
static void DJI::onboardSDK::ROSAdapter::fromMobileCallback | ( | CoreAPI * | coreAPI, |
Header * | header, | ||
void * | userData | ||
) | [inline, static] |
Definition at line 93 of file DJI_LIB_ROS_Adapter.h.
void DJI::onboardSDK::ROSAdapter::init | ( | std::string | device, |
unsigned int | baudrate | ||
) | [inline] |
Definition at line 112 of file DJI_LIB_ROS_Adapter.h.
static void DJI::onboardSDK::ROSAdapter::missionEventCallback | ( | CoreAPI * | coreAPI, |
Header * | header, | ||
void * | userData | ||
) | [inline, static] |
Definition at line 106 of file DJI_LIB_ROS_Adapter.h.
static void DJI::onboardSDK::ROSAdapter::missionStatusCallback | ( | CoreAPI * | coreAPI, |
Header * | header, | ||
void * | userData | ||
) | [inline, static] |
Definition at line 100 of file DJI_LIB_ROS_Adapter.h.
void DJI::onboardSDK::ROSAdapter::sendToMobile | ( | uint8_t * | data, |
uint8_t | len | ||
) | [inline] |
Definition at line 182 of file DJI_LIB_ROS_Adapter.h.
void DJI::onboardSDK::ROSAdapter::setBroadcastCallback | ( | void(T::*)() | func, |
T * | obj | ||
) | [inline] |
Definition at line 151 of file DJI_LIB_ROS_Adapter.h.
void DJI::onboardSDK::ROSAdapter::setFromMobileCallback | ( | void(T::*)(uint8_t *, uint8_t) | func, |
T * | obj | ||
) | [inline] |
Definition at line 158 of file DJI_LIB_ROS_Adapter.h.
void DJI::onboardSDK::ROSAdapter::setMissionEventCallback | ( | void(T::*)(uint8_t *, uint8_t) | func, |
T * | obj | ||
) | [inline] |
Definition at line 171 of file DJI_LIB_ROS_Adapter.h.
void DJI::onboardSDK::ROSAdapter::setMissionStatusCallback | ( | void(T::*)(uint8_t *, uint8_t) | func, |
T * | obj | ||
) | [inline] |
Definition at line 165 of file DJI_LIB_ROS_Adapter.h.
void DJI::onboardSDK::ROSAdapter::usbHandshake | ( | std::string & | device | ) | [inline] |
Definition at line 186 of file DJI_LIB_ROS_Adapter.h.
Definition at line 194 of file DJI_LIB_ROS_Adapter.h.
Definition at line 192 of file DJI_LIB_ROS_Adapter.h.
Definition at line 193 of file DJI_LIB_ROS_Adapter.h.
Definition at line 198 of file DJI_LIB_ROS_Adapter.h.
Definition at line 197 of file DJI_LIB_ROS_Adapter.h.
std::function<void()> DJI::onboardSDK::ROSAdapter::m_broadcastCallback [private] |
Definition at line 206 of file DJI_LIB_ROS_Adapter.h.
std::function<void(uint8_t*, uint8_t) DJI::onboardSDK::ROSAdapter::m_fromMobileCallback) [private] |
Definition at line 208 of file DJI_LIB_ROS_Adapter.h.
Definition at line 202 of file DJI_LIB_ROS_Adapter.h.
std::function<void(uint8_t*, uint8_t) DJI::onboardSDK::ROSAdapter::m_missionEventCallback) [private] |
Definition at line 212 of file DJI_LIB_ROS_Adapter.h.
std::function<void(uint8_t*, uint8_t) DJI::onboardSDK::ROSAdapter::m_missionStatusCallback) [private] |
Definition at line 210 of file DJI_LIB_ROS_Adapter.h.
pthread_t DJI::onboardSDK::ROSAdapter::m_recvTid [private] |
Definition at line 204 of file DJI_LIB_ROS_Adapter.h.
Definition at line 195 of file DJI_LIB_ROS_Adapter.h.
Definition at line 196 of file DJI_LIB_ROS_Adapter.h.