NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
Point Cloud Plane Extractor

Detailed Description

Defines module to extract one 3D plane nearby the sensor.

Data Structures

struct  dwPlaneExtractorBoxFilterParams
 Defines parameters for point cloud box filter. More...
 
struct  dwPointCloudPlaneExtractorParams
 Defines plane extraction parameter. More...
 
struct  dwPointCloudExtractedPlane
 Defines extracted 3D plane. More...
 

Typedefs

typedef struct dwPointCloudPlaneExtractorObject * dwPointCloudPlaneExtractorHandle_t
 

Functions

DW_API_PUBLIC dwStatus dwPCPlaneExtractor_initialize (dwPointCloudPlaneExtractorHandle_t *const obj, dwPointCloudPlaneExtractorParams const *const params, dwContextHandle_t const ctx)
 Initializes point cloud plane extractor. More...
 
DW_API_PUBLIC dwStatus dwPCPlaneExtractor_reset (dwPointCloudPlaneExtractorHandle_t const obj)
 Resets point cloud plane extractor. More...
 
DW_API_PUBLIC dwStatus dwPCPlaneExtractor_release (dwPointCloudPlaneExtractorHandle_t const obj)
 Releases point cloud plane extractor. More...
 
DW_API_PUBLIC dwStatus dwPCPlaneExtractor_getDefaultParameters (dwPointCloudPlaneExtractorParams *const params)
 Gets default point cloud plane extractor parameters. More...
 
DW_API_PUBLIC dwStatus dwPCPlaneExtractor_bindInput (dwPointCloud const *const pointCloud, dwPointCloudPlaneExtractorHandle_t const obj)
 Binds point cloud buffer to plane extractor. More...
 
DW_API_PUBLIC dwStatus dwPCPlaneExtractor_getCUDAStream (cudaStream_t *const stream, dwPointCloudPlaneExtractorHandle_t const obj)
 Gets CUDA stream of point cloud plane extractor. More...
 
DW_API_PUBLIC dwStatus dwPCPlaneExtractor_setCUDAStream (cudaStream_t const stream, dwPointCloudPlaneExtractorHandle_t const obj)
 Sets CUDA stream of point cloud plane extractor. More...
 
DW_API_PUBLIC dwStatus dwPCPlaneExtractor_bindOutput (dwPointCloud *const inliers, dwPointCloud *const outliers, dwPointCloudExtractedPlane *const outputPlane, dwPointCloudPlaneExtractorHandle_t const obj)
 Binds output buffers to point cloud plane extractor. More...
 
DW_API_PUBLIC dwStatus dwPCPlaneExtractor_process (dwPointCloudPlaneExtractorHandle_t const obj)
 Extracts 3D ground plane and stores the results to output buffer. More...
 

Typedef Documentation

◆ dwPointCloudPlaneExtractorHandle_t

typedef struct dwPointCloudPlaneExtractorObject* dwPointCloudPlaneExtractorHandle_t

Definition at line 40 of file PointCloudPlaneExtractor.h.

Function Documentation

◆ dwPCPlaneExtractor_bindInput()

DW_API_PUBLIC dwStatus dwPCPlaneExtractor_bindInput ( dwPointCloud const *const  pointCloud,
dwPointCloudPlaneExtractorHandle_t const  obj 
)

Binds point cloud buffer to plane extractor.

Parameters
[in]pointCloudPointer to point cloud buffer
[in]objHandle to point cloud plane extractor
Returns
DW_SUCCESS
DW_INVALID_ARGUMENT
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwPCPlaneExtractor_bindOutput()

DW_API_PUBLIC dwStatus dwPCPlaneExtractor_bindOutput ( dwPointCloud *const  inliers,
dwPointCloud *const  outliers,
dwPointCloudExtractedPlane *const  outputPlane,
dwPointCloudPlaneExtractorHandle_t const  obj 
)

Binds output buffers to point cloud plane extractor.

Parameters
[out]inliersPointer to output buffer stores inlier points (optional, can be null)
[out]outliersPointer to output buffer stores outlier points (optional, can be null)
[out]outputPlanePointer to extracted 3D plane
[in]objHandle to point cloud plane extractor
Returns
DW_SUCCESS
DW_INVALID_ARGUMENT
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwPCPlaneExtractor_getCUDAStream()

DW_API_PUBLIC dwStatus dwPCPlaneExtractor_getCUDAStream ( cudaStream_t *const  stream,
dwPointCloudPlaneExtractorHandle_t const  obj 
)

Gets CUDA stream of point cloud plane extractor.

Parameters
[out]streamPointer to CUDA stream handle
[in]objHandle to point cloud plane extractor
Returns
DW_SUCCESS
DW_INVALID_ARGUMENT
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwPCPlaneExtractor_getDefaultParameters()

DW_API_PUBLIC dwStatus dwPCPlaneExtractor_getDefaultParameters ( dwPointCloudPlaneExtractorParams *const  params)

Gets default point cloud plane extractor parameters.

Parameters
[in]paramsPointer to point cloud plane extractor parameter
Returns
DW_SUCCESS
DW_INVALID_ARGUMENT
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwPCPlaneExtractor_initialize()

DW_API_PUBLIC dwStatus dwPCPlaneExtractor_initialize ( dwPointCloudPlaneExtractorHandle_t *const  obj,
dwPointCloudPlaneExtractorParams const *const  params,
dwContextHandle_t const  ctx 
)

Initializes point cloud plane extractor.

Parameters
[out]objHandle to point cloud plane extractor
[in]paramsPointer to point could plane extractor parameter
[in]ctxHandle to the context
Returns
DW_SUCCESS
DW_INVALID_ARGUMENT
API Group
  • Init: Yes
  • Runtime: No
  • De-Init: No

◆ dwPCPlaneExtractor_process()

DW_API_PUBLIC dwStatus dwPCPlaneExtractor_process ( dwPointCloudPlaneExtractorHandle_t const  obj)

Extracts 3D ground plane and stores the results to output buffer.

Parameters
[in]objHandle to point cloud plane extractor
Returns
DW_SUCCESS
DW_INVALID_ARGUMENT - input/output buffer memory type does not match with the variable cudaPipelineEnabled in dwPointCloudPlaneExtractorParams
DW_CALL_NOT_ALLOWED - user did not bind input buffer and output plane
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwPCPlaneExtractor_release()

DW_API_PUBLIC dwStatus dwPCPlaneExtractor_release ( dwPointCloudPlaneExtractorHandle_t const  obj)

Releases point cloud plane extractor.

Parameters
[in]objHandle to point cloud plane extractor
Returns
DW_SUCCESS
DW_INVALID_ARGUMENT
API Group
  • Init: Yes
  • Runtime: No
  • De-Init: Yes

◆ dwPCPlaneExtractor_reset()

DW_API_PUBLIC dwStatus dwPCPlaneExtractor_reset ( dwPointCloudPlaneExtractorHandle_t const  obj)

Resets point cloud plane extractor.

Parameters
[in]objHandle to point cloud plane extractor
Returns
DW_SUCCESS
DW_INVALID_ARGUMENT
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwPCPlaneExtractor_setCUDAStream()

DW_API_PUBLIC dwStatus dwPCPlaneExtractor_setCUDAStream ( cudaStream_t const  stream,
dwPointCloudPlaneExtractorHandle_t const  obj 
)

Sets CUDA stream of point cloud plane extractor.

Parameters
[in]streamHandle to CUDA stream
[in]objHandle to point cloud plane extractor
Returns
DW_SUCCESS
DW_INVALID_ARGUMENT
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes