NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
Egomotion Interface

Detailed Description

Provides vehicle egomotion functionality.

The egomotion module provides implementations of motion models with different sensor modalities. Starting from a simple Ackerman-based odometry-only model, to a full-fledged fusion of inertial sensor information.

This module provides access to a history of motion estimates with a predefined cadence and length. At any point of time an access into the history can be made to retrieve previous estimates. The access into the history is timestamp-based. If an access falls between two history entries it will be interpolated.

In addition to history-based access, all motion models support prediction of the motion into the future.

Data Structures

struct  dwEgomotionMeasurementParameters
 Egomotion measurement parameters. More...
 
struct  dwEgomotionVMOParameters
 Vehicle motion observer parameters. More...
 
struct  dwEgomotionWheelObserverParameters
 Wheel observer parameters. More...
 
struct  dwEgomotionVehicleMovingDirectionDetectorParameters
 Vehicle moving direction detection parameters. More...
 
struct  dwEgomotionIMUIntrinsics
 IMU intrinsic parameters. More...
 
struct  dwEgomotionSuspensionProperties
 Suspension properties. More...
 
struct  dwEgomotionParameters2
 Egomotion parameters. More...
 
struct  dwEgomotionLinearAccelerationFilterParams
 Defines egomotion linear acceleration filter parameters. More...
 
struct  dwEgomotionSuspensionParameters
 Suspension model type and parameters. More...
 
struct  dwEgomotionSensorCharacteristics
 Sensor measurement noise characteristics. More...
 
struct  dwEgomotionStateParams
 Defines egomotion state initialization parameters. More...
 
struct  dwEgomotionParameters
 Holds initialization parameters for the Egomotion module. More...
 
struct  dwEgomotionQuality
 Egomotion quality: integrity and error bounds. More...
 
struct  dwEgomotionResultQuality
 Quality of instantaneous state estimate. More...
 
struct  dwEgomotionResult
 Instantaneous state estimate. More...
 
struct  dwEgomotionUncertainty
 Instantaneous state uncertainty estimates. More...
 
struct  dwEgomotionTransformationQuality
 Relative transformation validity and uncertainty. More...
 
struct  dwEgomotionSignalLimitsUInt8
 Limits for uint8_t signal ranges. More...
 
struct  dwEgomotionSignalLimitsInt16
 Limits for int16_t signal ranges. More...
 
struct  dwEgomotionSignalLimitsFloat32
 Limits for float32_t signal ranges. More...
 
struct  dwEgomotionSignalLimitsFloat64
 Limits for float64_t signal ranges. More...
 
struct  dwEgomotionSignalLimitsDwTime
 Limits for dwTime_t signal ranges. More...
 
struct  dwEgomotionIMUMonitorParameters
 Parameters for error handling IMU L2 Monitor. More...
 
struct  dwEgomotionErrorHandlingParameters
 Parameters for error handling related logic. More...
 
struct  dwGlobalEgomotionUncertainty
 Holds global egomotion uncertainty estimate. More...
 
struct  dwGlobalEgomotionRelativeDeviation
 Global to relative egomotion deviation information. More...
 
struct  dwGlobalEgomotionGpsStatus
 Holds global egomotion GPS timeout and stuck status information. More...
 
struct  dwGlobalEgomotionResult
 Holds global egomotion state estimate. More...
 
struct  dwGlobalEgomotionStateElement
 Defines global egomotion state element. More...
 
struct  dwGlobalEgomotionState
 Defines global egomotion state. More...
 
struct  dwEgomotionIMUAccBiasEstimatorParameters
 IMU accelerometer bias estimator parameters. More...
 
struct  dwEgomotionIMUGyroBiasEstimatorParameters
 IMU gyroscope bias estimator parameters. More...
 
struct  dwEgomotionSteeringOffsetEstimatorParameters
 Steering offset estimator parameters. More...
 
struct  dwYawDisturbanceDetectorParameters
 Yaw disturbance detector parameters for HFE integration. More...
 

Modules

 Egomotion Extra API
 Defines additional related API.
 
 Global Egomotion Interface
 Provides global location and orientation estimation functionality.
 
 Producer/State API
 Defines producer/state related API.
 
 RadarDopplerMotion Interface
 Provides estimation of the speed and heading of the radar observing doppler based radar measurements.
 
 Serialization Interface
 Defines the serialization API of the global egomotion module.
 

Macros

#define DW_EGOMOTION_ERROR_ID_COUNT   (753)
 
#define DW_EGOMOTIONRESULT_IDENTIFIER_MAX_LEN   16
 Max length allow for the identifier describing dwEgomotionResult, dwEgomotionPose and dwGlobalEgomotionResult. More...
 
#define DW_GLOBAL_EGOMOTION_STATE_CAPACITY   1000U
 
#define DW_EGOMOTION_C3_LOOKUP_TABLE_SIZE   8U
 Number of elements in the C3 trigger lookup table. More...
 

Typedefs

typedef struct dwEgomotionObject * dwEgomotionHandle_t
 Egomotion Handle. More...
 
typedef struct dwEgomotionObject const * dwEgomotionConstHandle_t
 Const Egomotion Handle. More...
 
typedef enum dwEgomotionMeasurementTypes dwEgomotionMeasurementTypes
 Measurements used by egomotion. More...
 
typedef enum dwEgomotionGroundSpeedMeasurementTypes dwEgomotionGroundSpeedMeasurementTypes
 Ground speed measurement types. More...
 
typedef enum dwEgomotionDirectionMode dwEgomotionDirectionMode
 Vehicle direction detection modes. More...
 
typedef struct dwEgomotionMeasurementParameters dwEgomotionMeasurementParameters
 Egomotion measurement parameters. More...
 
typedef struct dwEgomotionVMOParameters dwEgomotionVMOParameters
 Vehicle motion observer parameters. More...
 
typedef struct dwEgomotionWheelObserverParameters dwEgomotionWheelObserverParameters
 Wheel observer parameters. More...
 
typedef struct dwEgomotionVehicleMovingDirectionDetectorParameters dwEgomotionVehicleMovingDirectionDetectorParameters
 Vehicle moving direction detection parameters. More...
 
typedef struct dwEgomotionIMUIntrinsics dwEgomotionIMUIntrinsics
 IMU intrinsic parameters. More...
 
typedef struct dwEgomotionSuspensionProperties dwEgomotionSuspensionProperties
 Suspension properties. More...
 
typedef struct dwEgomotionParameters2 dwEgomotionParameters2
 Egomotion parameters. More...
 
typedef enum dwMotionModel dwMotionModel
 Defines the motion models. More...
 
typedef enum dwEgomotionIMUIdentifier dwEgomotionIMUIdentifier
 Defines IMU identifiers. More...
 
typedef enum dwMotionModelMeasurement dwMotionModelMeasurement
 Defines motion measurements. More...
 
typedef enum dwEgomotionSpeedMeasurementType dwEgomotionSpeedMeasurementType
 Defines speed measurement types. More...
 
typedef enum dwEgomotionSteeringMeasurementType dwEgomotionSteeringMeasurementType
 Defines steering measurement types. More...
 
typedef enum dwEgomotionLinearAccelerationFilterMode dwEgomotionLinearAccelerationFilterMode
 Defines egomotion linear acceleration filter mode. More...
 
typedef enum dwEgomotionSuspensionModel dwEgomotionSuspensionModel
 Defines egomotion suspension model. More...
 
typedef enum dwEgomotionDataField dwEgomotionDataField
 Defines flags that indicate validity of corresponding data in dwEgomotionResult and dwEgomotionUncertainty. More...
 
typedef enum dwEgomotionIntegrity dwEgomotionIntegrity
 Egomotion integrity levels. More...
 
typedef struct dwEgomotionLinearAccelerationFilterParams dwEgomotionLinearAccelerationFilterParams
 Defines egomotion linear acceleration filter parameters. More...
 
typedef struct dwEgomotionSuspensionParameters dwEgomotionSuspensionParameters
 Suspension model type and parameters. More...
 
typedef struct dwEgomotionSensorCharacteristics dwEgomotionSensorCharacteristics
 Sensor measurement noise characteristics. More...
 
typedef struct dwEgomotionStateParams dwEgomotionStateParams
 Defines egomotion state initialization parameters. More...
 
typedef struct dwEgomotionParameters dwEgomotionParameters
 Holds initialization parameters for the Egomotion module. More...
 
typedef struct dwEgomotionQuality dwEgomotionQuality
 Egomotion quality: integrity and error bounds. More...
 
typedef struct dwEgomotionResultQuality dwEgomotionResultQuality
 Quality of instantaneous state estimate. More...
 
typedef struct dwEgomotionResult dwEgomotionResult
 Instantaneous state estimate. More...
 
typedef struct dwEgomotionUncertainty dwEgomotionUncertainty
 Instantaneous state uncertainty estimates. More...
 
typedef struct dwEgomotionTransformationQuality dwEgomotionTransformationQuality
 Relative transformation validity and uncertainty. More...
 
typedef struct dwEgomotionSignalLimitsUInt8 dwEgomotionSignalLimitsUInt8
 Limits for uint8_t signal ranges. More...
 
typedef struct dwEgomotionSignalLimitsInt16 dwEgomotionSignalLimitsInt16
 Limits for int16_t signal ranges. More...
 
typedef struct dwEgomotionSignalLimitsFloat32 dwEgomotionSignalLimitsFloat32
 Limits for float32_t signal ranges. More...
 
typedef struct dwEgomotionSignalLimitsFloat64 dwEgomotionSignalLimitsFloat64
 Limits for float64_t signal ranges. More...
 
typedef struct dwEgomotionSignalLimitsDwTime dwEgomotionSignalLimitsDwTime
 Limits for dwTime_t signal ranges. More...
 
typedef struct dwEgomotionIMUMonitorParameters dwEgomotionIMUMonitorParameters
 Parameters for error handling IMU L2 Monitor. More...
 
typedef struct dwEgomotionErrorHandlingParameters dwEgomotionErrorHandlingParameters
 Parameters for error handling related logic. More...
 
typedef struct dwGlobalEgomotionUncertainty dwGlobalEgomotionUncertainty
 Holds global egomotion uncertainty estimate. More...
 
typedef struct dwGlobalEgomotionRelativeDeviation dwGlobalEgomotionRelativeDeviation
 Global to relative egomotion deviation information. More...
 
typedef struct dwGlobalEgomotionGpsStatus dwGlobalEgomotionGpsStatus
 Holds global egomotion GPS timeout and stuck status information. More...
 
typedef struct dwGlobalEgomotionResult dwGlobalEgomotionResult
 Holds global egomotion state estimate. More...
 
typedef struct dwGlobalEgomotionStateElement dwGlobalEgomotionStateElement
 Defines global egomotion state element. More...
 
typedef struct dwGlobalEgomotionState dwGlobalEgomotionState
 Defines global egomotion state. More...
 
typedef struct dwEgomotionIMUAccBiasEstimatorParameters dwEgomotionIMUAccBiasEstimatorParameters
 IMU accelerometer bias estimator parameters. More...
 
typedef struct dwEgomotionIMUGyroBiasEstimatorParameters dwEgomotionIMUGyroBiasEstimatorParameters
 IMU gyroscope bias estimator parameters. More...
 
typedef struct dwEgomotionSteeringOffsetEstimatorParameters dwEgomotionSteeringOffsetEstimatorParameters
 Steering offset estimator parameters. More...
 
typedef struct dwYawDisturbanceDetectorParameters dwYawDisturbanceDetectorParameters
 Yaw disturbance detector parameters for HFE integration. More...
 

Enumerations

enum  dwEgomotionMeasurementTypes {
  DW_EGOMOTION_MEASUREMENT_STEERING = 0,
  DW_EGOMOTION_MEASUREMENT_SUSPENSION = 1,
  DW_EGOMOTION_MEASUREMENT_ANGULAR_ACCELERATION = 2,
  DW_EGOMOTION_MEASUREMENT_PROPER_ACCELERATION = 3,
  DW_EGOMOTION_MEASUREMENT_ANGULAR_VELOCITY = 4,
  DW_EGOMOTION_MEASUREMENT_LINEAR_GROUND_SPEED = 5,
  DW_EGOMOTION_MEASUREMENT_LINEAR_BODY_SPEED = 6,
  DW_EGOMOTION_MEASUREMENT_WHEEL_TICKS = 7,
  DW_EGOMOTION_MEASUREMENT_WHEEL_SPEEDS = 8,
  DW_EGOMOTION_MEASUREMENT_TRAILER_ANGLE = 9,
  DW_EGOMOTION_MEASUREMENT_REAR_STEERING = 10,
  DW_EGOMOTION_MEASUREMENT_TYPES_COUNT
}
 Measurements used by egomotion. More...
 
