class IDJILidarLiveViewDataProcessor
interface IDJILidarLiveViewDataProcessor
Package: dji.sdk.lidar.processor
Description:
This processor is provided by DJI. We receive the PointCloudLiveViewData
through startReadPointCloudLiveViewData
interface, and then use IDJILidarLiveViewDataProcessor
to optimize the algorithm so that the point cloud data can be displayed efficiently through PointCloudView
. If you want to display with your own algorithm. You can use PointCloudLiveViewData
to draw the point cloud live view data by yourself.
Class Members:
method bindView
void bindView (PointCloudView view)
Package: dji.sdk.lidar.processor
Description:
bind the view which is provided by DJI.
PointCloudView view The view to draw the point cloud live view data. Provided by DJI.
method addPointCloudLiveViewData
void addPointCloudLiveViewData (PointCloudLiveViewData[] data, int length)
Package: dji.sdk.lidar.processor
Description:
Add point cloud live view data to the processor.
method setPointCloudLiveViewDisplayMode
void setPointCloudLiveViewDisplayMode (PointCloudDisplayMode mode)
Package: dji.sdk.lidar.processor
Description:
Sets the point cloud live view display mode. We support two display modes:FPV
and OVERALL
.
method setPointCloudLiveViewColorMode
void setPointCloudLiveViewColorMode (PointCloudColorMode colorMode)
Package: dji.sdk.lidar.processor
Description:
Sets the point cloud live view color mode.
method freshPointCloudLiveViewDataProcessedBuffers
void freshPointCloudLiveViewDataProcessedBuffers ()
Package: dji.sdk.lidar.processor
Description:
Refresh the point cloud live view data. Only needed in OVERALL
mode. Due to the large amount of data in this mode, we will process the live view data every 10 seconds. If you want to display the point cloud live view data in more real time, you can call this interface to update the buffer in real time.
method clearPointCloudLiveViewDataProcessedBuffers
void clearPointCloudLiveViewDataProcessedBuffers ()
Package: dji.sdk.lidar.processor
Description:
Clear the point cloud live view data.
method destroy
Package: dji.sdk.lidar.processor
Description:
Destory the processor. Called when exiting the view.
enum PointCloudDisplayMode
enum PointCloudDisplayMode
Package: dji.sdk.lidar.processor
Description:
Enums represent the point cloud live view display mode of lidar.
Enum Members:
FPVDisplay the point cloud live view data by FPV mode. Only the point cloud live view data in the current FPV screen will be displayed. OVERALLDisplay the point cloud live view data by overall mode. All point cloud live view data added to IDJILidarLiveViewDataProcessor
through addPointCloudLiveViewData
will be displayed.
Class Members:
enum PointCloudColorMode
Package: dji.lidar_map.views
Description:
Enums represent the point cloud live view color mode of lidar.
Enum Members:
INTENSITYUsing intensity data to coloring the point cloud live view data. HEIGHTUsing height(getZ
) data to coloring the point cloud live view data. It will help you measure objects with a large height difference. HYBIRDHybird the intensity and distance(getX
, getY
) data to coloring the point cloud live view data. It will help you to measure objects better when flying horizontally. VISIBLE_LIGHTUsing visible light(getRed
, getGreen
, getBlue
) data to coloring the point cloud live view data. If you want to use this mode, please set DJILidarPointCloudVisibleLightPixelMode
on.
Class Members: