DriveWorks SDK Reference

| 0.6.67 Release

RadarTrackHistory.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) 2017 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 
31 #ifndef DW_OBJECT_RADAR_TRACK_HISTORY_H__
32 #define DW_OBJECT_RADAR_TRACK_HISTORY_H__
33 
34 #include <dw/core/Context.h>
35 #include <dw/sensors/radar/Radar.h>
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
41 typedef struct dwRadarTrackHistoryObject *dwRadarTrackHistoryHandle_t;
42 
74 typedef struct dwRadarTrackHistory {
75  uint32_t maxObjectCount;
76  uint32_t historyCapacity;
77  uint32_t objectCount;
78  uint32_t currentTimeIdx;
79  uint32_t *ages;
83 
96 dwStatus dwRadarTrackHistory_initialize(dwRadarTrackHistoryHandle_t *obj,
97  uint32_t maxObjectCount, uint32_t historyCapacity,
98  dwContextHandle_t ctx);
99 
112 dwStatus dwRadarTrackHistory_release(dwRadarTrackHistoryHandle_t *obj);
113 
124 dwStatus dwRadarTrackHistory_getRadarTrackHistory(dwRadarTrackHistory* radarTrackHistory, dwRadarTrackHistoryHandle_t obj);
125 
142 dwStatus dwRadarTrackHistory_addTracks(const dwRadarTrack radarTracks[], uint32_t radarTracksCount, dwTime_t timestamp,
143  dwRadarTrackHistoryHandle_t obj);
144 
145 
146 #ifdef __cplusplus
147 }
148 #endif
149 
150 #endif
Radar track history table.
NVIDIA DriveWorks API: Radar
uint32_t currentTimeIdx
actual number of tracked objects
uint64_t dwTime_t
Specifies a timestamp unit, in microseconds.
Definition: Types.h:89
dwRadarTrack * data
the timestamp of each frame in the history, its size is historyCapacity
NVIDIA DriveWorks API: Core Methods
uint32_t objectCount
capacity of history circular buffer
dwStatus
Status definition.
Definition: Status.h:167
dwTime_t * timestamps
the age of each tracked object, its size is maxObjectCount
DW_API_PUBLIC dwStatus dwRadarTrackHistory_initialize(dwRadarTrackHistoryHandle_t *obj, uint32_t maxObjectCount, uint32_t historyCapacity, dwContextHandle_t ctx)
Creates and initialize a radar track history.
DW_API_PUBLIC dwStatus dwRadarTrackHistory_addTracks(const dwRadarTrack radarTracks[], uint32_t radarTracksCount, dwTime_t timestamp, dwRadarTrackHistoryHandle_t obj)
Add list of radar tracks into radar track history.
uint32_t * ages
the column index of current time in the table
struct dwRadarTrackHistoryObject * dwRadarTrackHistoryHandle_t
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:78
DW_API_PUBLIC dwStatus dwRadarTrackHistory_release(dwRadarTrackHistoryHandle_t *obj)
Releases the radar track history.
DW_API_PUBLIC dwStatus dwRadarTrackHistory_getRadarTrackHistory(dwRadarTrackHistory *radarTrackHistory, dwRadarTrackHistoryHandle_t obj)
Get radar track history.
uint32_t historyCapacity
the maximum number of tracked objects
#define DW_API_PUBLIC
Definition: Exports.h:76