enum  dwEgomotionGroundSpeedMeasurementTypes {
  DW_EGOMOTION_GROUND_SPEED_FROM_WHEEL_SPEEDS_REAR_AXLE = 0,
  DW_EGOMOTION_GROUND_SPEED_FROM_WHEEL_SPEEDS_BOTH_AXLES = 1,
  DW_EGOMOTION_GROUND_SPEED_FROM_WHEEL_TICKS_AND_SPEEDS_REAR_AXLE = 2,
  DW_EGOMOTION_GROUND_SPEED_FROM_WHEEL_TICKS_AND_SPEEDS_BOTH_AXLES = 3,
  DW_DEPRECATED_ENUMERATOR =("DW_EGOMOTION_GROUND_SPEED_FROM_LINEAR_SPEED has been deprecated and will be removed in the next release.") = 4,
  DW_EGOMOTION_GROUND_SPEED_COUNT
}
 Ground speed measurement types. More...
 
enum  dwEgomotionDirectionMode {
  DW_EGOMOTION_DIRECTION_FROM_SPEED_SIGN = 0,
  DW_EGOMOTION_DIRECTION_FROM_WHEEL_DIR_AND_GEAR = 1,
  DW_EGOMOTION_DIRECTION_FROM_SPEED_SIGN_AND_GEAR = 2,
  DW_EGOMOTION_DIRECTION_COUNT
}
 Vehicle direction detection modes. More...
 
enum  dwMotionModel {
  DW_EGOMOTION_ODOMETRY = 1 << 0,
  DW_EGOMOTION_IMU_ODOMETRY = (1 << 2) - 1,
  DW_EGOMOTION_VEHICLE_MOTION_OBSERVER = 1 << 2
}
 Defines the motion models. More...
 
enum  dwEgomotionIMUIdentifier {
  DW_EGOMOTION_IMU_BASE = 0,
  DW_EGOMOTION_IMU_HIGH_A = 1,
  DW_EGOMOTION_IMU_HIGH_B = 2,
  DW_EGOMOTION_IMU_COUNT_MAX = 3
}
 Defines IMU identifiers. More...
 
enum  dwMotionModelMeasurement {
  DW_EGOMOTION_MEASUREMENT_VELOCITY = 0,
  DW_EGOMOTION_MEASUREMENT_STEERINGANGLE = 1,
  DW_EGOMOTION_MEASUREMENT_STEERINGWHEELANGLE = 2
}
 Defines motion measurements. More...
 
enum  dwEgomotionSpeedMeasurementType {
  DW_EGOMOTION_FRONT_SPEED = 0,
  DW_EGOMOTION_REAR_WHEEL_SPEED = 1,
  DW_EGOMOTION_REAR_SPEED = 2
}
 Defines speed measurement types. More...
 
enum  dwEgomotionSteeringMeasurementType {
  DW_EGOMOTION_FRONT_STEERING = 0,
  DW_EGOMOTION_STEERING_WHEEL_ANGLE = 1
}
 Defines steering measurement types. More...
 
enum  dwEgomotionLinearAccelerationFilterMode {
  DW_EGOMOTION_ACC_FILTER_NO_FILTERING = 0,
  DW_EGOMOTION_ACC_FILTER_SIMPLE = 1
}
 Defines egomotion linear acceleration filter mode. More...
 
enum  dwEgomotionSuspensionModel {
  DW_EGOMOTION_SUSPENSION_RIGID_MODEL = 0,
  DW_EGOMOTION_SUSPENSION_TORSIONAL_SPRING_MODEL = 1
}
 Defines egomotion suspension model. More...
 
enum  dwEgomotionDataField {
  DW_EGOMOTION_ROTATION = 1 << 0,
  DW_EGOMOTION_LIN_VEL_X = 1 << 1,
  DW_EGOMOTION_LIN_VEL_Y = 1 << 2,
  DW_EGOMOTION_LIN_VEL_Z = 1 << 3,
  DW_EGOMOTION_ANG_VEL_X = 1 << 4,
  DW_EGOMOTION_ANG_VEL_Y = 1 << 5,
  DW_EGOMOTION_ANG_VEL_Z = 1 << 6,
  DW_EGOMOTION_LIN_ACC_X = 1 << 7,
  DW_EGOMOTION_LIN_ACC_Y = 1 << 8,
  DW_EGOMOTION_LIN_ACC_Z = 1 << 9,
  DW_EGOMOTION_ANG_ACC_X = 1 << 10,
  DW_EGOMOTION_ANG_ACC_Y = 1 << 11,
  DW_EGOMOTION_ANG_ACC_Z = 1 << 12,
  DW_EGOMOTION_CURVATURE = 1 << 13
}
 Defines flags that indicate validity of corresponding data in dwEgomotionResult and dwEgomotionUncertainty. More...
 
enum  dwEgomotionIntegrity {
  DW_EGOMOTION_INTEGRITY_INVALID = 0,
  DW_EGOMOTION_INTEGRITY_VALID_QM = 1,
  DW_EGOMOTION_INTEGRITY_VALID_A = 2,
  DW_EGOMOTION_INTEGRITY_VALID_B = 3,
  DW_EGOMOTION_INTEGRITY_VALID_C = 4,
  DW_EGOMOTION_INTEGRITY_VALID_D = 5
}
 Egomotion integrity levels. More...
 

Functions

DW_API_PUBLIC dwStatus dwEgomotion_initParamsFromRig (dwEgomotionParameters *params, dwConstRigHandle_t rigConfiguration, const char *imuSensorName, const char *vehicleSensorName)
 Initialize egomotion parameters from a provided RigConfiguration. More...
 
DW_API_PUBLIC dwStatus dwEgomotion_initParamsFromRigByIndex (dwEgomotionParameters *params, dwConstRigHandle_t rigConfiguration, uint32_t imuSensorIdx, uint32_t vehicleSensorIdx)
 Same as dwEgomotion_initParamsFromRig however uses sensor indices in rigConfiguration instead of their names. More...
 
DW_API_PUBLIC dwStatus dwEgomotion_initialize (dwEgomotionHandle_t *obj, const dwEgomotionParameters *params, dwContextHandle_t ctx)
 Initializes the egomotion module. More...
 
DW_API_PUBLIC dwStatus dwEgomotion_reset (dwEgomotionHandle_t obj)
 Resets the state estimate and all history of the egomotion module. More...
 
DW_API_PUBLIC dwStatus dwEgomotion_release (dwEgomotionHandle_t obj)
 Releases the egomotion module. More...
 
DW_API_PUBLIC dwStatus dwEgomotion_addVehicleState (const dwVehicleIOState *state, dwEgomotionHandle_t obj)
 Notifies the egomotion module of a changed vehicle state. More...
 
DW_API_PUBLIC dwStatus dwEgomotion_addVIOState (dwVehicleIOASILState const *asilState, dwVehicleIOQMState const *qmState, dwEgomotionHandle_t obj)
 Notifies the egomotion module of a changed vehicle state. More...
 
DW_API_PUBLIC dwStatus dwEgomotion_addVehicleIOState (dwVehicleIOSafetyState const *safeState, dwVehicleIONonSafetyState const *nonSafeState, dwVehicleIOActuationFeedback const *actuationFeedback, dwEgomotionHandle_t obj)
 Notifies the egomotion module of a changed vehicle state. More...
 
DW_API_PUBLIC dwStatus dwEgomotion_updateVehicle (const dwVehicle *vehicle, dwEgomotionHandle_t obj)
 
DW_API_PUBLIC dwStatus dwEgomotion_addIMUMeasurement (const dwIMUFrame *imu, dwEgomotionHandle_t obj)
 Adds an IMU frame to the egomotion module for the BASE IMU. More...
 
DW_API_PUBLIC dwStatus dwEgomotion_addIMUMeasurementByIndex (const dwIMUFrame *imu, uint32_t const sensorIndex, dwEgomotionHandle_t obj)
 Adds an IMU frame to the egomotion module for a specific IMU. More...
 
DW_API_PUBLIC dwStatus dwEgomotion_updateIMUExtrinsics (const dwTransformation3f *imuToRig, dwEgomotionHandle_t obj)
 This method updates the IMU extrinsics to convert from the IMU coordinate system to the vehicle rig coordinate system. More...
 
DW_API_PUBLIC dwStatus dwEgomotion_update (dwTime_t timestamp_us, dwEgomotionHandle_t obj)
 Runs the motion model estimation for a given timestamp. More...
 
DW_API_PUBLIC dwStatus dwEgomotion_estimate (dwEgomotionResult *pose, dwEgomotionUncertainty *uncertainty, dwTime_t timestamp_us, dwEgomotionConstHandle_t obj)
 Estimates the state for a given timestamp. More...
 
DW_API_PUBLIC dwStatus dwEgomotion_computeRelativeTransformation (dwTransformation3f *poseAtoB, dwEgomotionTransformationQuality *quality, dwTime_t timestamp_a, dwTime_t timestamp_b, dwEgomotionConstHandle_t obj)
 Computes the relative transformation between two timestamps and the uncertainty of this transform. More...
 
DW_API_PUBLIC dwStatus dwEgomotion_computeBodyTransformation (dwTransformation3f *const transformationAToB, dwEgomotionTransformationQuality *const quality, dwTime_t const timestamp, dwCoordinateSystem const coordinateSystemA, dwCoordinateSystem const coordinateSystemB, dwEgomotionConstHandle_t const obj)
 Compute the transformation between two coordinate systems at a specific timestamp and the uncertainty of this transform. More...
 
DW_API_PUBLIC dwStatus dwEgomotion_getEstimationTimestamp (dwTime_t *timestamp, dwEgomotionConstHandle_t obj)
 Gets the timestamp of the latest state estimate. More...
 
DW_API_PUBLIC dwStatus dwEgomotion_hasEstimation (bool *result, dwEgomotionConstHandle_t obj)
 Check whether estimation is available. More...
 
DW_API_PUBLIC dwStatus dwEgomotion_getEstimation (dwEgomotionResult *result, dwEgomotionConstHandle_t obj)
 Gets the latest state estimate. More...
 
DW_API_PUBLIC dwStatus dwEgomotion_getUncertainty (dwEgomotionUncertainty *result, dwEgomotionConstHandle_t obj)
 Gets the latest state estimate uncertainties. More...
 
DW_API_PUBLIC dwStatus dwEgomotion_getGyroscopeBias (dwVector3f *gyroBias, dwEgomotionConstHandle_t obj)
 Get estimated gyroscope bias of the BASE IMU. More...
 
DW_API_PUBLIC dwStatus dwEgomotion_getGyroscopeBiasByIndex (dwVector3f *gyroBias, uint32_t const sensorIndex, dwEgomotionConstHandle_t obj)
 Get estimated gyroscope bias of specific IMU. More...
 
DW_API_PUBLIC dwStatus dwEgomotion_getHistorySize (size_t *size, dwEgomotionConstHandle_t obj)
 Returns the number of elements currently stored in the history. More...
 
DW_API_PUBLIC dwStatus dwEgomotion_getHistoryElement (dwEgomotionResult *pose, dwEgomotionUncertainty *uncertainty, size_t index, dwEgomotionConstHandle_t obj)
 Returns an element from the motion history that is currently available. More...
 
DW_API_PUBLIC dwStatus dwEgomotion_getMotionModel (dwMotionModel *model, dwEgomotionConstHandle_t obj)
 Returns the type of the motion model used. More...
 
DW_API_PUBLIC dwStatus dwEgomotion_applyRelativeTransformation (dwTransformation3f *vehicleToWorldAtB, const dwTransformation3f *vehicleAToB, const dwTransformation3f *vehicleToWorldAtA)
 Applies the estimated relative motion as returned by dwEgomotion_computeRelativeTransformation to a given vehicle pose. More...
 
DW_API_PUBLIC dwStatus dwEgomotion_computeSteeringAngleFromIMU (float32_t *steeringAngle, float32_t *inverseSteeringR, const dwIMUFrame *imuMeasurement, dwEgomotionConstHandle_t obj)
 Computes steering angle of the vehicle based on IMU measurement. More...
 
DW_API_PUBLIC dwStatus dwEgomotion_steeringWheelAngleToSteeringAngle (float32_t *steeringAngle, float32_t steeringWheelAngle, dwEgomotionHandle_t obj)
 Convert steering wheel angle to steering angle. More...
 
