DriveWorks SDK Reference
5.16.65 Release
For Test and Development only

PointCloud.h
Go to the documentation of this file.
1
2//
3// Notice
4// ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES
5// NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
6// THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT,
7// MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
8//
9// NVIDIA CORPORATION & AFFILIATES assumes no responsibility for the consequences of use of such
10// information or for any infringement of patents or other rights of third parties that may
11// result from its use. No license is granted by implication or otherwise under any patent
12// or patent rights of NVIDIA CORPORATION & AFFILIATES. No third party distribution is allowed unless
13// expressly authorized by NVIDIA. Details are subject to change without notice.
14// This code supersedes and replaces all information previously supplied.
15// NVIDIA CORPORATION & AFFILIATES products are not authorized for use as critical
16// components in life support devices or systems without express written approval of
17// NVIDIA CORPORATION & AFFILIATES.
18//
19// SPDX-FileCopyrightText: Copyright (c) 2018-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
20// SPDX-License-Identifier: LicenseRef-NvidiaProprietary
21//
22// NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
23// property and proprietary rights in and to this material, related
24// documentation and any modifications thereto. Any use, reproduction,
25// disclosure or distribution of this material and related documentation
26// without an express license agreement from NVIDIA CORPORATION or
27// its affiliates is strictly prohibited.
28//
30
46#ifndef DW_POINTCLOUDPROCESSING_POINTCLOUD_POINTCLOUD_H_
47#define DW_POINTCLOUDPROCESSING_POINTCLOUD_POINTCLOUD_H_
48
49#include <dw/core/base/Types.h>
50
51#ifdef __cplusplus
52extern "C" {
53#endif
54
59typedef enum {
63
67typedef struct
68{
69 uint32_t layerIdx;
70 uint32_t size;
71 const void* points;
72
74
78typedef struct
79{
80 uint32_t elementSize;
81 uint32_t channelIdx;
82 uint32_t size;
83
87 void* data;
88
90
91#define DW_POINT_CLOUD_MAX_LAYERS 16U
92#define DW_POINT_CLOUD_MAX_AUX_CHANNELS 16U
93
97typedef struct
98{
102
104
105 void* points;
106 uint32_t capacity;
107 uint32_t size;
108
111
113 uint32_t numLayers;
115
116 uint32_t numAuxChannels;
118
120
139
149
167 dwPointCloudFormat const format,
168 dwMemoryType const memoryType,
169 uint32_t const maxPointsPerLayer,
170 uint32_t const numRequestedLayers,
171 uint32_t const* auxChannelsElemSize,
172 uint32_t const numRequestedAuxChannels);
173
186
197
198#ifdef __cplusplus
199}
200#endif
202#endif // DW_POINTCLOUDPROCESSING_POINTCLOUD_POINTCLOUD_H_
dwStatus
Status definition.
Definition: ErrorDefs.h:44
NVIDIA DriveWorks API: Core Types
int64_t dwTime_t
Specifies a timestamp unit, in microseconds.
Definition: BasicTypes.h:65
#define DW_API_PUBLIC
Definition: Exports.h:56
dwMemoryType
Memory type definitions.
Definition: TypesExtra.h:148
uint32_t channelIdx
Channel index the aux data refers to.
Definition: PointCloud.h:81
const void * points
Pointer to the start of the data for this layer.
Definition: PointCloud.h:71
bool organized
Flag indicating the data is ordered on the 3D grid.
Definition: PointCloud.h:101
dwTime_t hostStartTimestamp
Point cloud start timestamp.
Definition: PointCloud.h:109
void * data
Pointer to the start of the data for this channel.
Definition: PointCloud.h:87
uint32_t size
Number of points in the cloud including all layers.
Definition: PointCloud.h:107
uint32_t size
Number of elements in a channel.
Definition: PointCloud.h:82
uint32_t numAuxChannels
Number of aux channels in a point cloud.
Definition: PointCloud.h:116
uint32_t capacity
numLayers * maxPointsPerLayer
Definition: PointCloud.h:106
dwTime_t hostEndTimestamp
Point cloud end timestamp.
Definition: PointCloud.h:110
dwPointCloudFormat format
Format of a buffer.
Definition: PointCloud.h:100
uint32_t elementSize
Size in bytes of an element in the aux buffer.
Definition: PointCloud.h:80
void * points
Pointer to memory buffer of all points. Not compact, but contiguous with invalid points in between la...
Definition: PointCloud.h:105
uint32_t layerIdx
Index of a layer within a point cloud.
Definition: PointCloud.h:69
uint32_t maxPointsPerLayer
Maximum number of points in layer (use even number of points to benefit from aligned memory access pe...
Definition: PointCloud.h:112
dwMemoryType type
Defines type of a memory GPU or CPU.
Definition: PointCloud.h:99
uint32_t size
Number of points in a layer (.
Definition: PointCloud.h:70
uint32_t numLayers
Number of layers in a point cloud.
Definition: PointCloud.h:113
dwTime_t timestamp
Time when the point cloud capturing is finished.
Definition: PointCloud.h:103
DW_API_PUBLIC dwStatus dwPointCloud_create(dwPointCloud *pointCloud, dwPointCloudFormat const format, dwMemoryType const memoryType, uint32_t const maxPointsPerLayer, uint32_t const numRequestedLayers, uint32_t const *auxChannelsElemSize, uint32_t const numRequestedAuxChannels)
Create point cloud with layers and aux channel information.
DW_API_PUBLIC dwStatus dwPointCloud_destroy(dwPointCloud *pointCloud)
Destroy point cloud buffers.
#define DW_POINT_CLOUD_MAX_AUX_CHANNELS
Definition: PointCloud.h:92
#define DW_POINT_CLOUD_MAX_LAYERS
Definition: PointCloud.h:91
DW_API_PUBLIC dwStatus dwPointCloud_createBuffer(dwPointCloud *buffer)
Allocates memory for point cloud data structure.
DW_API_PUBLIC dwStatus dwPointCloud_getPointStride(uint32_t *size)
Get the size of the point cloud data type.
DW_API_PUBLIC dwStatus dwPointCloud_destroyBuffer(dwPointCloud *buffer)
Destroys allocated memory for point cloud data structure.
dwPointCloudFormat
Defines point format.
Definition: PointCloud.h:59
@ DW_POINTCLOUD_FORMAT_XYZI
Cartesian 3D coordinate + intensity.
Definition: PointCloud.h:60
@ DW_POINTCLOUD_FORMAT_RTHI
Polar 3D coordinate + intensity.
Definition: PointCloud.h:61
Defines point cloud data structure.
Definition: PointCloud.h:98
Struct holding information about aux channel.
Definition: PointCloud.h:79
Struct holding information about a single point cloud layer.
Definition: PointCloud.h:68