NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
EgomotionState.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 
60 #ifndef DW_EGOMOTION_BASE_EGOMOTIONSTATE_H_
61 #define DW_EGOMOTION_BASE_EGOMOTIONSTATE_H_
62 
64 
65 #ifdef __cplusplus
66 extern "C" {
67 #endif
68 
70 typedef struct dwEgomotionStateObject* dwEgomotionStateHandle_t;
72 typedef struct dwEgomotionStateObject const* dwConstEgomotionStateHandle_t;
73 
91 // coverity[misra_c_2012_directive_4_9_violation] Deviation Record: AV-NDAS-SWSADR-008
92 DW_DEPRECATED("dwEgomotion_createEmptyState has been deprecated and will be removed in the next release. Use dwEgomotion2_initializeState instead.")
93 // coverity[misra_c_2012_directive_4_9_violation] Deviation Record: AV-NDAS-SWSADR-008
96 
116 
134 
135 // --------------------------------------------
136 // State
137 // --------------------------------------------
138 
149 
160  dwTime_t timestamp_a, dwTime_t timestamp_b,
162 
172  dwEgomotionTransformationQuality* const quality,
173  dwTime_t const timestamp,
174  dwCoordinateSystem const coordinateSystemA,
175  dwCoordinateSystem const coordinateSystemB,
177 
187 
197 
207 
217 
227 
237 
247  size_t index, dwConstEgomotionStateHandle_t obj);
248 
258 
283 // coverity[misra_c_2012_directive_4_9_violation] Deviation Record: AV-NDAS-SWSADR-008
284 DW_DEPRECATED("dwEgomotionState_createEmpty has been deprecated and will be removed in the next release. Use dwEgomotion2_initializeState instead.")
285 // coverity[misra_c_2012_directive_4_9_violation] Deviation Record: AV-NDAS-SWSADR-008
288 
303 
320 
340 dwStatus dwEgomotionState_serialize(size_t* numBytes, uint8_t* buffer, size_t bufferCapacity, dwConstEgomotionStateHandle_t state);
341 
361 dwStatus dwEgomotionState_deserialize(const uint8_t* buffer, size_t bufferSize, dwEgomotionStateHandle_t state);
362 
379 
398 
399 #ifdef __cplusplus
400 }
401 #endif
402 
403 #endif // DW_EGOMOTION_BASE_EGOMOTIONSTATE_H_
dwEgomotionState_getMaxNumBytes
DW_API_PUBLIC dwStatus dwEgomotionState_getMaxNumBytes(size_t *bufferCapacity, dwConstEgomotionStateHandle_t state)
Get maximal number of bytes required for a buffer to contain serialized state.
dwEgomotion_getState
DW_API_PUBLIC dwStatus dwEgomotion_getState(dwEgomotionStateHandle_t state, dwEgomotionConstHandle_t obj)
Fills out already preallocated state handle.
dwEgomotionHandle_t
struct dwEgomotionObject * dwEgomotionHandle_t
Egomotion Handle.
Definition: Egomotion.h:67
dwEgomotionState_getMotionModel
DW_API_PUBLIC dwStatus dwEgomotionState_getMotionModel(dwMotionModel *model, dwConstEgomotionStateHandle_t obj)
dwEgomotion_getHistoryCapacity
DW_API_PUBLIC dwStatus dwEgomotion_getHistoryCapacity(size_t *capacity, dwEgomotionConstHandle_t obj)
Returns the capacity of the history, i.e.
dwEgomotionState_deserialize
DW_API_PUBLIC dwStatus dwEgomotionState_deserialize(const uint8_t *buffer, size_t bufferSize, dwEgomotionStateHandle_t state)
Deserialize the state from the provided buffer.
dwEgomotionState_computeRelativeTransformation
DW_API_PUBLIC dwStatus dwEgomotionState_computeRelativeTransformation(dwTransformation3f *poseAtoB, dwEgomotionTransformationQuality *quality, dwTime_t timestamp_a, dwTime_t timestamp_b, dwConstEgomotionStateHandle_t obj)
dwEgomotionUncertainty
Instantaneous state uncertainty estimates.
Definition: EgomotionTypes.h:523
dwEgomotionState_getGyroscopeBias
DW_API_PUBLIC dwStatus dwEgomotionState_getGyroscopeBias(dwVector3f *gyroBias, dwConstEgomotionStateHandle_t obj)
dwEgomotionState_getHistorySize
DW_API_PUBLIC dwStatus dwEgomotionState_getHistorySize(size_t *num, dwConstEgomotionStateHandle_t obj)
dwEgomotionState_createEmpty
DW_API_PUBLIC dwStatus dwEgomotionState_createEmpty(dwEgomotionStateHandle_t *state, dwEgomotionStateParams params, dwContextHandle_t ctx)
Create empty state for a given motion model type.
dwEgomotionState_append
DW_API_PUBLIC dwStatus dwEgomotionState_append(dwEgomotionStateHandle_t state, dwConstEgomotionStateHandle_t source)
Append egomotion state to pre-existing state handle.
dwEgomotionState_getHistoryElement
DW_API_PUBLIC dwStatus dwEgomotionState_getHistoryElement(dwEgomotionResult *pose, dwEgomotionUncertainty *uncertainty, size_t index, dwConstEgomotionStateHandle_t obj)
timestamp
const WFDPipeline const WFDSource const WFDTransition const WFDRect *const const WFDuint64 timestamp
Definition: wfdext.h:114
dwConstEgomotionStateHandle_t
struct dwEgomotionStateObject const * dwConstEgomotionStateHandle_t
Const handle to an egomotion state object.
Definition: EgomotionState.h:72
dwMotionModel
dwMotionModel
Defines the motion models.
Definition: EgomotionTypes.h:37
dwEgomotionState_computeBodyTransformation
DW_API_PUBLIC dwStatus dwEgomotionState_computeBodyTransformation(dwTransformation3f *const transformationAToB, dwEgomotionTransformationQuality *const quality, dwTime_t const timestamp, dwCoordinateSystem const coordinateSystemA, dwCoordinateSystem const coordinateSystemB, dwConstEgomotionStateHandle_t const obj)
dwEgomotionState_getEstimationTimestamp
DW_API_PUBLIC dwStatus dwEgomotionState_getEstimationTimestamp(dwTime_t *timestamp, dwConstEgomotionStateHandle_t obj)
dwEgomotion2_initializeState
DW_API_PUBLIC dwStatus dwEgomotion2_initializeState(dwEgomotionStateHandle_t *state, size_t const historySize, dwContextHandle_t ctx)
Initializes an instance of the egomotion 2.0 state history.
dwTime_t
int64_t dwTime_t
Definition: core/base/BasicTypes.h:65
dwVector3f
Defines a three-element floating-point vector.
Definition: MatrixTypes.h:74
dwEgomotionStateHandle_t
struct dwEgomotionStateObject * dwEgomotionStateHandle_t
Mutable handle to an egomotion state object.
Definition: EgomotionState.h:70
source
const WFDPipeline const WFDSource source
Definition: wfdext.h:111
dwEgomotion_createEmptyState
DW_API_PUBLIC dwStatus dwEgomotion_createEmptyState(dwEgomotionStateHandle_t *state, dwEgomotionHandle_t obj)
Create empty state from the given egomotion module.
dwEgomotionTransformationQuality
Relative transformation validity and uncertainty.
Definition: EgomotionTypes.h:542
dwEgomotionState_getHistoryCapacity
DW_API_PUBLIC dwStatus dwEgomotionState_getHistoryCapacity(size_t *capacity, dwConstEgomotionStateHandle_t obj)
obj
const NvSciSyncObj *const obj
Definition: wfdext.h:528
dwStatus
dwStatus
Status definition.
Definition: ErrorDefs.h:32
Egomotion.h
DW_DEPRECATED
#define DW_DEPRECATED(msg)
Definition: core/base/Exports.h:80
dwEgomotionStateParams
Defines egomotion state initialization parameters.
Definition: EgomotionTypes.h:358
dwEgomotionState_copy
DW_API_PUBLIC dwStatus dwEgomotionState_copy(dwEgomotionStateHandle_t state, dwConstEgomotionStateHandle_t source)
Copy existing egomotion state to preallocated state handle.
dwEgomotionState_getUncertainty
DW_API_PUBLIC dwStatus dwEgomotionState_getUncertainty(dwEgomotionUncertainty *result, dwConstEgomotionStateHandle_t obj)
dwContextHandle_t
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:81
dwCoordinateSystem
dwCoordinateSystem
Coordinate systems.
Definition: CoordinateSystem.h:42
dwTransformation3f
Specifies a 3D rigid transformation.
Definition: MatrixTypes.h:226
dwEgomotionState_estimate
DW_API_PUBLIC dwStatus dwEgomotionState_estimate(dwEgomotionResult *pose, dwEgomotionUncertainty *uncertainty, dwTime_t timestamp_us, dwConstEgomotionStateHandle_t obj)
dwEgomotionState_serialize
DW_API_PUBLIC dwStatus dwEgomotionState_serialize(size_t *numBytes, uint8_t *buffer, size_t bufferCapacity, dwConstEgomotionStateHandle_t state)
Serialize the state out into the provided buffer.
DW_API_PUBLIC
#define DW_API_PUBLIC
Definition: core/base/Exports.h:57
dwEgomotionState_getEstimation
DW_API_PUBLIC dwStatus dwEgomotionState_getEstimation(dwEgomotionResult *result, dwConstEgomotionStateHandle_t obj)
dwEgomotionConstHandle_t
struct dwEgomotionObject const * dwEgomotionConstHandle_t
Const Egomotion Handle.
Definition: Egomotion.h:72
dwEgomotionState_release
DW_API_PUBLIC dwStatus dwEgomotionState_release(dwEgomotionStateHandle_t state)
Releases the egomotion state previously created with dwEgomotionState_createEmpty.
dwEgomotionResult
Instantaneous state estimate.
Definition: EgomotionTypes.h:485