DW_API_PUBLIC dwStatus dwEgomotion_steeringAngleToSteeringWheelAngle (float32_t *steeringWheelAngle, float32_t steeringAngle, dwEgomotionHandle_t obj)
 Convert steering angle to steering wheel angle. More...
 
DW_API_PUBLIC dwStatus dwEgomotion2_initParamsFromRig (dwEgomotionParameters2 *params, dwConstRigHandle_t rigConfiguration, char const *imu1Name, char const *imu2Name, char const *imu3Name)
 Initializes the egomotion parameters to sane defaults given vehicle configuration. More...
 
DW_API_PUBLIC dwStatus dwEgomotion2_initDefaultParams (dwEgomotionParameters2 *params)
 Initializes the egomotion parameters to sane defaults applicable to most vehicles. More...
 
DW_API_PUBLIC dwStatus dwEgomotion2_initParamsFromRigByIndex (dwEgomotionParameters2 *params, dwConstRigHandle_t rigConfiguration, uint32_t const imu1Index, uint32_t const imu2Index, uint32_t const imu3Index)
 Initializes the egomotion parameters to sane defaults given vehicle configuration. More...
 
DW_API_PUBLIC dwStatus dwEgomotion2_initialize (dwEgomotionHandle_t *const obj, dwEgomotionParameters2 const *params, dwContextHandle_t const ctx)
 Initializes the egomotion 2.0 module. More...
 
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. More...
 
DW_API_PUBLIC dwStatus dwEgomotion2_getAccelerometerBias (dwVector3f *accBias, dwEgomotionConstHandle_t obj)
 Get estimated accelerometer bias of the BASE IMU. More...
 
DW_API_PUBLIC dwStatus dwEgomotion2_getAccelerometerBiasByIndex (dwVector3f *accBias, uint32_t const sensorIndex, dwEgomotionConstHandle_t obj)
 Get estimated accelerometer bias of a specific IMU. More...
 
DW_API_PUBLIC dwStatus dwEgomotion2_getFrontSteeringAngleOffset (float32_t *steeringOffset, dwEgomotionConstHandle_t obj)
 Get estimated front steering angle offset. More...
 
DW_API_PUBLIC dwStatus dwEgomotion2_getAccelerometerBiasExt (dwEgomotionCalibrationStatus *status, dwEgomotionCalibrationManeuverArray *maneuvers, dwEgomotionCalibrationProperties *properties, dwEgomotionConstHandle_t obj)
 Get advanced accelerometer bias estimator status information for Base IMU,. More...
 
DW_API_PUBLIC dwStatus dwEgomotion2_getAccelerometerBiasExtByIndex (dwEgomotionCalibrationStatus *status, dwEgomotionCalibrationManeuverArray *maneuvers, dwEgomotionCalibrationProperties *properties, uint32_t const sensorIndex, dwEgomotionConstHandle_t obj)
 Get advanced accelerometer bias estimator status information for specific IMU. More...
 
DW_API_PUBLIC dwStatus dwEgomotion2_getFrontSteeringAngleOffsetExt (dwEgomotionCalibrationStatus *status, dwEgomotionCalibrationManeuverArray *maneuvers, dwEgomotionCalibrationProperties *properties, dwEgomotionConstHandle_t obj)
 Get advanced steering offset estimator status information. More...
 
DW_API_PUBLIC dwStatus dwEgomotion2_updateWheelRadii (dwEgomotionCalibratedWheelRadii const *const wheelRadii, dwEgomotionHandle_t obj)
 Update wheel radii. More...
 
DW_API_PUBLIC dwStatus dwEgomotion2_updateIMUExtrinsics (dwEgomotionCalibratedExtrinsics const *const imuToRig, dwEgomotionHandle_t obj)
 Update IMU extrinsics for Base IMU,. More...
 
DW_API_PUBLIC dwStatus dwEgomotion2_updateIMUExtrinsicsByIndex (dwEgomotionCalibratedExtrinsics const *const imuToRig, uint32_t const sensorIndex, dwEgomotionHandle_t obj)
 Update IMU extrinsics for a specific IMU. More...
 
DW_API_PUBLIC dwStatus dwEgomotionState2_fillNvSciBufAttrs (NvSciBufAttrList *outAttrs, size_t const historySize)
 Filling the NvSciBufAttrList with given motion model type and pose history size. More...
 
DW_API_PUBLIC dwStatus dwEgomotionState2_createAndBindNvSciBufEmpty (dwEgomotionStateHandle_t *state, size_t const historySize, NvSciBufObj nvSciBufObj, dwContextHandle_t ctx)
 Create empty state for a given motion model type and bind the pose history buffer to a NvSciBufObj buffer. More...
 
DW_API_PUBLIC dwStatus dwEgomotionState2_getRawBufferSize (size_t *outSize, size_t const historySize)
 Get the raw buffer size required with given motion model type and pose history size. More...
 
DW_API_PUBLIC dwStatus dwEgomotionState2_createAndBindRawBuffer (dwEgomotionStateHandle_t *state, size_t const historySize, void *dataPtr, size_t dataSize, dwContextHandle_t ctx)
 Create empty state for a given motion model type and bind the pose history buffer to a raw external buffer The pose history buffer is pointing to a raw external buffer. More...
 
dwStatus dwEgomotion2_getErrorIdDisableMask (bool disabledErrorIdMask[DW_EGOMOTION_ERROR_ID_COUNT], char8_t const *const disabledErrorIds[DW_EGOMOTION_ERROR_ID_COUNT])
 Convert a list of ErrorId names to a mask representing their status. More...
 

Macro Definition Documentation

◆ DW_EGOMOTION_C3_LOOKUP_TABLE_SIZE

#define DW_EGOMOTION_C3_LOOKUP_TABLE_SIZE   8U

Number of elements in the C3 trigger lookup table.

Definition at line 55 of file IMUBiasEstimatorParameters.h.

◆ DW_EGOMOTION_ERROR_ID_COUNT

#define DW_EGOMOTION_ERROR_ID_COUNT   (753)

Definition at line 56 of file ErrorHandlingParameters.h.

◆ DW_EGOMOTIONRESULT_IDENTIFIER_MAX_LEN

#define DW_EGOMOTIONRESULT_IDENTIFIER_MAX_LEN   16

Max length allow for the identifier describing dwEgomotionResult, dwEgomotionPose and dwGlobalEgomotionResult.

Definition at line 34 of file GlobalEgomotionTypes.h.

◆ DW_GLOBAL_EGOMOTION_STATE_CAPACITY

#define DW_GLOBAL_EGOMOTION_STATE_CAPACITY   1000U

Definition at line 36 of file GlobalEgomotionTypes.h.

Typedef Documentation

◆ dwEgomotionConstHandle_t

typedef struct dwEgomotionObject const* dwEgomotionConstHandle_t

Const Egomotion Handle.

Alias for pointer to const egomotion instance.

Definition at line 72 of file Egomotion.h.

◆ dwEgomotionDataField

Defines flags that indicate validity of corresponding data in dwEgomotionResult and dwEgomotionUncertainty.

◆ dwEgomotionDirectionMode

Vehicle direction detection modes.

Egomotion can estimate the vehicle moving direction from different sources depending on vehicle platform capabilities.

Select DW_EGOMOTION_DIRECTION_FROM_SPEED_SIGN if the wheel tick increments and wheel speeds are signed, indicating forward and reverse driving unambiguously.

Select DW_EGOMOTION_DIRECTION_FROM_WHEEL_DIR_AND_GEAR if the wheel tick increments and wheel speeds are unsigned, such that forward and reverse driving cannot be distinguished from these signals alone.

Select DW_EGOMOTION_DIRECTION_FROM_SPEED_SIGN_AND_GEAR if the wheel tick increments and wheel speeds are signed with ambiguous region around 0 to be resolved based on target gear and current gear signals. dwEgomotionVehicleMovingDirectionDetectorParameters::ticksAmbiguousSpeedThreshold

The default configuration for production platforms is DW_EGOMOTION_DIRECTION_FROM_WHEEL_DIR_AND_GEAR.

◆ dwEgomotionErrorHandlingParameters

Parameters for error handling related logic.

◆ dwEgomotionGroundSpeedMeasurementTypes

Ground speed measurement types.

Egomotion can estimate vehicle ground speed from different sources depending on vehicle platform capabilities.

The default configuration for production platforms is DW_EGOMOTION_GROUND_SPEED_FROM_WHEEL_TICKS_AND_SPEEDS_BOTH_AXLES.

◆ dwEgomotionHandle_t

typedef struct dwEgomotionObject* dwEgomotionHandle_t

Egomotion Handle.

Alias for pointer to egomotion instance.

Definition at line 67 of file Egomotion.h.

◆ dwEgomotionIMUAccBiasEstimatorParameters

IMU accelerometer bias estimator parameters.

◆ dwEgomotionIMUGyroBiasEstimatorParameters

IMU gyroscope bias estimator parameters.

◆ dwEgomotionIMUIdentifier

Defines IMU identifiers.

◆ dwEgomotionIMUIntrinsics

IMU intrinsic parameters.

◆ dwEgomotionIMUMonitorParameters

Parameters for error handling IMU L2 Monitor.

◆ dwEgomotionIntegrity

Egomotion integrity levels.

Non-QM integrity levels are only applicable to vehicle platforms developed for NDAS. No guarantees are made for usage of egomotion as part of non-NDAS DriveWorks SDK.

Non-QM integrity levels are only provided for select egomotion modalities.

See also
dwEgomotionQuality

◆ dwEgomotionLinearAccelerationFilterMode

Defines egomotion linear acceleration filter mode.

◆ dwEgomotionLinearAccelerationFilterParams

Defines egomotion linear acceleration filter parameters.

◆ dwEgomotionMeasurementParameters

Egomotion measurement parameters.

◆ dwEgomotionMeasurementTypes

Measurements used by egomotion.

◆ dwEgomotionParameters

Holds initialization parameters for the Egomotion module.

◆ dwEgomotionParameters2

Egomotion parameters.

All parameters are required unless otherwise noted.

◆ dwEgomotionQuality

Egomotion quality: integrity and error bounds.

Egomotion provides (conservative) error bounds on its signals by leveraging an extensive monitoring framework and quantifying the impact of any input or internal error on its output. Not all egomotion modalities support this.

Lower and upper error bounds are given relative to the estimated quantity and only valid if status indicates ASIL level. Absolute angular quantities are subject to [-PI, PI] limits and error bounds do not wrap around.

For example, linear velocity upper and lower bounds of +1 m/s, -2 m/s respectively indicate that the true velocity is within this range from the current estimate, with corresponding integrity. If the velocity estimated by egomotion is 10 m/s, the bounds translate to a guarantee that the true velocity is between 8 and 11 m/s. In other words, the velocity is at most under estimated by 10/11=~9%, or over estimated by 10/8=25%.

◆ dwEgomotionResult

Instantaneous state estimate.

Note
Validity of data fields indicated by flags in dwEgomotionResultQuality

◆ dwEgomotionResultQuality

Quality of instantaneous state estimate.

See also
dwEgomotionResult

◆ dwEgomotionSensorCharacteristics

Sensor measurement noise characteristics.

◆ dwEgomotionSignalLimitsDwTime

Limits for dwTime_t signal ranges.

◆ dwEgomotionSignalLimitsFloat32

Limits for float32_t signal ranges.

◆ dwEgomotionSignalLimitsFloat64

Limits for float64_t signal ranges.

◆ dwEgomotionSignalLimitsInt16

Limits for int16_t signal ranges.

◆ dwEgomotionSignalLimitsUInt8

Limits for uint8_t signal ranges.

◆ dwEgomotionSpeedMeasurementType

Defines speed measurement types.

◆ dwEgomotionStateParams

Defines egomotion state initialization parameters.

◆ dwEgomotionSteeringMeasurementType

Defines steering measurement types.

◆ dwEgomotionSteeringOffsetEstimatorParameters

◆ dwEgomotionSuspensionModel

Defines egomotion suspension model.

◆ dwEgomotionSuspensionParameters

Suspension model type and parameters.

◆ dwEgomotionSuspensionProperties

◆ dwEgomotionTransformationQuality

Relative transformation validity and uncertainty.

Note
Covariances are provided "as is" for usage in fusion algorithms depending on egomotion estimation but no accuracy claims are made. Review the disclaimer on covariances provided in dwEgomotionUncertainty.

◆ dwEgomotionUncertainty

Instantaneous state uncertainty estimates.

