Public Member Functions | Static Public Member Functions | Public Attributes | Private Attributes
DJI::onboardSDK::ROSAdapter Class Reference

#include <DJI_LIB_ROS_Adapter.h>

List of all members.

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

Cameracamera
CoreAPIcoreAPI
Flightflight
Followfollowme
HotPointhotpoint
VirtualRCvirtualRC
WayPointwaypoint

Private Attributes

std::function< void()> m_broadcastCallback
std::function< void(uint8_t
*, uint8_t) 
m_fromMobileCallback )
HardDriver_Manifoldm_hd
std::function< void(uint8_t
*, uint8_t) 
m_missionEventCallback )
std::function< void(uint8_t
*, uint8_t) 
m_missionStatusCallback )
pthread_t m_recvTid

Detailed Description

Definition at line 60 of file DJI_LIB_ROS_Adapter.h.


Constructor & Destructor Documentation

Definition at line 62 of file DJI_LIB_ROS_Adapter.h.

Definition at line 66 of file DJI_LIB_ROS_Adapter.h.


Member Function Documentation

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.

template<class T >
void DJI::onboardSDK::ROSAdapter::setBroadcastCallback ( void(T::*)()  func,
T *  obj 
) [inline]

Definition at line 151 of file DJI_LIB_ROS_Adapter.h.

template<class T >
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.

template<class T >
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.

template<class T >
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.


Member Data Documentation

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.

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.


The documentation for this class was generated from the following file:


dji_sdk
Author(s): Botao Hu
autogenerated on Thu Jun 6 2019 17:55:30