|
|
NVIDIA DriveOS Linux SDK API Reference
|
7.2.5.0 Early Access Release
|
Go to the documentation of this file.
46 #ifndef DW_EGOMOTION_2_0_EGOMOTION2_H_
47 #define DW_EGOMOTION_2_0_EGOMOTION2_H_
101 DW_EGOMOTION_GROUND_SPEED_FROM_LINEAR_SPEED
DW_DEPRECATED_ENUMERATOR(
"DW_EGOMOTION_GROUND_SPEED_FROM_LINEAR_SPEED has been deprecated and will be removed in the next release.") = 4,
398 char const* imu1Name,
399 char const* imu2Name,
400 char const* imu3Name);
447 uint32_t
const imu1Index,
448 uint32_t
const imu2Index,
449 uint32_t
const imu3Index);
566 #endif // DW_EGOMOTION_2_0_EGOMOTION2_H_
@ DW_EGOMOTION_MEASUREMENT_TRAILER_ANGLE
dwEgomotionSuspensionProperties suspension
Suspension parameters.
float32_t accelerometerBias[3]
Initial accelerometer bias (offset) values. Leave 0 if unknown.
@ DW_EGOMOTION_IMU_COUNT_MAX
Max number of IMUs supported.
struct dwEgomotionObject * dwEgomotionHandle_t
Egomotion Handle.
size_t imuCount
Number of IMUs used simultaneously, in range [1, DW_EGOMOTION_IMU_COUNT_MAX].
dwVehicleWheelEncoderProperties wheelEncoder
Wheel encoder parameters.
uint32_t imuSensorIndices[DW_EGOMOTION_IMU_COUNT_MAX]
Sensor Ids of used IMU sensors. Order must match for all IMU parameter specification arrays.
size_t stateHistorySize
Internal state history size, in number of elements.
dwYawDisturbanceDetectorParameters hfeParameters
HFE Yaw Disturbance Detector parameters, see dwHFEYawDisturbDetectorParameters.
@ DW_DEPRECATED_ENUMERATOR
Ground speed from signed vehicle linear speed at rear axle center (Wheel observer is disabled)
float32_t accelerationMax
Maximum wheel acceleration, to which the state will be constrained (treated as error if error handlin...
dwGenericVehicle vehicle
Vehicle parameters.
dwEgomotionSteeringOffsetEstimatorParameters steeringOffsetEstimator
Steering offset estimator parameters.
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.
dwTransformation3f imuExtrinsics[DW_EGOMOTION_IMU_COUNT_MAX]
IMU extrinsics, transformation from IMU coordinate frame to vehicle rig coordinate frame....
Yaw disturbance detector parameters for HFE integration.
struct dwRigObject const * dwConstRigHandle_t
Handle representing the const Rig interface.
dwVector3f referencePoint
Reference point used internally, expressed in rig coordinate frame.
dwVector2f centerHeight
Roll (x) and pitch (y) center heights.
dwEgomotionDirectionMode
Vehicle direction detection modes.
dwEgomotionMeasurementTypes
Measurements used by egomotion.
@ DW_EGOMOTION_MEASUREMENT_ANGULAR_VELOCITY
struct dwEgomotionVMOParameters dwEgomotionVMOParameters
Vehicle motion observer parameters.
dwEgomotionGroundSpeedMeasurementTypes
Ground speed measurement types.
Wheel encoder parameters.
uint32_t positionFuzzyHigh
Upper end of high trust in wheel position (tick) counters, inclusive (variance adaptation).
@ DW_EGOMOTION_DIRECTION_FROM_SPEED_SIGN
Vehicle Moving Direction based on signed wheel encoder information.
float32_t speedVarianceLow
Speed variance when speed below speedFuzzyLow.
float32_t chiSquaredInnovationGate
Chi-squared value used to reject outlier speed measurements.
dwEgomotionVehicleMovingDirectionDetectorParameters vehicleMovingDirectionDetector
Vehicle moving direction detector parameters.
float32_t gyroscopeBias[3]
Initial gyroscope bias (offset) values. Leave 0 if unknown.
Egomotion measurement parameters.
struct dwEgomotionParameters2 dwEgomotionParameters2
Egomotion parameters.
dwVehicleSuspensionProperties properties
Suspension angular gradient around X- and Y-axis.
Parameters for error handling related logic.
bool enableSuspensionSensorsUsage
Enable usage of suspension sensor signals.
@ DW_EGOMOTION_GROUND_SPEED_COUNT
@ DW_EGOMOTION_MEASUREMENT_LINEAR_GROUND_SPEED
@ DW_EGOMOTION_MEASUREMENT_SUSPENSION
size_t stateHistorySize
Number of state estimates to keep in the history (if 0 specified default of 1000 is used).
struct dwEgomotionVehicleMovingDirectionDetectorParameters dwEgomotionVehicleMovingDirectionDetectorParameters
Vehicle moving direction detection parameters.
float32_t speedVarianceHigh
Speed variance when speed above speedFuzzyHigh.
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.
@ DW_EGOMOTION_GROUND_SPEED_FROM_WHEEL_TICKS_AND_SPEEDS_REAR_AXLE
Ground speed from wheel ticks and speeds rear axle (Wheel observer is enabled)
float32_t groundSpeedCovariance[3]
Measurement covariance parameters (continuous time, coefficients on diagonal).
@ DW_EGOMOTION_MEASUREMENT_PROPER_ACCELERATION
Defines a three-element floating-point vector.
struct dwEgomotionStateObject * dwEgomotionStateHandle_t
Mutable handle to an egomotion state object.
dwTime_t durationNoWheelTickThreshold
Threshold of no wheel ticks duration to determine whether the vehicle rolling direction is void or st...
dwVector3f velocityMin
Minimum linear velocity along each axis, to which the state will be constrained (treated as error if ...
dwVector3f velocityMax
Maximum linear velocity along each axis, to which the state will be constrained (treated as error if ...
DW_API_PUBLIC dwStatus dwEgomotion2_getFrontSteeringAngleOffset(float32_t *steeringOffset, dwEgomotionConstHandle_t obj)
Get estimated front steering angle offset.
float32_t positionVarianceHigh
Position (tick) count variance when tick increment between positionFuzzyLow and positionFuzzyHigh.
float32_t speedFuzzyLow
Region below which wheel speeds have low trust (variance adaptation).
const NvSciSyncObj *const obj
@ DW_EGOMOTION_MEASUREMENT_LINEAR_BODY_SPEED
Linear body speed.
dwEgomotionErrorHandlingParameters errorHandling
Error handling parameters.
dwStatus
Status definition.
DW_API_PUBLIC dwStatus dwEgomotion2_getAccelerometerBiasByIndex(dwVector3f *accBias, uint32_t const sensorIndex, dwEgomotionConstHandle_t obj)
Get estimated accelerometer bias of a specific IMU.
dwEgomotionIMUIntrinsics imuIntrinsics[DW_EGOMOTION_IMU_COUNT_MAX]
IMU intrinsics. Leave 0 initialized if unknown. Order must match the imuSensorIndices.
IMU intrinsic parameters.
struct dwEgomotionIMUIntrinsics dwEgomotionIMUIntrinsics
IMU intrinsic parameters.
@ DW_EGOMOTION_GROUND_SPEED_FROM_WHEEL_TICKS_AND_SPEEDS_BOTH_AXLES
Ground speed from wheel ticks and speeds both axles (Wheel observer is enabled)
float32_t bodySpeedCovariance[3]
[m^2/s^2, m^2/s^2, m^2/s^2]
@ DW_EGOMOTION_DIRECTION_FROM_WHEEL_DIR_AND_GEAR
Vehicle Moving Direction based on unsigned wheel encoder, wheel direction and gear information.
dwEgomotionGroundSpeedMeasurementTypes groundSpeedType
Indicates the source for ground speed.
float32_t initialProcessCovariance[5]
[rad^2, rad^2, m^2/s^2, m^2/s^2, m^2/s^2]
Vehicle moving direction detection parameters.
struct dwEgomotionSuspensionProperties dwEgomotionSuspensionProperties
Suspension properties.
@ DW_EGOMOTION_DIRECTION_COUNT
dwEgomotionDirectionMode mode
Mode of Vehicle Moving Direction Detector.
IMU accelerometer bias estimator parameters.
@ DW_EGOMOTION_GROUND_SPEED_FROM_WHEEL_SPEEDS_BOTH_AXLES
Ground speed from wheel speeds only both axle (Wheel observer is disabled)
struct dwContextObject * dwContextHandle_t
Context handle.
DW_API_PUBLIC dwStatus dwEgomotion2_initDefaultParams(dwEgomotionParameters2 *params)
Initializes the egomotion parameters to sane defaults applicable to most vehicles.
float32_t processCovariance[5]
Process covariance parameters (continuous time, coefficients on diagonal).
@ DW_EGOMOTION_MEASUREMENT_ANGULAR_ACCELERATION
float32_t processCovariance[3]
Process covariance parameters (continuous time, coefficients on diagonal).
@ DW_EGOMOTION_MEASUREMENT_WHEEL_SPEEDS
DW_API_PUBLIC dwStatus dwEgomotion2_getAccelerometerBias(dwVector3f *accBias, dwEgomotionConstHandle_t obj)
Get estimated accelerometer bias of the BASE IMU.
uint32_t positionFuzzyLow
Lower end of high trust in wheel position (tick) counters, inclusive (variance adaptation).
dwTime_t cycleTime[DW_EGOMOTION_MEASUREMENT_TYPES_COUNT]
Expected cycle time of each measurement type.
float32_t speedFuzzyHigh
Region above which wheel speeds have high trust (variance adaptation).
Vehicle motion observer parameters.
float32_t speedMax
Maximum wheel speed, to which the state will be constrained (treated as error if error handling is ac...
IMU gyroscope bias estimator parameters.
float32_t longitudinalGroundSpeedInnovationGate
Variance multiplier value used to reject outlier ground speed measurements.
@ DW_EGOMOTION_MEASUREMENT_TYPES_COUNT
dwEgomotionIMUAccBiasEstimatorParameters accBiasEstimator[DW_EGOMOTION_IMU_COUNT_MAX]
IMU accelerometer bias estimator parameters.
dwEgomotionMeasurementParameters measurements
Measurement parameters.
dwEgomotionIMUGyroBiasEstimatorParameters gyroBiasEstimator[DW_EGOMOTION_IMU_COUNT_MAX]
IMU gyroscope bias estimator parameters.
@ DW_EGOMOTION_MEASUREMENT_WHEEL_TICKS
@ DW_EGOMOTION_MEASUREMENT_REAR_STEERING
Steering offset estimator parameters.
float32_t accelerationMin
Minimum wheel acceleration, to which the state will be constrained (treated as error if error handlin...
struct dwEgomotionWheelObserverParameters dwEgomotionWheelObserverParameters
Wheel observer parameters.
bool automaticUpdate
Automatically update state estimation.
dwEgomotionVMOParameters vehicleMotionObserver
Vehicle motion observer parameters.
float32_t ticksAmbiguousSpeedThreshold
Speed below which driving direction from wheel tick increments and speeds can be ambiguous.
struct dwEgomotionObject const * dwEgomotionConstHandle_t
Const Egomotion Handle.
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.
float32_t positionVarianceLow
Position (tick) count variance when tick increment below positionFuzzyLow.
dwEgomotionWheelObserverParameters wheelObserver
Wheel observer parameters.
Wheel observer parameters.
size_t stateHistorySize
Internal state history size, in number of elements.
dwTime_t delay[DW_EGOMOTION_MEASUREMENT_TYPES_COUNT]
Timestamp offset ("delay") of each measurement type, relative to its advertised timestamp.
struct dwEgomotionMeasurementParameters dwEgomotionMeasurementParameters
Egomotion measurement parameters.
@ DW_EGOMOTION_GROUND_SPEED_FROM_WHEEL_SPEEDS_REAR_AXLE
Ground speed from wheel speeds only rear axle (Wheel observer is disabled)
@ DW_EGOMOTION_MEASUREMENT_STEERING
DW_API_PUBLIC dwStatus dwEgomotion2_initialize(dwEgomotionHandle_t *const obj, dwEgomotionParameters2 const *params, dwContextHandle_t const ctx)
Initializes the egomotion 2.0 module.
@ DW_EGOMOTION_DIRECTION_FROM_SPEED_SIGN_AND_GEAR
Vehicle Moving Direction based on signed wheel encoder and gear information.
Defines a two-element single-precision floating-point vector.