Data in these fields represent the uncertainties of the corresponding fields in dwEgomotionResult. The uncertainties are represented as covariance matrix when appropriate, or in standard deviation around the estimate otherwise. These values are provided "as is" for usage in fusion algorithms depending on egomotion estimation but no accuracy claims are made (see below).

Note
The uncertainties do not represent estimate accuracy, only the precision of the estimate, under the classical filtering assumptions and limitation of the state and models used in internal estimators:
  • error distributions are zero mean
  • error distributions are Gaussian Neither exactly hold in practice, at least not in all cases. Errors that do not fit the zero mean Gaussian distribution might include calibration errors, model inaccuracies and limitations, input signal degradations or outlier measurements. Such errors are unobservable (or the estimator would correct for them) and result in biased error distributions. Covariances are therefore not a suitable signal to assess egomotion accuracy (i.e. “quality”), particularly in safety-relevant context. Use dwEgomotionResultQuality instead.
Units are identical to those used in dwEgomotionResult. Units in covariance matrices are squared.
Rotation is represented as a quaternion; however, here a 3x3 covariance of the equivalent euler angles is given (order: roll, pitch, yaw) in [rad].

◆ dwEgomotionVehicleMovingDirectionDetectorParameters

Vehicle moving direction detection parameters.

Used to inform egomotion on the moving direction of the vehicle.

◆ dwEgomotionVMOParameters

Vehicle motion observer parameters.

◆ dwEgomotionWheelObserverParameters

◆ dwGlobalEgomotionGpsStatus

Holds global egomotion GPS timeout and stuck status information.

◆ dwGlobalEgomotionRelativeDeviation

Global to relative egomotion deviation information.

◆ dwGlobalEgomotionResult

Holds global egomotion state estimate.

◆ dwGlobalEgomotionState

Defines global egomotion state.

◆ dwGlobalEgomotionStateElement

Defines global egomotion state element.

◆ dwGlobalEgomotionUncertainty

Holds global egomotion uncertainty estimate.

◆ dwMotionModel

Defines the motion models.

◆ dwMotionModelMeasurement

Defines motion measurements.

◆ dwYawDisturbanceDetectorParameters

Yaw disturbance detector parameters for HFE integration.

These parameters configure the HFE yaw disturbance detector.

See also
dwHFEYawDisturbDetectorParameters. Defined here to avoid cross-library dependencies. Can be removed once we bundle the HFE yaw disturbance detector together with the egomotion library.

Enumeration Type Documentation

◆ dwEgomotionDataField

Defines flags that indicate validity of corresponding data in dwEgomotionResult and dwEgomotionUncertainty.

Enumerator
DW_EGOMOTION_ROTATION 

indicates validity of rotation,

See also
limitations of selected dwMotionModel
DW_EGOMOTION_LIN_VEL_X 

indicates validity of linearVelocity[0]

DW_EGOMOTION_LIN_VEL_Y 

indicates validity of linearVelocity[1]

DW_EGOMOTION_LIN_VEL_Z 

indicates validity of linearVelocity[2]

DW_EGOMOTION_ANG_VEL_X 

indicates validity of angularVelocity[0]

DW_EGOMOTION_ANG_VEL_Y 

indicates validity of angularVelocity[1]

DW_EGOMOTION_ANG_VEL_Z 

indicates validity of angularVelocity[2]

DW_EGOMOTION_LIN_ACC_X 

indicates validity of linearAcceleration[0]

DW_EGOMOTION_LIN_ACC_Y 

indicates validity of linearAcceleration[1]

DW_EGOMOTION_LIN_ACC_Z 

indicates validity of linearAcceleration[2]

DW_EGOMOTION_ANG_ACC_X 

indicates validity of angularAcceleration[0]

DW_EGOMOTION_ANG_ACC_Y 

indicates validity of angularAcceleration[1]

DW_EGOMOTION_ANG_ACC_Z 

indicates validity of angularAcceleration[2]

DW_EGOMOTION_CURVATURE 

indicates validity of curvature

Definition at line 217 of file EgomotionTypes.h.

◆ dwEgomotionDirectionMode

Vehicle direction detection modes.

Egomotion can estimate the vehicle moving direction from different sources depending on vehicle platform capabilities.

Select DW_EGOMOTION_DIRECTION_FROM_SPEED_SIGN if the wheel tick increments and wheel speeds are signed, indicating forward and reverse driving unambiguously.

Select DW_EGOMOTION_DIRECTION_FROM_WHEEL_DIR_AND_GEAR if the wheel tick increments and wheel speeds are unsigned, such that forward and reverse driving cannot be distinguished from these signals alone.

Select DW_EGOMOTION_DIRECTION_FROM_SPEED_SIGN_AND_GEAR if the wheel tick increments and wheel speeds are signed with ambiguous region around 0 to be resolved based on target gear and current gear signals. dwEgomotionVehicleMovingDirectionDetectorParameters::ticksAmbiguousSpeedThreshold

The default configuration for production platforms is DW_EGOMOTION_DIRECTION_FROM_WHEEL_DIR_AND_GEAR.

Enumerator
DW_EGOMOTION_DIRECTION_FROM_SPEED_SIGN 

Vehicle Moving Direction based on signed wheel encoder information.

DW_EGOMOTION_DIRECTION_FROM_WHEEL_DIR_AND_GEAR 

Vehicle Moving Direction based on unsigned wheel encoder, wheel direction and gear information.

DW_EGOMOTION_DIRECTION_FROM_SPEED_SIGN_AND_GEAR 

Vehicle Moving Direction based on signed wheel encoder and gear information.

DW_EGOMOTION_DIRECTION_COUNT 

Definition at line 124 of file Egomotion2.h.

◆ dwEgomotionGroundSpeedMeasurementTypes

Ground speed measurement types.

Egomotion can estimate vehicle ground speed from different sources depending on vehicle platform capabilities.

The default configuration for production platforms is DW_EGOMOTION_GROUND_SPEED_FROM_WHEEL_TICKS_AND_SPEEDS_BOTH_AXLES.

Enumerator
DW_EGOMOTION_GROUND_SPEED_FROM_WHEEL_SPEEDS_REAR_AXLE 

Ground speed from wheel speeds only rear axle (Wheel observer is disabled)

DW_EGOMOTION_GROUND_SPEED_FROM_WHEEL_SPEEDS_BOTH_AXLES 

Ground speed from wheel speeds only both axle (Wheel observer is disabled)

DW_EGOMOTION_GROUND_SPEED_FROM_WHEEL_TICKS_AND_SPEEDS_REAR_AXLE 

Ground speed from wheel ticks and speeds rear axle (Wheel observer is enabled)

DW_EGOMOTION_GROUND_SPEED_FROM_WHEEL_TICKS_AND_SPEEDS_BOTH_AXLES 

Ground speed from wheel ticks and speeds both axles (Wheel observer is enabled)

DW_DEPRECATED_ENUMERATOR 

Ground speed from signed vehicle linear speed at rear axle center (Wheel observer is disabled)

DW_EGOMOTION_GROUND_SPEED_COUNT 

Definition at line 90 of file Egomotion2.h.

◆ dwEgomotionIMUIdentifier

Defines IMU identifiers.

Enumerator
DW_EGOMOTION_IMU_BASE 

Base IMU used in L2 and L3 products.

DW_EGOMOTION_IMU_HIGH_A 

High IMU (A) used in L3 product.

DW_EGOMOTION_IMU_HIGH_B 

High IMU (B) used in L3 product.

DW_EGOMOTION_IMU_COUNT_MAX 

Max number of IMUs supported.

Invalid value.

Definition at line 104 of file EgomotionTypes.h.

◆ dwEgomotionIntegrity

Egomotion integrity levels.

Non-QM integrity levels are only applicable to vehicle platforms developed for NDAS. No guarantees are made for usage of egomotion as part of non-NDAS DriveWorks SDK.

Non-QM integrity levels are only provided for select egomotion modalities.

See also
dwEgomotionQuality
Enumerator
DW_EGOMOTION_INTEGRITY_INVALID 

Signal is invalid, do not use.

DW_EGOMOTION_INTEGRITY_VALID_QM 

Signal is valid without guarantees (no error bounds provided).

DW_EGOMOTION_INTEGRITY_VALID_A 

Signal is valid and within error bounds with ASIL A guarantee.

DW_EGOMOTION_INTEGRITY_VALID_B 

Signal is valid and within error bounds with ASIL B guarantee.

DW_EGOMOTION_INTEGRITY_VALID_C 

Signal is valid and within error bounds with ASIL C guarantee.

DW_EGOMOTION_INTEGRITY_VALID_D 

Signal is valid and within error bounds with ASIL D guarantee.

Definition at line 246 of file EgomotionTypes.h.

◆ dwEgomotionLinearAccelerationFilterMode

Defines egomotion linear acceleration filter mode.

Enumerator
DW_EGOMOTION_ACC_FILTER_NO_FILTERING 

no filtering of the output linear acceleration

DW_EGOMOTION_ACC_FILTER_SIMPLE 

simple low-pass filtering of the acceleration

Definition at line 199 of file EgomotionTypes.h.

◆ dwEgomotionMeasurementTypes

Measurements used by egomotion.

Enumerator
DW_EGOMOTION_MEASUREMENT_STEERING 
See also
dwVehicleIOASILState frontSteeringAngle
DW_EGOMOTION_MEASUREMENT_SUSPENSION 
See also
dwVehicleIOQMState suspensionLevel
DW_EGOMOTION_MEASUREMENT_ANGULAR_ACCELERATION 
See also
dwIMUFrame turnrateAccel
DW_EGOMOTION_MEASUREMENT_PROPER_ACCELERATION 
See also
dwIMUFrame acceleration
DW_EGOMOTION_MEASUREMENT_ANGULAR_VELOCITY 
See also
dwIMUFrame turnrate
DW_EGOMOTION_MEASUREMENT_LINEAR_GROUND_SPEED 
See also
dwVehicleIOASILState speedESC
DW_EGOMOTION_MEASUREMENT_LINEAR_BODY_SPEED 

Linear body speed.

DW_EGOMOTION_MEASUREMENT_WHEEL_TICKS 
DW_EGOMOTION_MEASUREMENT_WHEEL_SPEEDS 
See also
dwVehicleIOASILState wheelTicks
DW_EGOMOTION_MEASUREMENT_TRAILER_ANGLE 
See also
dwVehicleIOASILState wheelSpeed
DW_EGOMOTION_MEASUREMENT_REAR_STEERING 
See also
dwVehicleIOQMState trailerArticulationAngle
DW_EGOMOTION_MEASUREMENT_TYPES_COUNT 
See also
dwVehicleIOASILState rearWheelAngle

Definition at line 66 of file Egomotion2.h.

◆ dwEgomotionSpeedMeasurementType

Defines speed measurement types.

Enumerator
DW_EGOMOTION_FRONT_SPEED 

Indicates that speed is linear speed [m/s] measured at front wheels (along steering direction).

Steering angle [rad] is used internally to compute longitudinal speed.

  • Positive speed corresponds to a forward motion of the vehicle.
  • Positive steering angle corresponds to a left turn.
Note
: estimation quality is dependent on measurement accuracy, resolution and sampling rate. We recommend the following:
  • speed signal at >=50Hz sampling rate and resolution of 0.02 m/s or higher.
  • steering angle signal at >=50Hz sampling rate and resolution of 0.01 deg or higher.

Provide front speed measurement and steering angle with the dwEgomotion_addVehicleState API where the dwVehicleIOState struct contains speed, frontSteeringAngle, speedTimestamp and steeringTimestamp or with dwEgomotion_addVehicleIOState API where at least one of dwVehicleIOSafetyState, dwVehicleIONonSafetyState or dwVehicleIOActuationFeedback contain valid values of speed, frontSteeringAngle, speedTimestamp and frontSteeringTimestamp.

DW_EGOMOTION_REAR_WHEEL_SPEED 

Indicates that speeds are angular speeds [rad/s] measured at rear wheels.

  • Positive angular speeds correspond to a forward motion of the vehicle.
Note
This mode requires valid dwEgomotionParameters.dwVehicle.wheelRadius otherwise incorrect estimation of the longitudinal speed will be made.
It is expected that both rear wheel speed measurements are not far apart in time, otherwise degradation in estimation quality is expected.
: estimation quality is dependent on measurement accuracy, resolution and sampling rate. We recommend the following:
  • speed signal at >=50Hz sampling rate and resolution of 0.05 rad/s or higher.
