NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
GlobalEgomotion.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2019-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6  * property and proprietary rights in and to this material, related
7  * documentation and any modifications thereto. Any use, reproduction,
8  * disclosure or distribution of this material and related documentation
9  * without an express license agreement from NVIDIA CORPORATION or
10  * its affiliates is strictly prohibited.
11  */
12 
30 #ifndef DW_EGOMOTION_GLOBAL_GLOBALEGOMOTION_H_
31 #define DW_EGOMOTION_GLOBAL_GLOBALEGOMOTION_H_
32 
36 #include <dw/sensors/gps/GPS.h>
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
43 typedef struct dwGlobalEgomotionObject* dwGlobalEgomotionHandle_t;
45 typedef struct dwGlobalEgomotionObject const* dwGlobalEgomotionConstHandle_t;
46 
50 typedef struct
51 {
54 
58 
62 
66 
70 
74 
76 
79 
83 typedef struct
84 {
88 
92 
95  size_t historySize;
96 
98 
123  dwConstRigHandle_t rigConfiguration,
124  const char* gpsSensorName);
125 
143  const dwGlobalEgomotionParameters* params,
144  dwContextHandle_t ctx);
145 
160 
177 
207 DW_DEPRECATED("Use dwGlobalEgomotion_addRelativeMotionState with relative egomotion state handle instead.")
210  const dwEgomotionUncertainty* egomotionUncertainty,
212 
238 
257 
276  dwGlobalEgomotionUncertainty* uncertainty,
278 
304  dwGlobalEgomotionUncertainty* uncertainty,
307 
324 
346  dwGlobalEgomotionUncertainty* uncertainty,
347  size_t index,
349 
382 
383 #ifdef __cplusplus
384 }
385 #endif
386 
387 #endif // DW_EGOMOTION_GLOBAL_GLOBALEGOMOTION_H_
dwGPSFrame
A GPS packet containing localization information.
Definition: GPSFrame.h:284
dwGlobalEgomotionGNSSCharacteristics::antennaPosition
dwVector3f antennaPosition
GNSS antenna position in the rig coordinate system [m].
Definition: GlobalEgomotion.h:53
dwGlobalEgomotion_initialize
DW_API_PUBLIC dwStatus dwGlobalEgomotion_initialize(dwGlobalEgomotionHandle_t *handle, const dwGlobalEgomotionParameters *params, dwContextHandle_t ctx)
Initializes the global egomotion module.
dwGlobalEgomotionParameters::historySize
size_t historySize
Size of history array, in number of state estimates it holds.
Definition: GlobalEgomotion.h:95
dwGlobalEgomotion_initParamsFromRig
DW_API_PUBLIC dwStatus dwGlobalEgomotion_initParamsFromRig(dwGlobalEgomotionParameters *params, dwConstRigHandle_t rigConfiguration, const char *gpsSensorName)
Initialize global egomotion parameters from a provided RigConfiguration.
dwConstRigHandle_t
struct dwRigObject const * dwConstRigHandle_t
Handle representing the const Rig interface.
Definition: Rig.h:57
dwGlobalEgomotionParameters::rotationalDrift
float32_t rotationalDrift
Expected magnitude of relative egomotion rotational drift [deg/s] A default value of 10 [deg/h] will ...
Definition: GlobalEgomotion.h:91
dwEgomotionUncertainty
Instantaneous state uncertainty estimates.
Definition: EgomotionTypes.h:523
dwGlobalEgomotion_getTimestamp
DW_API_PUBLIC dwStatus dwGlobalEgomotion_getTimestamp(dwTime_t *timestamp, dwGlobalEgomotionConstHandle_t handle)
Get timestamp of current filter estimate.
dwGlobalEgomotion_addGPSMeasurement
DW_API_PUBLIC dwStatus dwGlobalEgomotion_addGPSMeasurement(const dwGPSFrame *measurement, dwGlobalEgomotionHandle_t handle)
Adds GPS measurement to the global egomotion module.
timestamp
const WFDPipeline const WFDSource const WFDTransition const WFDRect *const const WFDuint64 timestamp
Definition: wfdext.h:114
dwGlobalEgomotionGNSSCharacteristics::verticalNoiseMeter
float32_t verticalNoiseMeter
Expected vertical position noise (CEP) of the GNSS sensor [m] A default value of 5 [m] will be assume...
Definition: GlobalEgomotion.h:61
dwGlobalEgomotionUncertainty
Holds global egomotion uncertainty estimate.
Definition: GlobalEgomotionTypes.h:43
dwConstEgomotionStateHandle_t
struct dwEgomotionStateObject const * dwConstEgomotionStateHandle_t
Const handle to an egomotion state object.
Definition: EgomotionState.h:72
dwGlobalEgomotion_computeEstimate
DW_API_PUBLIC dwStatus dwGlobalEgomotion_computeEstimate(dwGlobalEgomotionResult *result, dwGlobalEgomotionUncertainty *uncertainty, dwTime_t timestamp, dwGlobalEgomotionConstHandle_t handle)
Computes global state estimate at given timestamp, if necessary by linear interpolation between avail...
dwGlobalEgomotionGNSSCharacteristics::useHostTimeGPS
bool useHostTimeGPS
Use host timestamp at reception in global egomotion instead of GPS frame timestamp.
Definition: GlobalEgomotion.h:73
dwGlobalEgomotionResult
Holds global egomotion state estimate.
Definition: GlobalEgomotionTypes.h:103
dwGlobalEgomotion_getHistoryEntry
DW_API_PUBLIC dwStatus dwGlobalEgomotion_getHistoryEntry(dwGlobalEgomotionResult *result, dwGlobalEgomotionUncertainty *uncertainty, size_t index, dwGlobalEgomotionConstHandle_t handle)
Returns an entry from the history array.
GlobalEgomotionTypes.h
dwGlobalEgomotion_reset
DW_API_PUBLIC dwStatus dwGlobalEgomotion_reset(dwGlobalEgomotionHandle_t handle)
Resets the state estimate and all history of the global egomotion module.
dwGlobalEgomotionParameters::sensorCharacteristics
dwGlobalEgomotionGNSSCharacteristics sensorCharacteristics
Sensor characteristics.
Definition: GlobalEgomotion.h:87
dwGlobalEgomotion_addRelativeMotion
DW_API_PUBLIC dwStatus dwGlobalEgomotion_addRelativeMotion(const dwEgomotionResult *egomotionResult, const dwEgomotionUncertainty *egomotionUncertainty, dwGlobalEgomotionHandle_t handle)
dwTime_t
int64_t dwTime_t
Definition: core/base/BasicTypes.h:65
float32_t
float float32_t
Definition: core/base/BasicTypes.h:43
dwVector3f
Defines a three-element floating-point vector.
Definition: MatrixTypes.h:74
dwGNSSCharacteristics
dwGlobalEgomotionGNSSCharacteristics dwGNSSCharacteristics
Alias for dwGlobalEgomotionGNSSCharacteristics.
Definition: GlobalEgomotion.h:78
dwGlobalEgomotion_release
DW_API_PUBLIC dwStatus dwGlobalEgomotion_release(dwGlobalEgomotionHandle_t handle)
Releases the global egomotion module.
GPS.h
dwStatus
dwStatus
Status definition.
Definition: ErrorDefs.h:32
Egomotion.h
DW_DEPRECATED
#define DW_DEPRECATED(msg)
Definition: core/base/Exports.h:80
dwGlobalEgomotion_getEstimate
DW_API_PUBLIC dwStatus dwGlobalEgomotion_getEstimate(dwGlobalEgomotionResult *result, dwGlobalEgomotionUncertainty *uncertainty, dwGlobalEgomotionConstHandle_t handle)
Get current filter state estimate.
dwGlobalEgomotionGNSSCharacteristics::horizontalNoiseMeter
float32_t horizontalNoiseMeter
Expected horizontal position noise (CEP) of the GNSS sensor [m] A default value of 2....
Definition: GlobalEgomotion.h:57
dwContextHandle_t
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:81
dwGlobalEgomotionGNSSCharacteristics::timeOffsetGPS
dwTime_t timeOffsetGPS
Time offset to be subtracted from timestamp provided in dwGPSFrame [us] Leave 0 unless the timestamp ...
Definition: GlobalEgomotion.h:69
dwGlobalEgomotionHandle_t
struct dwGlobalEgomotionObject * dwGlobalEgomotionHandle_t
Mutable handle to a global egomotion object.
Definition: GlobalEgomotion.h:43
dwGlobalEgomotion_getHistorySize
DW_API_PUBLIC dwStatus dwGlobalEgomotion_getHistorySize(size_t *num, dwGlobalEgomotionConstHandle_t handle)
Returns the number of estimates currently stored in the history.
EgomotionState.h
handle
const WFDCommitType const WFDHandle handle
Definition: wfdext.h:532
dwGlobalEgomotionParameters
Holds initialization parameters for the global egomotion module.
Definition: GlobalEgomotion.h:83
DW_API_PUBLIC
#define DW_API_PUBLIC
Definition: core/base/Exports.h:57
dwGlobalEgomotionGNSSCharacteristics
GNSS Sensor characteristics.
Definition: GlobalEgomotion.h:50
dwGlobalEgomotionGNSSCharacteristics::cycleTimeGPS
dwTime_t cycleTimeGPS
Cycle time of GPS updates [us] If left 0 a default value of 1'000'000 us (1 second) will be assumed.
Definition: GlobalEgomotion.h:65
dwEgomotionResult
Instantaneous state estimate.
Definition: EgomotionTypes.h:485
dwGlobalEgomotion_addRelativeMotionState
DW_API_PUBLIC dwStatus dwGlobalEgomotion_addRelativeMotionState(dwConstEgomotionStateHandle_t relativeEgomotionStateHandle, dwGlobalEgomotionHandle_t handle)
Adds relative egomotion estimate to the global egomotion module.
dwGlobalEgomotionConstHandle_t
struct dwGlobalEgomotionObject const * dwGlobalEgomotionConstHandle_t
Const handle to a global egomotion object.
Definition: GlobalEgomotion.h:45