1 # Copyright (c) 2019-2020 NVIDIA CORPORATION. All rights reserved.
3 @page calibration_usecase_vehicle Vehicle Self-Calibration
7 NVIDIA<sup>®</sup> DriveWorks uses vehicle model to calibrate the steering system properities using vehicle odometery and vehicle egomotion measurement and predicted vehicle motion based on vehicle model.
11 Vehicle self-calibration supports vehicle steering offset self calibration. The steering offset is the difference between the actual steering and the measured steering angle, and it equals to the negative of the measured steering angle when the vehicle drive straight. The steering offset is calibrated by minimizing the predicted turn curvature based on model and curvature computed based on measurement data. To start the calibration process, the vehicle has to drive above 10 meter per seocnd, perform gradual lane change maneuvers.
13 
17 ### Initialization Requirements
19 - Nominal values on vehicle calibration
20 - steering offset: 0 radian
22 ### Runtime Calibration Dependencies
24 - IMU-based egomotion needs to be based on accurate IMU calibration and odometry properties
26 ### Input Requirements
28 - Assumption: Vehicle performs the aforementioned maneuvers until calibration convergence.
29 - Vehicle egomotion: requirements can be found in the @ref egomotion_mainsection module
30 - Vehicle IO State: requirements can be found in the @ref vehicleio_mainsection VehicleIO
32 ### Output Requirements
34 - Corrected steering offset: less than 0.8 degrees accuracy
36 ## Cross-validation KPI
38 Several hours of data are used to produce a reference calibration value for cross-validation.
39 Then, short periods of data are evaluated for whether they can recover the same values.
40 For example, the graph below shows precision/recall curves of normalized steering offset
41 q3 (q3=steering offset / wheelbase).
42 Precision indicates that an accepted calibration is within a fixed precision threshold
43 from the reference calibration, and recall indicates the ratio of accepted calibrations
44 in the given amount of time.
46 
50 The following code snippet shows the general structure of a program that performs IMU self-calibration
53 dwCalibrationEngine_initialize(...); // depends on sensor from rig configuration module
54 dwCalibrationEngine_initializeVehicle(...); // depends on nominal calibration from rig configuration
55 dwCalibrationEngine_startCalibration(...); // runtime calibration dependencies need to be met
57 while(true) // main loop
59 // get current vehicle IO state
60 dwVehicleIO_getVehicleState(&state, ...); // requires vehicle io module
62 // feed vehicle io state into self-calibration
63 dwCalibrationEngine_addVehicleIOState(&state, ...);
65 // retrieve calibration status
66 dwCalibrationEngine_getCalibrationStatus(...);
68 // retrieve self-calibration results
69 dwCalibrationEngine_getVehicleSteeringProperties(...);
72 dwCalibrationEngine_stopCalibration(...);
75 This workflow is demonstrated in the following sample: @ref dwx_vehicle_steering_calibration_sample