: Egomotion supports steered rear axles.

Provide rear wheel speed measurements with the dwEgomotion_addVehicleState API where the dwVehicleIOState struct contains wheelSpeed and wheelSpeedTimestamp or with dwEgomotion_addVehicleIOState API where at least one of dwVehicleIOSafetyState, dwVehicleIONonSafetyState or dwVehicleIOActuationFeedback contain valid values of wheelSpeed and wheelTickTimestamp.

DW_EGOMOTION_REAR_SPEED 

Indicates that speed is linear speed [m/s] measured at rear axle center (along steering direction).

Rear steering angle [rad] given by dwVehicleIOState.rearWheelAngle is used internally to compute longitudinal speed.

  • Positive speed corresponds to a forward motion of the vehicle.
  • Positive steering angle corresponds to a lateral motion towards the left at the rear axle.
Note
: estimation quality is dependent on measurement accuracy, resolution and sampling rate. We recommend the following:
  • speed signal at >=50Hz sampling rate and resolution of 0.02 m/s or higher.

Provide rear speed measurement with the dwEgomotion_addVehicleState API where the dwVehicleIOState struct contains speed, rearWheelAngle and speedTimestamp or with dwEgomotion_addVehicleIOState API where at least one of dwVehicleIOSafetyState, dwVehicleIONonSafetyState or dwVehicleIOActuationFeedback contain valid values for speed, rearWheelAngle and speedTimestamp.

Definition at line 125 of file EgomotionTypes.h.

◆ dwEgomotionSteeringMeasurementType

Defines steering measurement types.

Enumerator
DW_EGOMOTION_FRONT_STEERING 
See also
dwVehicleIOState frontSteeringAngle
DW_EGOMOTION_STEERING_WHEEL_ANGLE 
See also
dwVehicleIOState steeringWheelAngle

Definition at line 190 of file EgomotionTypes.h.

◆ dwEgomotionSuspensionModel

Defines egomotion suspension model.

Enumerator
DW_EGOMOTION_SUSPENSION_RIGID_MODEL 

No suspension model.

Equivalent to perfectly rigid suspension.

DW_EGOMOTION_SUSPENSION_TORSIONAL_SPRING_MODEL 

Models suspension as single-axis damped torsional spring.

Definition at line 208 of file EgomotionTypes.h.

◆ dwMotionModel

Defines the motion models.

Enumerator
DW_EGOMOTION_ODOMETRY 

Given odometry information, estimates motion of the vehicle using a bicycle model.

The following parameters are required for this model:

  • dwEgomotionParameters
    • vehicle
      • wheelbase, mass, inertia3D, frontCorneringStiffness, rearCorneringStiffness, centerOfMassToRearAxle, wheelRadius (1), steeringWheelToSteeringMap (2), maxSteeringWheelAngle (2), frontSteeringOffset (2)
    • speedMeasurementType

This model is capable of providing the following estimates:

Uncertainty estimates are not supported at this time.

DW_EGOMOTION_IMU_ODOMETRY 

Fuses odometry model with IMU measurements to estimate motion of the vehicle.

The following parameters are required for this model:

  • dwEgomotionParameters
    • vehicle
      • wheelRadius (1), steeringWheelToSteeringMap (2), maxSteeringWheelAngle (2), wheelbase (3, 4), mass (3, 4), centerOfMassHeight (3), inertia3D (3), centerOfMassToFrontAxle (4) rearCorneringStiffness (4)
    • imu2rig
    • speedMeasurementType

This model is capable of providing the following estimates:

Uncertainty estimates are provided for all state estimates listed above.

DW_EGOMOTION_VEHICLE_MOTION_OBSERVER 

Egomotion estimation based on IMU and RoV sensors (wheel encoders, steering, suspension, drive status, ...) targeted for NDAS production.

Not officially supported as part of DriveWorks SDK, backwards compatibility and deprecation process will not be followed. See disclaimer in dw/egomotion/2.0/Egomotion2.h for more information.

Definition at line 37 of file EgomotionTypes.h.

◆ dwMotionModelMeasurement

Defines motion measurements.

Enumerator
DW_EGOMOTION_MEASUREMENT_VELOCITY 

Vehicle velocity [m/s].

DW_EGOMOTION_MEASUREMENT_STEERINGANGLE 

Steering angle [rad].

DW_EGOMOTION_MEASUREMENT_STEERINGWHEELANGLE 

Steering wheel angle [rad].

Definition at line 115 of file EgomotionTypes.h.

Function Documentation

◆ dwEgomotion2_getAccelerometerBias()

DW_API_PUBLIC dwStatus dwEgomotion2_getAccelerometerBias ( dwVector3f *  accBias,
dwEgomotionConstHandle_t  obj 
)

Get estimated accelerometer bias of the BASE IMU.

See also
dwEgomotionIMUIdentifier.
Parameters
[in,out]accBiasPointer to dwVector3f to be filled with accelerometer biases [m/s^2].
[in]objEgomotion handle.
Returns
DW_INVALID_ARGUMENT - if the provided egomotion handle is invalid.
DW_NOT_SUPPORTED - if the given egomotion handle does not support the request
DW_NOT_READY - if the online estimation is not ready yet but an initial bias guess is available
DW_NOT_AVAILABLE - if the online estimation is not ready yet and no initial bias guess is available
DW_SUCCESS - if online accelerometer bias estimation has accepted a value
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion2_getAccelerometerBiasByIndex()

DW_API_PUBLIC dwStatus dwEgomotion2_getAccelerometerBiasByIndex ( dwVector3f *  accBias,
uint32_t const  sensorIndex,
dwEgomotionConstHandle_t  obj 
)

Get estimated accelerometer bias of a specific IMU.

Parameters
[in,out]accBiasPointer to dwVector3f to be filled with accelerometer biases [m/s^2].
[in]sensorIndexIdentifier of IMU to get bias for
[in]objEgomotion handle.
Returns
DW_INVALID_ARGUMENT - if the provided egomotion handle is invalid or the sensorIndex is not in use.
DW_NOT_SUPPORTED - if the given egomotion handle does not support the request
DW_NOT_READY - if the online estimation is not ready yet but an initial bias guess is available
DW_NOT_AVAILABLE - if the online estimation is not ready yet and no initial bias guess is available
DW_SUCCESS - if online accelerometer bias estimation has accepted a value
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion2_getAccelerometerBiasExt()

DW_API_PUBLIC dwStatus dwEgomotion2_getAccelerometerBiasExt ( dwEgomotionCalibrationStatus *  status,
dwEgomotionCalibrationManeuverArray *  maneuvers,
dwEgomotionCalibrationProperties *  properties,
dwEgomotionConstHandle_t  obj 
)

Get advanced accelerometer bias estimator status information for Base IMU,.

See also
dwEgomotionIMUIdentifier.
Parameters
[in,out]statusPointer to the current status of the accelerometer bias calibration to be filled out.
[in,out]maneuversPointer to an array of maneuvers of type dwCalibrationManeuverArray to be filled out.
[in,out]propertiesPointer to the properties of the accelerometer bias calibration procedure to be filled out.
[in]objEgomotion handle.
Returns
DW_INVALID_ARGUMENT - if the provided egomotion handle is invalid.
DW_NOT_SUPPORTED - if the given egomotion handle does not support the request.
DW_SUCCESS - if the status parameters have been queried successfully.
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion2_getAccelerometerBiasExtByIndex()

DW_API_PUBLIC dwStatus dwEgomotion2_getAccelerometerBiasExtByIndex ( dwEgomotionCalibrationStatus *  status,
dwEgomotionCalibrationManeuverArray *  maneuvers,
dwEgomotionCalibrationProperties *  properties,
uint32_t const  sensorIndex,
dwEgomotionConstHandle_t  obj 
)

Get advanced accelerometer bias estimator status information for specific IMU.

Parameters
[in,out]statusPointer to the current status of the accelerometer bias calibration to be filled out.
[in,out]maneuversPointer to an array of maneuvers of type dwCalibrationManeuverArray to be filled out.
[in,out]propertiesPointer to the properties of the accelerometer bias calibration procedure to be filled out.
[in]sensorIndexSensor index of IMU.
[in]objEgomotion handle.
Returns
DW_INVALID_ARGUMENT - if the provided egomotion handle is invalid or the sensorIndex is not in use.
DW_NOT_SUPPORTED - if the given egomotion handle does not support the request.
DW_SUCCESS - if the status parameters have been queried successfully.
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion2_getErrorIdDisableMask()

dwStatus dwEgomotion2_getErrorIdDisableMask ( bool  disabledErrorIdMask[DW_EGOMOTION_ERROR_ID_COUNT],
char8_t const *const  disabledErrorIds[DW_EGOMOTION_ERROR_ID_COUNT] 
)

Convert a list of ErrorId names to a mask representing their status.

Parameters
disabledErrorIdMaskOutput bools indicating for each ErrorId whether the ErrorId should be enabled. Set by this function.
disabledErrorIdsArray of string representations of ErrorIds to disable.
Returns
dwStatus Will indicate DW_INVALID_ARGUMENT if unknown error id is specified in disabledErrorIds.
Note
Does not clear the output array before writing. You can consider this function as OR'ing the disabling of the specified IDs.

◆ dwEgomotion2_getFrontSteeringAngleOffset()

DW_API_PUBLIC dwStatus dwEgomotion2_getFrontSteeringAngleOffset ( float32_t *  steeringOffset,
dwEgomotionConstHandle_t  obj 
)

Get estimated front steering angle offset.

The offset is to be used to compentate for the steering angle sensor offset. True steering angle = measured steering angle - offset.

Parameters
[in,out]steeringOffsetPointer to float to be filled with steering offset [rad].
[in]objEgomotion handle.
Returns
DW_INVALID_ARGUMENT - if the provided egomotion handle is invalid.
DW_NOT_SUPPORTED - if the given egomotion handle does not support the request
DW_NOT_READY - if the online estimation is not ready yet but an initial guess is available
DW_NOT_AVAILABLE - if the online estimation is not ready yet and no initial guess is available
DW_SUCCESS - if online estimation has accepted a value
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion2_getFrontSteeringAngleOffsetExt()

DW_API_PUBLIC dwStatus dwEgomotion2_getFrontSteeringAngleOffsetExt ( dwEgomotionCalibrationStatus *  status,
dwEgomotionCalibrationManeuverArray *  maneuvers,
dwEgomotionCalibrationProperties *  properties,
dwEgomotionConstHandle_t  obj 
)

Get advanced steering offset estimator status information.

Parameters
[in,out]statusPointer to the current status of the steering offfset calibration to be filled out.
[in,out]maneuversPointer to an array of maneuvers of type dwCalibrationManeuverArray to be filled out.
[in,out]propertiesPointer to the properties of the steering offfset calibration procedure to be filled out.
[in]objEgomotion handle.
Returns
DW_INVALID_ARGUMENT - if the provided egomotion handle is invalid.
DW_NOT_SUPPORTED - if the given egomotion handle does not support the request.
DW_SUCCESS - if the status parameters have been queried successfully.
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion2_initDefaultParams()

DW_API_PUBLIC dwStatus dwEgomotion2_initDefaultParams ( dwEgomotionParameters2 *  params)

Initializes the egomotion parameters to sane defaults applicable to most vehicles.

This API does not set the required vehicle-specific parameters which must be provided separately.

See also dwEgomotion2_initParamsFromRig

Parameters
[in,out]paramsA pointer to the egomotion parameters to be filled out.
Returns
DW_INVALID_ARGUMENT - if provided arguments are invalid.
DW_SUCCESS - if the egomotion parameters have been set successfully.
API Group
  • Init: Yes
  • Runtime: No
  • De-Init: No

◆ dwEgomotion2_initialize()

DW_API_PUBLIC dwStatus dwEgomotion2_initialize ( dwEgomotionHandle_t *const  obj,
dwEgomotionParameters2 const *  params,
dwContextHandle_t const  ctx 
)

Initializes the egomotion 2.0 module.

Instantiates the subfunctions composing the overall module and allocates memory for their operation. Configuration of the module is provided by the params argument. Default parameters can be obtained from the dwEgomotion2_initParamsFromRig function.

Parameters
[in,out]objA pointer to the egomotion handle to be set for the created module.
[in]paramsA pointer to the configuration parameters of the module.
[in]ctxSpecifies the handler to the context under which the Egomotion module is created.
Returns
DW_INVALID_ARGUMENT - if provided egomotion handle or parameters are invalid.
DW_INVALID_HANDLE - if the provided DriveWorks context handle is invalid.
DW_SUCCESS - if the initialization is successful.
API Group
  • Init: Yes
  • Runtime: No
  • De-Init: No

