dji_advanced_sensing.hpp
Go to the documentation of this file.
120 void subscribeStereoImages(const ImageSelection *select, VehicleCallBack callback = 0, UserData userData = 0);
128 void subscribeFrontStereoVGA(const uint8_t freq, VehicleCallBack callback = 0, UserData userData = 0);
275 LiveView::LiveViewErrCode startH264Stream(LiveView::LiveViewCameraPosition pos, H264Callback cb, void *userData);
301 Perception::PerceptionErrCode subscribePerceptionImage(Perception::DirectionType direction, Perception::PerceptionImageCB cb, void* userData);
void * UserData
This is used as the datatype for all data arguments in callbacks.
Definition: dji_type.hpp:75
void stopMainCameraStream()
Stop the Main Camera RGB Stream.
void setStereoCamParamsObserver(Perception::PerceptionCamParamCB cb, void *userData)
Set the callback to catch the perception camera parameters. (Only for M300 series)
Perception::PerceptionErrCode triggerStereoCamParamsPushing()
Trigger the perception parameters to be passed to the callback which is registered by DJI::OSDK::Perc...
static void stereoCallback(Vehicle *vehiclePtr, RecvContainer recvFrame, UserData userData)
A default callback function for QVGA stereo images.
Perception::PerceptionErrCode unsubscribePerceptionImage(Perception::DirectionType direction)
Unsubscribe the perception camera image stream (Only for M300 series)
LiveView::LiveViewErrCode startH264Stream(LiveView::LiveViewCameraPosition pos, H264Callback cb, void *userData)
Start the FPV or Camera H264 Stream.
void unsubscribeVGAImages()
unsubscribe to VGA (480x640) stereo images
void setAcmDevicePath(const char *acm_path)
Set the ACM device path, mainly for M210V2.
void subscribeFrontStereoDisparity(VehicleCallBack callback=0, UserData userData=0)
subscribe to QVGA (240x320) stereo depth map at 10 fps
void(* VehicleCallBack)(Vehicle *vehicle, RecvContainer recvFrame, UserData userData)
Function prototype for all callback functions used in the OSDK.
Definition: dji_vehicle_callback.hpp:76
Perception::PerceptionErrCode subscribePerceptionImage(Perception::DirectionType direction, Perception::PerceptionImageCB cb, void *userData)
Subscribe the perception camera image stream (Only for M300 series)
Definition: dji_advanced_sensing.hpp:69
bool getFPVCameraImage(CameraRGBImage ©OfImage)
Get a copy of the new image from the FPV camera.
void subscribeFrontStereoVGA(const uint8_t freq, VehicleCallBack callback=0, UserData userData=0)
subscribe to VGA (480x640) front stereo images at 10 or 20 fps
bool newFPVCameraImageIsReady()
Check if a new image from the FPV camera is received.
ReceivedImgDesc
This struct is used to pair img data with camera.
Definition: dji_advanced_sensing.hpp:89
struct DJI::OSDK::AdvancedSensing::ImageSelection ImageSelection
This struct provides an interface for user to determine what images to subscribe to.
Camera dji perception API of OSDK.
The CallBackHandler struct allows users to encapsulate callbacks and data in one struct.
Definition: dji_vehicle_callback.hpp:83
static void VGACallback(Vehicle *vehiclePtr, RecvContainer recvFrame, UserData userData)
A default callback function for VGA stereo images.
This struct provides an interface for user to determine what images to subscribe to.
Definition: dji_advanced_sensing.hpp:76
void unsubscribeStereoImages()
unsubscribe to QVGA (240x320) stereo depth map or images
Camera liveview API of OSDK.
bool startMainCameraStream(CameraImageCallback cb=NULL, void *cbParam=NULL)
Start the Main Camera Stream.
bool newMainCameraImageReady()
Check if a new image from the main camera is received.
bool startFPVCameraStream(CameraImageCallback cb=NULL, void *cbParam=NULL)
Start the FPV Camera Stream.
Data type and Data Structure definitions for use throughout DJI OSDK.
bool getMainCameraImage(CameraRGBImage ©OfImage)
Get a copy of the new image from the main camera.
void subscribeStereoImages(const ImageSelection *select, VehicleCallBack callback=0, UserData userData=0)
subscribe to 240p stereo images at 20 fps
Definition: dji_ack.cpp:38
Drone/SDK Version definition for DJI onboardSDK library.
LiveView::LiveViewErrCode stopH264Stream(LiveView::LiveViewCameraPosition pos)
Stop the FPV or Camera H264 Stream.
LiveView::LiveViewErrCode changeH264Source(LiveView::LiveViewCameraPosition pos, LiveView::LiveViewCameraSource source)
Change the camera stream source from one payload device. (Beta API)