DriveWorks SDK Reference
3.5.78 Release
For Test and Development only

WaitNet Interface

Detailed Description

Defines the WaitNet module.

Note
SW Release Applicability: These APIs are available in NVIDIA DRIVE Software releases.

Data Structures

struct  dwWaitNetParams
 

Typedefs

typedef struct dwWaitNetObject * dwWaitNetHandle_t
 Handle to a WaitNet object. More...
 

Enumerations

enum  dwWaitNetModel {
  DW_WAITNET_MODEL_BBOX_INTERSECTION_TL_RS_V1 = 0,
  DW_WAITNET_MODEL_MULTITASK_WAITNET_V0 = 1,
  DW_WAITNET_NUM_MODELS = 2,
  DW_WAITNET_MODEL_CUSTOM = -1
}
 WaitNet network models to be loaded by WaitNet module. More...
 

Functions

DW_API_PUBLIC dwStatus dwWaitNet_getAvailableClasses (const dwWaitConditionObjectClass **intersectionClasses, const dwWaitConditionObjectClass **trafficControlClasses, uint32_t *numIntersectionClasses, uint32_t *numTrafficControlClasses, dwWaitNetHandle_t obj)
 Returns the object classes that WaitNet can detect. More...
 
DW_API_PUBLIC dwStatus dwWaitNet_getInputBlobsize (dwBlobSize *inputBlobsize, dwWaitNetHandle_t obj)
 Returns input blob size that WaitNet expects. More...
 
DW_API_PUBLIC dwStatus dwWaitNet_getOutputBlobsize (dwBlobSize *outputBlobsize, uint32_t blobIdx, dwWaitNetHandle_t obj)
 Returns output blob size that WaitNet expects. More...
 
DW_API_PUBLIC dwStatus dwWaitNet_initDefaultParams (dwWaitNetParams *params, dwContextHandle_t ctx)
 Initializes WaitNet parameters with default values. More...
 
DW_API_PUBLIC dwStatus dwWaitNet_initialize (dwWaitNetHandle_t *waitnetHandle, const dwWaitNetParams *waitnetParams, dwContextHandle_t ctx)
 Initializes WaitNet module. More...
 
DW_API_PUBLIC dwStatus dwWaitNet_release (dwWaitNetHandle_t obj)
 Releases the WaitNet module. More...
 
DW_API_PUBLIC dwStatus dwWaitNet_reset (dwWaitNetHandle_t obj)
 Resets WaitNet. More...
 

Data Structure Documentation

◆ dwWaitNetParams

struct dwWaitNetParams
Data Fields
uint32_t maxClustersPerClass Maximum number of clusters per class.
uint32_t maxProposalsPerClass Maximum number of RAW detections per class directly obtained from DNN.
dwWaitNetModel networkModel Waitnet network model. Default is DW_WAITNET_MODEL_DETECTION.
dwPrecision networkPrecision Waitnet network precision. Default is DW_PRECISION_FP32.

Typedef Documentation

◆ dwWaitNetHandle_t

typedef struct dwWaitNetObject* dwWaitNetHandle_t

Handle to a WaitNet object.

Definition at line 63 of file WaitNet.h.

Enumeration Type Documentation

◆ dwWaitNetModel

WaitNet network models to be loaded by WaitNet module.

Enumerator
DW_WAITNET_MODEL_BBOX_INTERSECTION_TL_RS_V1 

WaitNet models model that detects multiple intersections plus traffic lights (TL) and road signs (RS) per frame.

DW_WAITNET_MODEL_MULTITASK_WAITNET_V0 

model that detects multiple intersections, waypoints, traffic lights (TL) and road signs (RS) per frame

DW_WAITNET_NUM_MODELS 

model count

DW_WAITNET_MODEL_CUSTOM 

Loads custom SignNet model if available.

Network name must be provided in networkCustomData field in dwSignNetParams