◆ 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.

This empty state history instance can be used to deserialize from a binary representation of the state. After deserialization state can be queried with state API for it's content. The state can contain internally a history of up-to passed amount of elements.

Parameters
[out]stateHandle to be set with pointer to created empty state.
[in]historySizeState history size (maximum capacity). If left 0, a default size of 1000 is used.
[in]ctxHandle of the context.
Returns
DW_INVALID_ARGUMENT - if given state handle is null
DW_INVALID_HANDLE - if context handle is invalid
DW_SUCCESS - if the call was successful.
Note
Ownership of the state goes back to caller. The state has to be released with dwEgomotionState_release.
If passed historySize is smaller than the egomotion internal history capacity, any retrieval of the state with dwEgomotion_getState will fill out this state's only with as much data as can fit, dropping oldest entries. This in turn would mean that calls to dwEgomotionState_computeRelativeTransformation might not succeed if requested for timestamp outside of the covered history.
API Group
  • Init: Yes
  • Runtime: No
  • De-Init: No

◆ dwEgomotion2_initParamsFromRig()

DW_API_PUBLIC dwStatus dwEgomotion2_initParamsFromRig ( dwEgomotionParameters2 *  params,
dwConstRigHandle_t  rigConfiguration,
char const *  imu1Name,
char const *  imu2Name,
char const *  imu3Name 
)

Initializes the egomotion parameters to sane defaults given vehicle configuration.

This API is used to initialize parameters for egomotion 2.0.

Parameters
[in,out]paramsA pointer to the egomotion parameters to be filled out.
[in]rigConfigurationA pointer to the vehicle rig configuration.
[in]imu1NameName of first IMU sensor as it appears in rig configuration.
[in]imu2NameName of second IMU sensor as it appears in rig configuration. Optional, can be left null (1) (2).
[in]imu3NameName of third IMU sensor as it appears in rig configuration. Optional, can be left null (1).
Note
(1) will default to egomotion parameters section in rig configuration.
(2) cannot be skipped if imu3Name is specified.
Returns
DW_INVALID_ARGUMENT - if provided arguments are invalid.
DW_FILE_INVALID - if the provided rig is invalid.
DW_SUCCESS - if the egomotion parameters have been set successfully.
API Group
  • Init: Yes
  • Runtime: No
  • De-Init: No

◆ dwEgomotion2_initParamsFromRigByIndex()

DW_API_PUBLIC dwStatus dwEgomotion2_initParamsFromRigByIndex ( dwEgomotionParameters2 *  params,
dwConstRigHandle_t  rigConfiguration,
uint32_t const  imu1Index,
uint32_t const  imu2Index,
uint32_t const  imu3Index 
)

Initializes the egomotion parameters to sane defaults given vehicle configuration.

This API is used to initialize parameters for egomotion 2.0.

Parameters
[in,out]paramsA pointer to the egomotion parameters to be filled out.
[in]rigConfigurationA pointer to the vehicle rig configuration.
[in]imu1IndexIndex of first IMU sensor as it appears in rig configuration.
[in]imu2IndexIndex of second IMU sensor as it appears in rig configuration. Optional, can be set to UINT32_MAX (1) (2).
[in]imu3IndexIndex of third IMU sensor as it appears in rig configuration. Optional, can be set to UINT32_MAX (1).
Note
(1) will default to egomotion parameters section in rig configuration.
(2) cannot be skipped if imu3Index is specified.
Returns
DW_INVALID_ARGUMENT - if provided arguments are invalid.
DW_FILE_INVALID - if the provided rig is invalid.
DW_SUCCESS - if the egomotion parameters have been set successfully.
API Group
  • Init: Yes
  • Runtime: No
  • De-Init: No

◆ dwEgomotion2_updateIMUExtrinsics()

DW_API_PUBLIC dwStatus dwEgomotion2_updateIMUExtrinsics ( dwEgomotionCalibratedExtrinsics const *const  imuToRig,
dwEgomotionHandle_t  obj 
)

Update IMU extrinsics for Base IMU,.

See also
dwEgomotionIMUIdentifier.
Parameters
[in]imuToRigNew imu extrinsics with validity information.
[in]objEgomotion handle.
Returns
DW_INVALID_ARGUMENT - if the provided egomotion handle is invalid.
DW_NOT_SUPPORTED - if the given egomotion handle does not support the request.
DW_SUCCESS - if the imu extrinsics were successfully added.
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion2_updateIMUExtrinsicsByIndex()

DW_API_PUBLIC dwStatus dwEgomotion2_updateIMUExtrinsicsByIndex ( dwEgomotionCalibratedExtrinsics const *const  imuToRig,
uint32_t const  sensorIndex,
dwEgomotionHandle_t  obj 
)

Update IMU extrinsics for a specific IMU.

Parameters
[in]imuToRigNew imu extrinsics with validity information.
[in]sensorIndexSensor index of IMU the extrinsics apply to.
[in]objEgomotion handle.
Returns
DW_INVALID_ARGUMENT - if the provided egomotion handle is invalid or the sensorIndex is not in use.
DW_NOT_SUPPORTED - if the given egomotion handle does not support the request.
DW_SUCCESS - if the imu extrinsics were successfully added.
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion2_updateWheelRadii()

DW_API_PUBLIC dwStatus dwEgomotion2_updateWheelRadii ( dwEgomotionCalibratedWheelRadii const *const  wheelRadii,
dwEgomotionHandle_t  obj 
)

Update wheel radii.

Parameters
[in]wheelRadiiNew wheel radii with validity information.
[in]objEgomotion handle.
Returns
DW_INVALID_ARGUMENT - if the provided egomotion handle is invalid.
DW_NOT_SUPPORTED - if the given egomotion handle does not support the request.
DW_SUCCESS - if the wheel radii were successfully added.
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion_addIMUMeasurement()

DW_API_PUBLIC dwStatus dwEgomotion_addIMUMeasurement ( const dwIMUFrame *  imu,
dwEgomotionHandle_t  obj 
)

Adds an IMU frame to the egomotion module for the BASE IMU.

See also
dwEgomotionIMUIdentifier.

The IMU frame shall contain either linear acceleration or angular velocity measurements for X, Y and Z axes or both at once; the frame will be discarded otherwise.

Egomotion might generate a new estimate on addition of IMU frame, see dwEgomotionParameters::automaticUpdate.

Parameters
[in]imuIMU measurement.
[in]objEgomotion handle.
Returns
DW_INVALID_ARGUMENT - if timestamp is not greater than last measurement timestamp, or given frame is invalid.
DW_INVALID_HANDLE - if the given egomotion handle is invalid.
DW_NOT_SUPPORTED - if the given measurement is not supported by the egomotion model.
DW_SUCCESS - if the IMU data has been passed to egomotion successfully.
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion_addIMUMeasurementByIndex()

DW_API_PUBLIC dwStatus dwEgomotion_addIMUMeasurementByIndex ( const dwIMUFrame *  imu,
uint32_t const  sensorIndex,
dwEgomotionHandle_t  obj 
)

Adds an IMU frame to the egomotion module for a specific IMU.

The IMU frame shall contain either linear acceleration or angular velocity measurements for X, Y and Z axes or both at once; the frame will be discarded otherwise.

Egomotion might generate a new estimate on addition of IMU frame, see dwEgomotionParameters::automaticUpdate.

Parameters
[in]imuIMU measurement.
[in]sensorIndexIdentifier of IMU for measurement.
[in]objEgomotion handle.
Returns
DW_INVALID_ARGUMENT - if timestamp is not greater than last measurement timestamp, the given sensor index is not in use or given frame is invalid.
DW_INVALID_HANDLE - if the given egomotion handle is invalid.
DW_NOT_SUPPORTED - if the given measurement is not supported by the egomotion model.
DW_SUCCESS - if the IMU data has been passed to egomotion successfully.
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion_addVehicleIOState()

DW_API_PUBLIC dwStatus dwEgomotion_addVehicleIOState ( dwVehicleIOSafetyState const *  safeState,
dwVehicleIONonSafetyState const *  nonSafeState,
dwVehicleIOActuationFeedback const *  actuationFeedback,
dwEgomotionHandle_t  obj 
)

Notifies the egomotion module of a changed vehicle state.

In case relevant new information is contained in this state then it gets consumed, otherwise state is ignored.

Signals consumed depend on the selected egomotion motion model,

See also
dwMotionModel.

When using DW_EGOMOTION_ODOMETRY, the following valid signals in at least one of the structs dwVehicleIOSafetyState, dwVehicleIONonSafetyState or dwVehicleIOActuationFeedback are required:

When using DW_EGOMOTION_IMU_ODOMETRY, the following valid signals in at least one of the structs dwVehicleIOSafetyState, dwVehicleIONonSafetyState or dwVehicleIOActuationFeedback are required:

Parameters
[in]safeStateNew dwVehicleIOSafetyState which contains potentially new information for egomotion consumption
[in]nonSafeStateNew dwVehicleIONonSafetyState which contains potentially new information for egomotion consumption
[in]actuationFeedbackNew dwVehicleIOActuationFeedback which contains potentially new information for egomotion consumption
[in]objEgomotion handle.
Returns
DW_INVALID_HANDLE - if provided, the egomotion handle is invalid.
DW_NOT_SUPPORTED - if underlying egomotion handle does not support vehicle state.
DW_SUCCESS - if vehicle state has been passed to egomotion successfully.
Note
Deprecation warning: This method has been replaced with dwEgomotion_addVIOState, and will be removed in next major release.
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion_addVehicleState()

DW_API_PUBLIC dwStatus dwEgomotion_addVehicleState ( const dwVehicleIOState *  state,
dwEgomotionHandle_t  obj 
)

Notifies the egomotion module of a changed vehicle state.

In case relevant new information is contained in this state then it gets consumed, otherwise state is ignored.

Signals consumed depend on the selected egomotion motion model,

See also
dwMotionModel.

When using DW_EGOMOTION_ODOMETRY:

When using DW_EGOMOTION_IMU_ODOMETRY:

Parameters
[in]stateNew VehicleIOState which contains potentially new information for egomotion consumption
[in]objEgomotion handle.
Returns
DW_INVALID_HANDLE - if provided, the egomotion handle is invalid.
DW_NOT_SUPPORTED - if underlying egomotion handle does not support vehicle state.
DW_SUCCESS - if vehicleIOState has been consumed successfully.
Note
Deprecation warning: This method has been replaced with dwEgomotion_addVIOState, and will be removed in next major release.
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion_addVIOState()

DW_API_PUBLIC dwStatus dwEgomotion_addVIOState ( dwVehicleIOASILState const *  asilState,
dwVehicleIOQMState const *  qmState,
dwEgomotionHandle_t  obj 
)

Notifies the egomotion module of a changed vehicle state.

In case relevant new information is contained in this state then it gets consumed, otherwise state is ignored.

Signals consumed depend on the selected egomotion motion model,

See also
dwMotionModel.

When using DW_EGOMOTION_ODOMETRY, the following valid signals in at least one of the structs dwVehicleIOQMState, dwVehicleIOASILState are required:

When using DW_EGOMOTION_IMU_ODOMETRY, the following valid signals in at least one of the structs dwVehicleIOQMState, dwVehicleIOASILState are required:

Parameters
[in]asilStateNew dwVehicleIOASILState which contains potentially new information for egomotion consumption
[in]qmStateNew dwVehicleIOQMState which contains potentially new information for egomotion consumption
[in]objEgomotion handle.
Returns
DW_INVALID_HANDLE - if provided, the egomotion handle is invalid.
DW_NOT_SUPPORTED - if underlying egomotion handle does not support vehicle state.
DW_SUCCESS - if vehicle state has been passed to egomotion successfully.
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion_applyRelativeTransformation()

DW_API_PUBLIC dwStatus dwEgomotion_applyRelativeTransformation ( dwTransformation3f *  vehicleToWorldAtB,
const dwTransformation3f *  vehicleAToB,
const dwTransformation3f *  vehicleToWorldAtA 
)

Applies the estimated relative motion as returned by dwEgomotion_computeRelativeTransformation to a given vehicle pose.

Parameters
[out]vehicleToWorldAtBTransformation to be filled with pose of the vehicle in world at time B.
[in]vehicleAToBTransformation providing motion of vehicle from time A to time B.
[in]vehicleToWorldAtATransformation providing pose of the vehicle in world at time A.
Returns
DW_INVALID_ARGUMENT - if any of the given arguments is nullptr
DW_SUCCESS - if the call was successful.
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion_computeBodyTransformation()

