DriveWorks SDK Reference
3.5.78 Release
For Test and Development only

ObjectHistoryArray.h File Reference

Detailed Description

NVIDIA DriveWorks API: World Module

Description: This file defines the world module data structures and APIs.

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

Definition in file ObjectHistoryArray.h.

Go to the source code of this file.

Data Structures

struct  dwObjectHistoryArray
 Defines a homogeneous array of objects and their history. More...
 

Functions

DW_API_PUBLIC dwStatus dwObjectHistoryArray_copy (dwObjectHistoryArray *dst, const dwObjectHistoryArray *src)
 copy a history array to another history array. More...
 
DW_API_PUBLIC dwStatus dwObjectHistoryArray_create (dwObjectHistoryArray *array, uint32_t maxObjectCount, uint32_t maxHistoryCount, dwObjectType objectType)
 
DW_API_PUBLIC dwStatus dwObjectHistoryArray_destroy (dwObjectHistoryArray *array)
 
DW_API_PUBLIC dwStatus dwObjectHistoryArray_getObjectArray (dwObjectArray *out, const dwObjectHistoryArray *in)
 get the object array from object history array using current timestamp More...
 

Data Structure Documentation

◆ dwObjectHistoryArray

struct dwObjectHistoryArray
Data Fields
uint32_t currentTimeIdx
uint32_t * historySpan
uint32_t maxHistoryCount
uint32_t maxObjectCount
uint32_t objectCount
void * objects
dwObjectType objectType
dwTime_t * timestamps

Function Documentation

◆ dwObjectHistoryArray_copy()

DW_API_PUBLIC dwStatus dwObjectHistoryArray_copy ( dwObjectHistoryArray dst,
const dwObjectHistoryArray src 
)

copy a history array to another history array.

Both have to be preallocated and match sizes

Parameters
dstThe destination object array
srcThe source object history array
Returns
DW_SUCCESS DW_INVALID_ARGUMENT

◆ dwObjectHistoryArray_create()

DW_API_PUBLIC dwStatus dwObjectHistoryArray_create ( dwObjectHistoryArray array,
uint32_t  maxObjectCount,
uint32_t  maxHistoryCount,
dwObjectType  objectType 
)

◆ dwObjectHistoryArray_destroy()

DW_API_PUBLIC dwStatus dwObjectHistoryArray_destroy ( dwObjectHistoryArray array)

◆ dwObjectHistoryArray_getObjectArray()

DW_API_PUBLIC dwStatus dwObjectHistoryArray_getObjectArray ( dwObjectArray out,
const dwObjectHistoryArray in 
)

get the object array from object history array using current timestamp

Parameters
outThe object array
inThe object history array
Returns
DW_SUCCESS DW_INVALID_ARGUMENT