Defines point cloud processing datatypes and memory handling functions.
- Note
- SW Release Applicability: These APIs are available in both NVIDIA DriveWorks and NVIDIA DRIVE Software releases.
◆ dwPointCloud
Data Fields |
uint32_t |
capacity |
Maximum number of points acceptable by point cloud. |
dwPointCloudFormat |
format |
Format of a buffer. |
bool |
organized |
Flag indicating the data is ordered on the 3D grid. |
void * |
points |
Pointer to memory buffer. |
uint32_t |
size |
Number of points in the cloud. |
dwTime_t |
timestamp |
Time when the point cloud capturing is finished. |
dwMemoryType |
type |
Defines type of a memory GPU or CPU. |
◆ dwPointCloudFormat
Defines point format.
Enumerator |
---|
DW_POINTCLOUD_FORMAT_XYZI | Cartesian 3D coordinate + intensity.
|
DW_POINTCLOUD_FORMAT_RTHI | Polar 3D coordinate + internsity.
|
Definition at line 62 of file PointCloud.h.
◆ dwPointCloud_createBuffer()
Allocates memory for point cloud data structure.
- Parameters
-
- Returns
- DW_SUCCESS
DW_INVALID_ARGUMENT
- Note
- User must specify the followings for the argument
buffer
:
- The member variable
capacity
to indicate the memory allocation size
- The member variable
type
to indicate the memory type, either host memory or device memory
-
Upon successful return, this API will set
size
to zero to indicate it contains no element in the memory By default this API will set organized
to false
◆ dwPointCloud_destroyBuffer()
Destroys allocated memory for point cloud data structure.
- Parameters
-
- Returns
- DW_SUCCESS
DW_INVALID_ARGUMENT