DW_API_PUBLIC dwStatus dwEgomotion_computeBodyTransformation ( dwTransformation3f *const  transformationAToB,
dwEgomotionTransformationQuality *const  quality,
dwTime_t const  timestamp,
dwCoordinateSystem const  coordinateSystemA,
dwCoordinateSystem const  coordinateSystemB,
dwEgomotionConstHandle_t const  obj 
)

Compute the transformation between two coordinate systems at a specific timestamp and the uncertainty of this transform.

Parameters
[out]transformationAToBTransformation mapping a point in coordinate system A to a point in coordinate system B.
[out]qualityStructure to be filled with quality of transformation (optional, ignored if nullptr provided).
[in]timestampTimestamp for which to get transformation [us].
[in]coordinateSystemACoordinate system A.
[in]coordinateSystemBCoordinate system B.
[in]objEgomotion handle.
Note
quality estimates are not supported at this time and are left unpopulated.
Returns
DW_NOT_AVAILABLE - if the requested timestamp is too far into the past or egomotion modality doesn't provide an estimate for the selected coordinate systems.
DW_NOT_READY - if egomotion has not yet received enough data to initialize.
DW_NOT_SUPPORTED - if any coordinate system is not supported by any egomotion.
DW_INVALID_ARGUMENT - if any required argument is invalid.
DW_INVALID_HANDLE - if the provided egomotion handle invalid.
DW_SUCCESS
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion_computeRelativeTransformation()

DW_API_PUBLIC dwStatus dwEgomotion_computeRelativeTransformation ( dwTransformation3f *  poseAtoB,
dwEgomotionTransformationQuality *  quality,
dwTime_t  timestamp_a,
dwTime_t  timestamp_b,
dwEgomotionConstHandle_t  obj 
)

Computes the relative transformation between two timestamps and the uncertainty of this transform.

Parameters
[out]poseAtoBTransform to be filled with transformation mapping a point at time a to a point at time b.
[out]qualityStructure to be filled with quality of transformation (optional, ignored if nullptr provided).
[in]timestamp_aTimestamp corresponding to beginning of transformation [us].
[in]timestamp_bTimestamp corresponding to end of transformation [us].
[in]objEgomotion handle.
Note
validity of uncertainty estimates is indicated by dwEgomotionTransformationQuality::valid
uncertainty estimates are currently only supported by DW_IMU_ODOMETRY motion model.
Returns
DW_INVALID_ARGUMENT - if any required argument is invalid.
DW_INVALID_HANDLE - if the given egomotion handle is invalid.
DW_NOT_AVAILABLE - if requested timestamps are outside of available range (
See also
dwEgomotion_estimate).
DW_NOT_READY - if egomotion has not yet received enough data to initialize.
DW_SUCCESS - if the computation was successful.
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion_computeSteeringAngleFromIMU()

DW_API_PUBLIC dwStatus dwEgomotion_computeSteeringAngleFromIMU ( float32_t *  steeringAngle,
float32_t *  inverseSteeringR,
const dwIMUFrame *  imuMeasurement,
dwEgomotionConstHandle_t  obj 
)

Computes steering angle of the vehicle based on IMU measurement.

The computation will take the yaw rate measurement from the IMU and combine it with currently estimated speed and wheel base. Speed used for estimation will be the reported by dwEgomotion_getEstimation.

Parameters
[out]steeringAngleSteering angle to be set to estimation from imu yaw rate (can be null, in which case it will not be set) [rad].
[out]inverseSteeringRInverse radius to be set to arc driven by the vehicle. (can be null, in which case it will not be filled) [1/m].
[in]imuMeasurementIMU measurement with IMU measured in vehicle coordinate system.
[in]objEgomotion handle.
Returns
DW_INVALID_ARGUMENT - if any of the provided pointer arguments is nullptr DW_INVALID_HANDLE - if the given egomotion handle is invalid.
DW_NOT_AVAILABLE - if there is currently no estimation available
DW_SUCCESS - if the call was successful.
Note
Depending on the underlying model the estimation might differ. Default implementation is to output steering angle and inverse radius as derived using bicycle model.
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion_estimate()

DW_API_PUBLIC dwStatus dwEgomotion_estimate ( dwEgomotionResult *  pose,
dwEgomotionUncertainty *  uncertainty,
dwTime_t  timestamp_us,
dwEgomotionConstHandle_t  obj 
)

Estimates the state for a given timestamp.

This method does not modify internal state and can only be used to extrapolate motion into the future or interpolate motion between estimates the past.

Parameters
[out]poseStructure to be filled with estimate state.
[out]uncertaintyStructure to be filled with uncertainties. Can be nullptr if not used.
[in]timestamp_usTimestamp to estimate state for [us].
[in]objEgomotion handle.
Returns
DW_NOT_AVAILABLE - if requested timestamp is too far from available estimates.
DW_NOT_READY - if egomotion has not yet received enough data to initialize.
DW_INVALID_HANDLE - if the given egomotion handle is invalid.
DW_SUCCESS - if the desired state has been provided successfully.
Note
Interpolation into the past can only happen within the available history range.
Interpolation interval is limited to 0.5 seconds, if interval between two successive poses is larger, the function will return DW_NOT_AVAILABLE.
Extrapolation into the future is limited to 0.5 seconds and the function will return DW_NOT_AVAILABLE if the extrapolation interval is larger.
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion_getEstimation()

DW_API_PUBLIC dwStatus dwEgomotion_getEstimation ( dwEgomotionResult *  result,
dwEgomotionConstHandle_t  obj 
)

Gets the latest state estimate.

Parameters
[out]resultStructure to be filled with latest state estimate.
[in]objEgomotion handle.
Returns
DW_INVALID_ARGUMENT - if the provided pointer is nullptr.
DW_INVALID_HANDLE - if the given egomotion handle is invalid.
DW_NOT_READY - if egomotion has not yet received enough data to initialize.
DW_SUCCESS - if the estimation has been provided successfully.
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion_getEstimationTimestamp()

DW_API_PUBLIC dwStatus dwEgomotion_getEstimationTimestamp ( dwTime_t *  timestamp,
dwEgomotionConstHandle_t  obj 
)

Gets the timestamp of the latest state estimate.

The timestamp will be updated after each egomotion filter update.

Parameters
[out]timestampTimestamp to be set with latest available state estimate timestamp [us].
[in]objEgomotion handle.
Returns
DW_INVALID_ARGUMENT - if the provided timestamp pointer is nullptr.
DW_INVALID_HANDLE - if the given egomotion handle is invalid.
DW_NOT_READY - if egomotion has not yet received enough data to initialize.
DW_SUCCESS - if the timestamp has been provided successfully
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion_getGyroscopeBias()

DW_API_PUBLIC dwStatus dwEgomotion_getGyroscopeBias ( dwVector3f *  gyroBias,
dwEgomotionConstHandle_t  obj 
)

Get estimated gyroscope bias of the BASE IMU.

See also
dwEgomotionIMUIdentifier.
Parameters
[out]gyroBiasVector to be filled with gyroscope biases [rad/s].
[in]objEgomotion handle.
Returns
DW_INVALID_ARGUMENT - if the provided egomotion handle is invalid.
DW_NOT_SUPPORTED - if the given egomotion handle does not support the request
DW_NOT_READY - if the online estimation is not ready yet but an initial bias guess is available
DW_NOT_AVAILABLE - if the online estimation is not ready yet and no initial bias guess is available
DW_SUCCESS - if online gyroscope bias estimation has accepted a value
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion_getGyroscopeBiasByIndex()

DW_API_PUBLIC dwStatus dwEgomotion_getGyroscopeBiasByIndex ( dwVector3f *  gyroBias,
uint32_t const  sensorIndex,
dwEgomotionConstHandle_t  obj 
)

Get estimated gyroscope bias of specific IMU.

Parameters
[out]gyroBiasVector to be filled with gyroscope biases [rad/s].
[in]sensorIndexIMU sensor index.
[in]objEgomotion handle.
Returns
DW_INVALID_ARGUMENT - if the provided egomotion handle is invalid or the sensorIndex is not in use.
DW_NOT_SUPPORTED - if the given egomotion handle does not support the request
DW_NOT_READY - if the online estimation is not ready yet but an initial bias guess is available
DW_NOT_AVAILABLE - if the online estimation is not ready yet and no initial bias guess is available
DW_SUCCESS - if online gyroscope bias estimation has accepted a value
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion_getHistoryElement()

DW_API_PUBLIC dwStatus dwEgomotion_getHistoryElement ( dwEgomotionResult *  pose,
dwEgomotionUncertainty *  uncertainty,
size_t  index,
dwEgomotionConstHandle_t  obj 
)

Returns an element from the motion history that is currently available.

Parameters
[out]poseStructure to be filled with state estimate at the requested index in history (can be null, in which case it will not be filled).
[out]uncertaintyStructure to be filled with uncertainty at the requested index in history (can be null, in which case it will not be filled).
[in]indexIndex into the history, in the range [0; dwEgomotion_getHistorySize ), with 0 being latest estimate and last element pointing to oldest estimate.
[in]objEgomotion handle.
Returns
DW_INVALID_HANDLE - if the egomotion handle is invalid
DW_INVALID_ARGUMENT - if the index is outside of available history
DW_SUCCESS- if the call was successful.
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion_getHistorySize()

DW_API_PUBLIC dwStatus dwEgomotion_getHistorySize ( size_t *  size,
dwEgomotionConstHandle_t  obj 
)

Returns the number of elements currently stored in the history.

Note
the history size is always lower than or equal to the history capacity, which is set at initialization.
Parameters
[out]sizeInteger to be set with the number of elements in the history.
[in]objEgomotion handle.
Returns
DW_INVALID_ARGUMENT - if the provided pointer is nullptr.
DW_INVALID_HANDLE - if the given egomotion handle is invalid.
DW_SUCCESS - if the call was successful.
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion_getMotionModel()

DW_API_PUBLIC dwStatus dwEgomotion_getMotionModel ( dwMotionModel *  model,
dwEgomotionConstHandle_t  obj 
)

Returns the type of the motion model used.

Parameters
[out]modeldwMotionModel to be set with the motion model type used by instance specified by the handle.
[in]objEgomotion handle.
Returns
DW_INVALID_ARGUMENT - if the provided pointer is nullptr.
DW_INVALID_HANDLE - if the given egomotion handle is invalid.
DW_SUCCESS if the call was successful.
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion_getUncertainty()

DW_API_PUBLIC dwStatus dwEgomotion_getUncertainty ( dwEgomotionUncertainty *  result,
dwEgomotionConstHandle_t  obj 
)

Gets the latest state estimate uncertainties.

Parameters
[out]resultStructure to be filled with latest uncertainties.
[in]objEgomotion handle.
Returns
DW_INVALID_ARGUMENT - if the provided pointer is nullptr.
DW_INVALID_HANDLE - if the given egomotion handle is invalid.
DW_NOT_READY - if egomotion has not yet received enough data to initialize.
DW_SUCCESS - if the uncertainty has been provided successfully.
Note
Not all values do have valid uncertainties. Check dwEgomotionUncertainty.validFlags.
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion_hasEstimation()

DW_API_PUBLIC dwStatus dwEgomotion_hasEstimation ( bool *  result,
dwEgomotionConstHandle_t  obj 
)

Check whether estimation is available.

Parameters
[out]resultBoolean to be set with estimation availablity.
[in]objEgomotion handle.
Returns
DW_INVALID_ARGUMENT - if the provided pointer is nullptr.
DW_INVALID_HANDLE - if the given egomotion handle is invalid.
DW_SUCCESS - if the operation was successful.
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion_initialize()

DW_API_PUBLIC dwStatus dwEgomotion_initialize ( dwEgomotionHandle_t *  obj,
const dwEgomotionParameters *  params,
dwContextHandle_t  ctx 
)

Initializes the egomotion module.

Configuration of the module is provided by the params argument. Default parameters can be obtained from the dwEgomotion_initParamsFromRig function.

Parameters
[out]objHandle to be set with pointer to created module.
[in]paramsA pointer to the configuration parameters of the module.
[in]ctxSpecifies the handler to the context under which the Egomotion module is created.
Returns
DW_INVALID_ARGUMENT - if provided egomotion handle or parameters are invalid.
DW_INVALID_HANDLE - if the provided DriveWorks context handle is invalid.
DW_SUCCESS - if module has been initialized successfully.
API Group
  • Init: Yes
  • Runtime: No
  • De-Init: No

