@@ -8,29 +8,32 @@ class SensorModel
8
8
// Choose anything besides 1 for using Kalibr
9
9
SensorModel (int Kalibr);
10
10
11
- /* ----- Parameters that describe errors (both stochastic and deterministic of an IMU sensor) -----*/
11
+ /* ----- Set Values that describe errors (both stochastic and deterministic of an IMU sensor) - -----*/
12
12
// Stochastic Parameters
13
- double B; // Mean Square Value of Bias Instability
14
- double K; // Mean Square Value of Rate Random Walk
15
- double T; // Time Window at Minimum of Allan Variance
16
- double freq; // Frequency of Sensor Measurements
17
- double sig_meas; // Standard Deviation of Total Sensor Measurement (assuming error of mean zero)
18
- double sig_w; // Standard deviation used in rate random walk contribution so that
19
- // low frequency of RRW PSD matches low frequency of the PSD from
20
- // dataset of sensor data
21
- double bias; // Current Value of Bias Instability Contribution
22
- double rrw; // Current Value of Rate Random Walk Contribution
13
+ void SetB (double B_input); // Mean Square Value of Bias Instability
14
+ void SetK (double K_input); // Mean Square Value of Rate Random Walk
15
+ void SetT (double T_input); // Time Window at Minimum of Allan Variance
16
+ void Setfreq (double freq_input); // Frequency of Sensor Measurements
17
+ void Setsig_meas (double sig_meas_input); // Standard Deviation of Total Sensor Measurement (assuming error of mean zero)
18
+ void Setsig_w (double sig_w_input); // Standard deviation used in rate random walk contribution so that
19
+ // low frequency of RRW PSD matches low frequency of the PSD from dataset of sensor data
20
+ void Setbias (double bias_input); // Current value of bias instability contribution
21
+ void Setrrw (double rrw_input); // Current value of rate random walk contribution
23
22
24
23
// Deterministic Parameters
25
- double S; // Scale factor error
26
- double Bf; // Measurement bias
27
- /* --- End Parameters that describe errors (both stochastic and deterministic of an IMU sensor) ---*/
24
+ void SetS ( double S_input); // Scale factor error
25
+ void SetBf ( double Bf_input); // Measurement bias
26
+ /* --- End Set Values that describe errors (both stochastic and deterministic of an IMU sensor) - ---*/
28
27
29
- // True sensor value that will be corrupted by stochastic errors and deterministic errors
30
- double SensorMeasTrue;
28
+ /* ---------- Get Values that describe IMU measurements ----------*/
29
+ // Get the frequency of sensor measurements
30
+ double Getfreq (void );
31
+ // Get the corrupted sensor output value
32
+ double GetSensorOutput (void );
33
+ /* -------- End Get Values that describe IMU measurements --------*/
31
34
32
- // Corrupted Sensor Output Value
33
- double SensorOutput ;
35
+ // Set the true sensor value that will be corrupted by stochastic errors and deterministic errors
36
+ void SetSensorMeasTrue ( double SensorMeasTrue_input) ;
34
37
35
38
// Compute Corrupted Sensor Output
36
39
void SensorModelOutput (void );
@@ -41,6 +44,12 @@ class SensorModel
41
44
// Corrupted Deterministic Sensor Output
42
45
double DetSensorOutput;
43
46
47
+ // True sensor value that will be corrupted by stochastic errors and deterministic errors
48
+ double SensorMeasTrue;
49
+
50
+ // Corrupted Sensor Output Value
51
+ double SensorOutput;
52
+
44
53
// Function that Computes the Sensor Output with Deterministic Error Contributors
45
54
void SensorDetModel (void );
46
55
@@ -49,4 +58,22 @@ class SensorModel
49
58
50
59
// Function that Computes the Sensor Output with Stochastic Error Contributors using Kalibr Model.
51
60
void SensorStocModel_Kalibr (void );
61
+
62
+ /* ----- Parameters that describe errors (both stochastic and deterministic of an IMU sensor) -----*/
63
+ // Stochastic Parameters
64
+ double B; // Mean Square Value of Bias Instability
65
+ double K; // Mean Square Value of Rate Random Walk
66
+ double T; // Time Window at Minimum of Allan Variance
67
+ double freq; // Frequency of Sensor Measurements
68
+ double sig_meas; // Standard Deviation of Total Sensor Measurement (assuming error of mean zero)
69
+ double sig_w; // Standard deviation used in rate random walk contribution so that
70
+ // low frequency of RRW PSD matches low frequency of the PSD from
71
+ // dataset of sensor data
72
+ double bias; // Current Value of Bias Instability Contribution
73
+ double rrw; // Current Value of Rate Random Walk Contribution
74
+
75
+ // Deterministic Parameters
76
+ double S; // Scale factor error
77
+ double Bf; // Measurement bias
78
+ /* --- End Parameters that describe errors (both stochastic and deterministic of an IMU sensor) ---*/
52
79
};
0 commit comments