DriveWorks SDK Reference
3.0.4260 Release
For Test and Development only

PathNet.h
Go to the documentation of this file.
1 // This code contains NVIDIA Confidential Information and is disclosed
3 // under the Mutual Non-Disclosure Agreement.
4 //
5 // Notice
6 // ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES
7 // NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
8 // THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT,
9 // MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
10 //
11 // NVIDIA Corporation assumes no responsibility for the consequences of use of such
12 // information or for any infringement of patents or other rights of third parties that may
13 // result from its use. No license is granted by implication or otherwise under any patent
14 // or patent rights of NVIDIA Corporation. No third party distribution is allowed unless
15 // expressly authorized by NVIDIA. Details are subject to change without notice.
16 // This code supersedes and replaces all information previously supplied.
17 // NVIDIA Corporation products are not authorized for use as critical
18 // components in life support devices or systems without express written approval of
19 // NVIDIA Corporation.
20 //
21 // Copyright (c) 2018 NVIDIA Corporation. All rights reserved.
22 //
23 // NVIDIA Corporation and its licensors retain all intellectual property and proprietary
24 // rights in and to this software and related documentation and any modifications thereto.
25 // Any use, reproduction, disclosure or distribution of this software and related
26 // documentation without an express license agreement from NVIDIA Corporation is
27 // strictly prohibited.
28 //
30 
48 #ifndef DW_PATHNET_H_
49 #define DW_PATHNET_H_
50 
51 #include <dw/core/Context.h>
52 #include <dw/dnn/DNN.h>
53 
54 #ifdef __cplusplus
55 extern "C" {
56 #endif
57 
59 
62 typedef struct dwPathNetObject* dwPathNetHandle_t;
63 
65 typedef enum {
77 
79 typedef enum {
84 
85 typedef enum {
92 
93 typedef struct dwPathNetParams
94 {
100  const void* networkCustomData;
102 
111 
123 dwStatus dwPathNet_initialize(dwPathNetHandle_t* pathNetHandle,
124  const dwPathNetParams* pathNetParams,
125  dwContextHandle_t ctx);
126 
135 dwStatus dwPathNet_reset(dwPathNetHandle_t obj);
136 
146 dwStatus dwPathNet_release(dwPathNetHandle_t obj);
147 
158 dwStatus dwPathNet_getInputBlobSize(dwBlobSize* inputBlobSize, dwPathNetHandle_t obj);
159 
171 dwStatus dwPathNet_getPathPositionLabel(const char** pathPositionLabel, uint32_t classIdx, dwPathNetHandle_t obj);
172 
183 dwStatus dwPathNet_getDNNMetaData(dwDNNMetaData* metaData, dwPathNetHandle_t obj);
184 
185 #ifdef __cplusplus
186 }
187 #endif
188 
189 #endif // DW_PATHNET_H_
PathNet model that performs best on front center 60 FOV camera.
Definition: PathNet.h:87
DW_API_PUBLIC dwStatus dwPathNet_getDNNMetaData(dwDNNMetaData *metaData, dwPathNetHandle_t obj)
Returns the DNN metadata.
dwPrecision
Definition: Types.h:140
DW_API_PUBLIC dwStatus dwPathNet_reset(dwPathNetHandle_t obj)
Resets PathNet.
NVIDIA DriveWorks API: Core Methods
Holds blob dimensions.
Definition: DNNTypes.h:60
DW_API_PUBLIC dwStatus dwPathNet_getInputBlobSize(dwBlobSize *inputBlobSize, dwPathNetHandle_t obj)
Returns input blob size that PathNet expects.
Right adjacent path.
Definition: PathNet.h:70
Invalid path type.
Definition: PathNet.h:66
Network name must be provided in networkCustomData field in dwPathNetParams.
Definition: PathNet.h:90
DW_API_PUBLIC dwStatus dwPathNet_initDefaultParams(dwPathNetParams *pathNetParams, dwContextHandle_t ctx)
Initializes PathNet parameters with default values.
NVIDIA DriveWorks API: DNN Methods
dwStatus
Status definition.
Definition: Status.h:166
struct dwPathNetObject * dwPathNetHandle_t
Handle to a PathNet object.
Definition: PathNet.h:62
Left fork on Ego path.
Definition: PathNet.h:71
dwPrecision networkPrecision
PathNet network weight precision. Default is DW_PRECISION_FP32.
Definition: PathNet.h:98
Left adjacent path.
Definition: PathNet.h:69
Right fork on Ego path.
Definition: PathNet.h:72
Undefined path attribute.
Definition: PathNet.h:80
Left fork on Left adjacent path.
Definition: PathNet.h:73
dwPathNetModel networkModel
PathNet network model. Default is DW_PATHNET_MODEL_FRONT_60_FOV.
Definition: PathNet.h:96
dwPathAttributeType
Category of path attributes.
Definition: PathNet.h:79
dwPathPositionType
Category of path positions.
Definition: PathNet.h:65
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:80
Specifies TensorRT model header.
Definition: DNN.h:69
Path position type enum count.
Definition: PathNet.h:75
const void * networkCustomData
Custom network data. Must be set if custom model is selected and available.
Definition: PathNet.h:100
Right fork on Right adjacent path.
Definition: PathNet.h:74
DW_API_PUBLIC dwStatus dwPathNet_getPathPositionLabel(const char **pathPositionLabel, uint32_t classIdx, dwPathNetHandle_t obj)
Returns the path position label for a given path position index.
dwPathNetModel
Definition: PathNet.h:85
Opposite traffic direction path attribute.
Definition: PathNet.h:81
DW_API_PUBLIC dwStatus dwPathNet_release(dwPathNetHandle_t obj)
Releases the PathNet module.
#define DW_API_PUBLIC
Definition: Exports.h:56
Path attribute type enum count.
Definition: PathNet.h:82
DW_API_PUBLIC dwStatus dwPathNet_initialize(dwPathNetHandle_t *pathNetHandle, const dwPathNetParams *pathNetParams, dwContextHandle_t ctx)
Initializes PathNet module.