◆ dwEgomotion_initParamsFromRig()

DW_API_PUBLIC dwStatus dwEgomotion_initParamsFromRig ( dwEgomotionParameters *  params,
dwConstRigHandle_t  rigConfiguration,
const char *  imuSensorName,
const char *  vehicleSensorName 
)

Initialize egomotion parameters from a provided RigConfiguration.

This will read out vehicle as well as all relevant sensor parameters and apply them on top of default egomotion parameters.

Parameters
[out]paramsStructure to be filled out with vehicle and sensor parameters.
[in]rigConfigurationHandle to a rig configuration to retrieve parameters from.
[in]imuSensorNamename of the IMU sensor to be used (optional, can be null).
[in]vehicleSensorNamename of the vehicle sensor to be used (optional, can be null).
Returns
DW_INVALID_ARGUMENT - if provided params pointer or rig handle are invalid
DW_FILE_INVALID - if provided sensor could not be found in the rig config
DW_SUCCESS - if parameters have been initialized successfully.
Note
Clears any existing parameters set in params.
If a sensor name is null, no sensor specific parameters will be extracted from the configuration for this sensor.
Sets motionModel based on available sensor if passed in as 0; DW_EGOMOTION_IMU_ODOMETRY if IMU sensor is present, DW_EGOMOTION_ODOMETRY otherwise.
Following parameters are extracted from the rig configuration: CAN sensor:
API Group
  • Init: Yes
  • Runtime: No
  • De-Init: No

◆ dwEgomotion_initParamsFromRigByIndex()

DW_API_PUBLIC dwStatus dwEgomotion_initParamsFromRigByIndex ( dwEgomotionParameters *  params,
dwConstRigHandle_t  rigConfiguration,
uint32_t  imuSensorIdx,
uint32_t  vehicleSensorIdx 
)

Same as dwEgomotion_initParamsFromRig however uses sensor indices in rigConfiguration instead of their names.

Parameters
[out]paramsStructure to be filled out with vehicle and sensor parameters.
[in]rigConfigurationHandle to a rig configuration to retrieve parameters from
[in]imuSensorIdxIndex of the IMU sensor to be retrieved (optional, can be (uint32_t)-1)
[in]vehicleSensorIdxIndex of the vehicle sensor to be retrieved (optional, can be (uint32_t)-1)
Note
Clears any existing parameters set in params.
Sets motionModel based on available sensor if passed in as 0; DW_EGOMOTION_IMU_ODOMETRY if IMU sensor is present, DW_EGOMOTION_ODOMETRY otherwise.
Returns
DW_INVALID_ARGUMENT - if provided params pointer or rig handle are invalid
DW_FILE_INVALID - if provided sensor could not be found in the rig config
DW_SUCCESS - if parameters have been initialized successfully.
API Group
  • Init: Yes
  • Runtime: No
  • De-Init: No

◆ dwEgomotion_release()

DW_API_PUBLIC dwStatus dwEgomotion_release ( dwEgomotionHandle_t  obj)

Releases the egomotion module.

Note
This method renders the handle unusable.
Parameters
[in]objEgomotion handle to be released.
Returns
DW_INVALID_HANDLE - if the provided egomotion handle is invalid.
DW_SUCCESS - if the egomotion module has been released successfully.
API Group
  • Init: Yes
  • Runtime: No
  • De-Init: Yes

◆ dwEgomotion_reset()

DW_API_PUBLIC dwStatus dwEgomotion_reset ( dwEgomotionHandle_t  obj)

Resets the state estimate and all history of the egomotion module.

All consecutive motion estimates will be relative to the (new) origin.

Parameters
[in]objEgomotion handle to be reset.
Returns
DW_INVALID_HANDLE - if the provided egomotion handle is invalid.
DW_SUCCESS - if the state and history have been reset successfully.
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion_steeringAngleToSteeringWheelAngle()

DW_API_PUBLIC dwStatus dwEgomotion_steeringAngleToSteeringWheelAngle ( float32_t *  steeringWheelAngle,
float32_t  steeringAngle,
dwEgomotionHandle_t  obj 
)

Convert steering angle to steering wheel angle.

Parameters
[out]steeringWheelAnglePointer to steering wheel angle to be set, in radians.
[in]steeringAngleSteering angle, in radians.
[in]objSpecifies the egomotion module handle.
Returns
DW_INVALID_ARGUMENT - if any of the provided pointer arguments is nullptr.
DW_INVALID_HANDLE - if the given egomotion handle is invalid.
DW_NOT_SUPPORTED - if underlying egomotion handle does not support steering angle to steering wheel angle conversion. The egomotion model has to be DW_EGOMOTION_ODOMETRY or DW_EGOMOTION_IMU_ODOMETRY.
DW_SUCCESS - if the call was successful.
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion_steeringWheelAngleToSteeringAngle()

DW_API_PUBLIC dwStatus dwEgomotion_steeringWheelAngleToSteeringAngle ( float32_t *  steeringAngle,
float32_t  steeringWheelAngle,
dwEgomotionHandle_t  obj 
)

Convert steering wheel angle to steering angle.

Parameters
[out]steeringAnglePointer to steering angle to be set, in radians.
[in]steeringWheelAngleSteering wheel angle, in radians.
[in]objSpecifies the egomotion module handle.
Returns
DW_INVALID_ARGUMENT - if any of the provided pointer arguments is nullptr.
DW_INVALID_HANDLE - if the given egomotion handle is invalid.
DW_NOT_SUPPORTED - if underlying egomotion handle does not support steering wheel angle to steering angle conversion. The egomotion model has to be DW_EGOMOTION_ODOMETRY or DW_EGOMOTION_IMU_ODOMETRY.
DW_SUCCESS - if the call was successful.
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion_update()

DW_API_PUBLIC dwStatus dwEgomotion_update ( dwTime_t  timestamp_us,
dwEgomotionHandle_t  obj 
)

Runs the motion model estimation for a given timestamp.

The internal state is modified. The motion model advances to the given timestamp. To retrieve the result of the estimation, use dwEgomotion_getEstimation.

This method allows the user to update the egomotion filter when required, for a specific timestamp, using all sensor data available up to this timestamp.

When the automatic update period is active (automaticUpdate in dwEgomotionParameters is set), dwEgomotion_update will not update the filter state and throw a DW_NOT_SUPPORTED exception instead.

Parameters
[in]timestamp_usTimestamp for which to estimate vehicle state [us].
[in]objEgomotion handle.
Returns
DW_INVALID_ARGUMENT - if given timestamp is not greater than last update timestamp.
DW_INVALID_HANDLE - if the given egomotion handle is invalid.
DW_NOT_SUPPORTED - if the automatic estimation update period is active (i.e. non-zero).
DW_NOT_READY - if egomotion has not yet received enough data to initialize.
DW_SUCCESS - update was executed successfully.
Note
The provided timestamp must be larger than the previous timestamp used when calling dwEgomotion_estimate.
A full set of new sensor measurements should be added before calling this method; otherwise the state estimate might be based on older, extrapolated sensor measurements.
Updating internal state does not guarantee that a motion estimation is available, i.e. there might be not enough data to provide an estimate. Use dwEgomotion_getEstimation and/or dwEgomotion_computeRelativeTransformation to query estimation if it is available.
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion_updateIMUExtrinsics()

DW_API_PUBLIC dwStatus dwEgomotion_updateIMUExtrinsics ( const dwTransformation3f *  imuToRig,
dwEgomotionHandle_t  obj 
)

This method updates the IMU extrinsics to convert from the IMU coordinate system to the vehicle rig coordinate system.

Applies the given extrinsics to the BASE IMU.

See also
dwEgomotionIMUIdentifier.
Parameters
[in]imuToRigTransformation from the IMU coordinate system to the vehicle rig coordinate system.
[in]objEgomotion handle.
Returns
DW_INVALID_HANDLE - if the given egomotion handle is invalid.
DW_INVALID_ARGUMENT - if provided imuToRig is nullptr.
DW_NOT_SUPPORTED - if given egomotion instance does not support change of this parameter.
DW_SUCCESS - if the update was successful.
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotion_updateVehicle()

DW_API_PUBLIC dwStatus dwEgomotion_updateVehicle ( const dwVehicle *  vehicle,
dwEgomotionHandle_t  obj 
)
Deprecated:
Vehicle parameters should be set at initialization time only.

Use dwEgomotion2_updateWheelRadii to update wheel radii if needed.

This method updates the egomotion module with an updated vehicle.

Parameters
[in]vehicleUpdated vehicle which may contain updated vehicle parameters.
[in]objEgomotion handle.
Returns
DW_INVALID_HANDLE - if the given egomotion handle is invalid.
DW_INVALID_ARGUMENT - if provided vehicle is nullptr.
DW_NOT_SUPPORTED - if given egomotion instance does not support change of this parameter.
DW_SUCCESS - if the vehicle has been updated successfully.
API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes

◆ dwEgomotionState2_createAndBindNvSciBufEmpty()

DW_API_PUBLIC dwStatus dwEgomotionState2_createAndBindNvSciBufEmpty ( dwEgomotionStateHandle_t *  state,
size_t const  historySize,
NvSciBufObj  nvSciBufObj,
dwContextHandle_t  ctx 
)

Create empty state for a given motion model type and bind the pose history buffer to a NvSciBufObj buffer.

The pose history buffer is pointing to a NvSciBufObj buffer.

Parameters
[out]stateHandle to be set with pointer to created empty state.
[in]historySizeState history size (maximum capacity). If 0, a default size of 1000 is used.
[in]nvSciBufObjNvSciBufObj for pose history to store
[in]ctxHandle of the context.
Returns
DW_INVALID_ARGUMENT - if given state handle is null
DW_NOT_SUPPORTED - if given motion model is not supported by the state
DW_INVALID_HANDLE - if context handle is invalid
DW_SUCCESS - if the call was successful.
Note
Ownership of the state goes back to caller. The state has to be released with dwEgomotionState_release.
API Group
  • Init: Yes
  • Runtime: No
  • De-Init: No

◆ dwEgomotionState2_createAndBindRawBuffer()

DW_API_PUBLIC dwStatus dwEgomotionState2_createAndBindRawBuffer ( dwEgomotionStateHandle_t *  state,
size_t const  historySize,
void *  dataPtr,
size_t  dataSize,
dwContextHandle_t  ctx 
)

Create empty state for a given motion model type and bind the pose history buffer to a raw external buffer The pose history buffer is pointing to a raw external buffer.

Parameters
[out]stateHandle to be set with pointer to created empty state.
[in]historySizeState history size (maximum capacity). If 0, a default size of 1000 is used.
[in]dataPtrraw data pointer for pose history to store
[in]dataSizesize of the raw memory region
[in]ctxHandle of the context.
Returns
DW_INVALID_ARGUMENT - if given state handle is null
DW_NOT_SUPPORTED - if given motion model is not supported by the state
DW_INVALID_HANDLE - if context handle is invalid
DW_SUCCESS - if the call was successful.
Note
Ownership of the state goes back to caller. The state has to be released with dwEgomotionState_release.
API Group
  • Init: Yes
  • Runtime: No
  • De-Init: No

◆ dwEgomotionState2_fillNvSciBufAttrs()

DW_API_PUBLIC dwStatus dwEgomotionState2_fillNvSciBufAttrs ( NvSciBufAttrList *  outAttrs,
size_t const  historySize 
)

Filling the NvSciBufAttrList with given motion model type and pose history size.

Parameters
[out]outAttrsOutput NvSciBufAttrList
[in]historySizeState history size (maximum capacity). If 0, a default size of 1000 is used.
Returns
DW_INVALID_ARGUMENT - if given outAttrs is null
DW_SUCCESS - if the call was successful.
API Group
  • Init: Yes
  • Runtime: No
  • De-Init: No

◆ dwEgomotionState2_getRawBufferSize()

DW_API_PUBLIC dwStatus dwEgomotionState2_getRawBufferSize ( size_t *  outSize,
size_t const  historySize 
)

Get the raw buffer size required with given motion model type and pose history size.

Parameters
[out]outSizeOutput raw buffer size
[in]historySizeState history size (maximum capacity). If 0, a default size of 1000 is used.
Returns
DW_INVALID_ARGUMENT - if given outSize is null
DW_SUCCESS - if the call was successful.
API Group
  • Init: Yes
  • Runtime: No
  • De-Init: No