TR-mbed 1.0
Loading...
Searching...
No Matches
tiny_ekf_struct.h
Go to the documentation of this file.
1/*
2 * tiny_ekf_struct.h: common data structure for TinyEKF
3 *
4 * You should #include this file after using #define for N (states) and M
5* (observations)
6 *
7 * Copyright (C) 2016 Simon D. Levy
8 *
9 * MIT License
10 */
11
12typedef struct {
13
14 int n; /* number of state values */
15 int m; /* number of observables */
16
17 double x[Nsta]; /* state vector */
18
19 double P[Nsta][Nsta]; /* prediction error covariance */
20 double Q[Nsta][Nsta]; /* process noise covariance */
21 double R[Mobs][Mobs]; /* measurement error covariance */
22
23 double G[Nsta][Mobs]; /* Kalman gain; a.k.a. K */
24
25 double F[Nsta][Nsta]; /* Jacobian of process model */
26 double H[Mobs][Nsta]; /* Jacobian of measurement model */
27
28 double Ht[Nsta][Mobs]; /* transpose of measurement Jacobian */
29 double Ft[Nsta][Nsta]; /* transpose of process Jacobian */
30 double Pp[Nsta][Nsta]; /* P, post-prediction, pre-update */
31
32 double fx[Nsta]; /* output of user defined f() state-transition function */
33 double hx[Mobs]; /* output of user defined h() measurement function */
34
35 /* temporary storage */
36 double tmp0[Nsta][Nsta];
37 double tmp1[Nsta][Mobs];
38 double tmp2[Mobs][Nsta];
39 double tmp3[Mobs][Mobs];
40 double tmp4[Mobs][Mobs];
41 double tmp5[Mobs];
42
43} ekf_t;
#define Nsta
Definition ChassisKalman.h:8
#define Mobs
Definition ChassisKalman.h:9
Projective3d P(Matrix4d::Random())
MatrixXf Q
Definition HouseholderQR_householderQ.cpp:1
JacobiRotation< float > G
Definition Jacobi_makeGivens.cpp:2
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy y set format x g set format y g set format x2 g set format y2 g set format z g set angles radians set nogrid set key title set key left top Right noreverse box linetype linewidth samplen spacing width set nolabel set noarrow set nologscale set logscale x set set pointsize set encoding default set nopolar set noparametric set set set set surface set nocontour set clabel set mapping cartesian set nohidden3d set cntrparam order set cntrparam linear set cntrparam levels auto set cntrparam points set size set set xzeroaxis lt lw set x2zeroaxis lt lw set yzeroaxis lt lw set y2zeroaxis lt lw set tics in set ticslevel set tics set mxtics default set mytics default set mx2tics default set my2tics default set xtics border mirror norotate autofreq set ytics border mirror norotate autofreq set ztics border nomirror norotate autofreq set nox2tics set noy2tics set timestamp bottom norotate set rrange[*:*] noreverse nowriteback set trange[*:*] noreverse nowriteback set urange[*:*] noreverse nowriteback set vrange[*:*] noreverse nowriteback set xlabel matrix size set x2label set timefmt d m y n H
Definition gnuplot_common_settings.hh:74
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
Definition gnuplot_common_settings.hh:12
Definition tiny_ekf.cpp:197
int n
Definition tiny_ekf_struct.h:14
int m
Definition tiny_ekf_struct.h:15