Definition at line 66 of file WaitNet.h.

Function Documentation

◆ dwWaitNet_getAvailableClasses()

DW_API_PUBLIC dwStatus dwWaitNet_getAvailableClasses ( const dwWaitConditionObjectClass **  intersectionClasses,
const dwWaitConditionObjectClass **  trafficControlClasses,
uint32_t *  numIntersectionClasses,
uint32_t *  numTrafficControlClasses,
dwWaitNetHandle_t  obj 
)

Returns the object classes that WaitNet can detect.

Parameters
[out]intersectionClassesA pointer to list of intersection classes that WaitNet can detect.
[out]trafficControlClassesA pointer to list of traffic control classes that WaitNet can detect.
[out]numIntersectionClassesNumber of intersection classes.
[out]numTrafficControlClassesNumber of traffic control classes.
[in]objSpecifies the WaitNet handle.
Returns
DW_SUCCESS
DW_INVALID_HANDLE - If the given handle is invalid,i.e. null or of wrong type
DW_BAD_CAST
DW_INVALID_ARGUMENT

◆ dwWaitNet_getInputBlobsize()

DW_API_PUBLIC dwStatus dwWaitNet_getInputBlobsize ( dwBlobSize inputBlobsize,
dwWaitNetHandle_t  obj 
)

Returns input blob size that WaitNet expects.

Parameters
[out]inputBlobsizeInput blob size.
[in]objSpecifies the WaitNet handle.
Returns
DW_SUCCESS operation completed successfully DW_INVALID_ARGUMENT nullptr or null handle passed

◆ dwWaitNet_getOutputBlobsize()

DW_API_PUBLIC dwStatus dwWaitNet_getOutputBlobsize ( dwBlobSize outputBlobsize,
uint32_t  blobIdx,
dwWaitNetHandle_t  obj 
)

Returns output blob size that WaitNet expects.

Parameters
[out]outputBlobsizeOutput blob size.
[in]blobIdxIndex of the output blob to return
[in]objSpecifies the WaitNet handle.
Returns
DW_SUCCESS operation completed successfully DW_INVALID_ARGUMENT nullptr or null handle passed

◆ dwWaitNet_initDefaultParams()

DW_API_PUBLIC dwStatus dwWaitNet_initDefaultParams ( dwWaitNetParams params,
dwContextHandle_t  ctx 
)

Initializes WaitNet parameters with default values.

Parameters
[out]paramsWaitNet parameters.
[in]ctxSpecifies the handle to the context.
Returns
DW_SUCCESS parameters initialized DW_INVALID_ARGUMENT if nullptr passed

◆ dwWaitNet_initialize()

DW_API_PUBLIC dwStatus dwWaitNet_initialize ( dwWaitNetHandle_t waitnetHandle,
const dwWaitNetParams waitnetParams,
dwContextHandle_t  ctx 
)

Initializes WaitNet module.

Parameters
[out]waitnetHandleA pointer to WaitNet handle to be initialized.
[in]waitnetParamsWaitnet parameters
[in]ctxSpecifies the handle to the context.
Returns
DW_SUCCESS initialization completed successfully DW_INVALID_ARGUMENT one of the parameters is invalid (nullptr or null handle)

◆ dwWaitNet_release()

DW_API_PUBLIC dwStatus dwWaitNet_release ( dwWaitNetHandle_t  obj)

Releases the WaitNet module.

Parameters
[in]objWaitNet handle to release.
Returns
DW_SUCCESS operation completed successfully DW_INVALID_ARGUMENT nullptr passed
Note
This method renders the handle unusable.

◆ dwWaitNet_reset()

DW_API_PUBLIC dwStatus dwWaitNet_reset ( dwWaitNetHandle_t  obj)

Resets WaitNet.

Parameters
[in]objWaitNet handle to reset.
Returns
DW_SUCCESS operation completed successfully DW_INVALID_ARGUMENT null handle passed