NVIDIA DriveWorks API: World Module
Description: This file defines the world module data structures and APIs.
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... | |
| 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 | |
| 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
| dst | The destination object array |
| src | The source object history array |
| 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
| out | The object array |
| in | The object history array |