UP | HOME

Optimal and Robust Complementary Filters for Sensor Fusion - Tikz Figures

Table of Contents

Configuration file is accessible here.

1 Change some default

\tikzset{block/.default={0.8cm}{0.6cm}}
\tikzset{addb/.append style={scale=0.7}}
\tikzset{node distance=0.6}
\def\cdist{0.7}

\definecolor{T}{rgb}{0.230, 0.299, 0.754}%
\definecolor{S}{rgb}{0.706, 0.016, 0.150}%

2 H-Infinity - Complementary filters - Generalized plant

\tikzset{block/.default={0.8cm}{0.6cm}}
\tikzset{addb/.append style={scale=0.7}}
\tikzset{node distance=0.6}
\def\cdist{0.7}

\definecolor{T}{rgb}{0.230, 0.299, 0.754}%
\definecolor{S}{rgb}{0.706, 0.016, 0.150}%
\begin{tikzpicture}
   \node[block={4.0cm}{3.0cm}, dashed] (P) {};
   \node[above] at (P.north) {$P$};

   \coordinate[] (inputw)  at ($(P.south west)!0.8!(P.north west) + (-\cdist, 0)$);
   \coordinate[] (inputu)  at ($(P.south west)!0.4!(P.north west) + (-\cdist, 0)$);

   \coordinate[] (outputh) at ($(P.south east)!0.8!(P.north east) + ( \cdist, 0)$);
   \coordinate[] (outputl) at ($(P.south east)!0.4!(P.north east) + ( \cdist, 0)$);
   \coordinate[] (outputv) at ($(P.south east)!0.1!(P.north east) + ( \cdist, 0)$);

   \node[block, left=2*\cdist of outputl] (WL){$w_L$};
   \node[block, left=2*\cdist of outputh] (WH){$w_H$};
   \node[addb={+}{}{}{}{-}, left=of WH] (sub) {};

   \draw[->] (inputw) node[above right]{$w$} -- (sub.west);
   \draw[->] (inputu) node[above right]{$u$} -- (WL.west);
   \draw[->] (inputu-|sub) node[branch]{} -- (sub.south);
   \draw[->] (sub.east) -- (WH.west);
   \draw[->] ($(inputw)+(2*\cdist, 0)$) node[branch]{} |- (outputv) node[above left]{$v$};
   \draw[->] (WH.east) -- (outputh)node[above left]{$z_H$};
   \draw[->] (WL.east) -- (outputl)node[above left]{$z_L$};
 \end{tikzpicture}

sf_hinf_filters_plant_b.png

Figure 1: H-Infinity - Complementary filters - Generalized plant (png, pdf, tex).

3 H-Infinity - Complementary filters

\tikzset{block/.default={0.8cm}{0.6cm}}
\tikzset{addb/.append style={scale=0.7}}
\tikzset{node distance=0.6}
\def\cdist{0.7}

\definecolor{T}{rgb}{0.230, 0.299, 0.754}%
\definecolor{S}{rgb}{0.706, 0.016, 0.150}%
\begin{tikzpicture}
   \node[block={4.0cm}{3.0cm}, dashed] (P) {};
   \node[above] at (P.north) {$P$};

   \coordinate[] (inputw)  at ($(P.south west)!0.8!(P.north west) + (-\cdist, 0)$);
   \coordinate[] (inputu)  at ($(P.south west)!0.4!(P.north west) + (-\cdist, 0)$);

   \coordinate[] (outputh) at ($(P.south east)!0.8!(P.north east) + ( \cdist, 0)$);
   \coordinate[] (outputl) at ($(P.south east)!0.4!(P.north east) + ( \cdist, 0)$);
   \coordinate[] (outputv) at ($(P.south east)!0.1!(P.north east) + ( \cdist, 0)$);

   \node[block, left=2*\cdist of outputl] (WL){$w_L$};
   \node[block, left=2*\cdist of outputh] (WH){$w_H$};
   \node[addb={+}{}{}{}{-}, left=of WH] (sub) {};

   \node[block, below=\cdist of P] (HL) {$H_L$};

   \draw[->] (inputw) node[above right]{$w$} -- (sub.west);
   \draw[->] (HL.west) -| ($(inputu)+(0.5*\cdist, 0)$) -- (WL.west);
   \draw[->] (inputu-|sub) node[branch]{} -- (sub.south);
   \draw[->] (sub.east) -- (WH.west);
   \draw[->] ($(inputw)+(2*\cdist, 0)$) node[branch]{} |- ($(outputv)+(-0.5*\cdist, 0)$) |- (HL.east);
   \draw[->] (WH.east) -- (outputh)node[above left]{$z_H$};
   \draw[->] (WL.east) -- (outputl)node[above left]{$z_L$};
\end{tikzpicture}

sf_hinf_filters_b.png

Figure 2: H-Infinity - Complementary filters (png, pdf, tex).

4 H-Infinity - Optimal Complementary Filters

The Tikz figure can be downloaded in the following formats: png, pdf and tex.

\tikzset{block/.default={0.8cm}{0.6cm}}
\tikzset{addb/.append style={scale=0.7}}
\tikzset{node distance=0.6}
\def\cdist{0.7}

\definecolor{T}{rgb}{0.230, 0.299, 0.754}%
\definecolor{S}{rgb}{0.706, 0.016, 0.150}%
\begin{tikzpicture}
   \node[block={5.0cm}{3.0cm}, dashed] (P) {};
   \node[above] at (P.north) {$P$};

   \coordinate[] (inputn1)  at ($(P.south west)!0.8!(P.north west) + (-\cdist, 0)$);
   \coordinate[] (inputn2)  at ($(P.south west)!0.5!(P.north west) + (-\cdist, 0)$);
   \coordinate[] (inputu)   at ($(P.south west)!0.2!(P.north west) + (-\cdist, 0)$);

   \coordinate[] (outputx) at ($(P.south east)!0.5!(P.north east) + ( \cdist, 0)$);
   \coordinate[] (outputv) at ($(P.south east)!0.1!(P.north east) + ( \cdist, 0)$);

   \node[block, right=1.5 of inputn1] (W1){$W_1$};
   \node[block, right=1.5 of inputn2] (W2){$W_2$};
   \node[addb={+}{}{}{}{-}, right=of W1] (sub) {};
   \node[addb, right=2 of W2] (add) {};

   \node[block, below=of P] (H1) {$H_1$};

   \draw[->] (inputn1)node[above right]{$n_1$} -- (W1.west);
   \draw[->] (inputn2)node[above right]{$n_2$} -- (W2.west);
   \draw[->] (W1) -- (sub.west);
   \draw[->] (W2) -| (sub.south);
   \draw[->] (W2-|sub.south) node[branch]{} -- (add.west);
   \draw[->] (sub.east) -- ++(0.5, 0) |- ($(outputv) + (-0.3, 0)$) |- (H1.east);
   \draw[->] (H1.west) -| ($(inputu) + (0.3, 0)$) -| (add.south);
   \draw[->] (add.east) -- (outputx) node[above left]{$\hat{x}$};
\end{tikzpicture}

h_infinity_optimal_comp_filters.png

Figure 3: H-Infinity - Optimal Complementary Filters (png, pdf, tex).

5 Fusion of two noisy sensors

The Tikz figure can be downloaded in the following formats: png, pdf and tex.

\begin{tikzpicture}
  \node[branch] (x) at (0, 0);
  \node[addb, above right=1.5 and 1 of x](add1){};
  \node[addb, below right=1.5 and 1 of x](add2){};
  \node[block, above=0.5 of add1](W1){$W_1$};
  \node[block, above=0.5 of add2](W2){$W_2$};
  \node[block, right=1 of add1](H1){$H_1$};
  \node[block, right=1 of add2](H2){$H_2$};
  \node[addb, right=4 of x](add){};

  \draw[] ($(x)+(-1, 0)$) node[above right]{$x$} -- (x);
  \draw[->] (x) |- (add1.west);
  \draw[->] (x) |- (add2.west);
  \draw[->] (W1.south) -- (add1.north);
  \draw[->] (W2.south) -- (add2.north);
  \draw[<-] (W1.north) -- ++(0, 0.8)node[below right]{$n_1$};
  \draw[<-] (W2.north) -- ++(0, 0.8)node[below right]{$n_2$};
  \draw[->] (add1.east) -- (H1.west);
  \draw[->] (add2.east) -- (H2.west);
  \draw[->] (H1) -| (add.north);
  \draw[->] (H2) -| (add.south);
  \draw[->] (add.east) -- ++(1, 0) node[above left]{$\hat{x}$};
\end{tikzpicture}

fusion_two_noisy_sensors.png

Figure 4: Fusion of two noisy sensors (png, pdf, tex).

6 Fusion of two noisy signals

The Tikz figure can be downloaded in the following formats: png, pdf and tex.

\begin{tikzpicture}
  \node[addb] (add) at (0, 0){};
  \node[block, above left=0.5 and 0.8 of add] (H1) {$H_1$};
  \node[block, below left=0.5 and 0.8 of add] (H2) {$H_2$};

  \draw[->] ($(H1.west)+(-1.5, 0)$)node[above right]{$x + n_1$} -- (H1.west);
  \draw[->] ($(H2.west)+(-1.5, 0)$)node[above right]{$x + n_2$} -- (H2.west);
  \draw[->] (H1) -| (add.north);
  \draw[->] (H2) -| (add.south);
  \draw[->] (add.east) -- ++(1, 0) node[above left]{$\hat{x}$};
\end{tikzpicture}

fusion_two_signals.png

Figure 5: Fusion of two noisy sensors (png, pdf, tex).

7 Fusion of two noisy sensors with Dynamics

The Tikz figure can be downloaded in the following formats: png, pdf and tex.

\begin{tikzpicture}
  \node[branch] (x) at (0, 0);
  \node[block, above right=1.5 and 0.5 of x](G1){$G_1$};
  \node[block, below right=1.5 and 0.5 of x](G2){$G_2$};
  \node[addb, right=1 of G1](add1){};
  \node[addb, right=1 of G2](add2){};
  \node[block, above=0.5 of add1](W1){$W_1$};
  \node[block, above=0.5 of add2](W2){$W_2$};
  \node[block, right=1 of add1](H1){$H_1$};
  \node[block, right=1 of add2](H2){$H_2$};
  \node[addb, right=6 of x](add){};

  \draw[] ($(x)+(-1, 0)$) node[above right]{$x$} -- (x);
  \draw[->] (x) |- (G1.west);
  \draw[->] (x) |- (G2.west);
  \draw[->] (G1.east) -- (add1.west);
  \draw[->] (G2.east) -- (add2.west);
  \draw[->] (W1.south) -- (add1.north);
  \draw[->] (W2.south) -- (add2.north);
  \draw[<-] (W1.north) -- ++(0, 0.8)node[below right]{$n_1$};
  \draw[<-] (W2.north) -- ++(0, 0.8)node[below right]{$n_2$};
  \draw[->] (add1.east) -- (H1.west);
  \draw[->] (add2.east) -- (H2.west);
  \draw[->] (H1) -| (add.north);
  \draw[->] (H2) -| (add.south);
  \draw[->] (add.east) -- ++(1, 0) node[above left]{$\hat{x}$};
\end{tikzpicture}

fusion_two_noisy_sensors_with_dyn.png

Figure 6: Fusion of two noisy sensorswithdyn (png, pdf, tex).

8 Fusion of two noisy sensors with Dynamics - Bis

The Tikz figure can be downloaded in the following formats: png, pdf and tex.

\begin{tikzpicture}
  \node[branch] (x) at (0, 0);
  \node[block, above right=0.5 and 0.5 of x](G1){$G_1$};
  \node[block, below right=0.5 and 0.5 of x](G2){$G_2$};
  \node[addb, right=1 of G1](add1){};
  \node[addb, right=1 of G2](add2){};
  \node[block, right=1 of add1](H1){$H_1$};
  \node[block, right=1 of add2](H2){$H_2$};
  \node[addb, right=6 of x](add){};

  \draw[] ($(x)+(-1, 0)$) node[above right]{$x$} -- (x);
  \draw[->] (x) |- (G1.west);
  \draw[->] (x) |- (G2.west);
  \draw[->] (G1.east) -- (add1.west);
  \draw[->] (G2.east) -- (add2.west);
  \draw[<-] (add1.north) -- ++(0, 0.8)node[below right]{$n_1$};
  \draw[<-] (add2.north) -- ++(0, 0.8)node[below right]{$n_2$};
  \draw[->] (add1.east) -- (H1.west);
  \draw[->] (add2.east) -- (H2.west);
  \draw[->] (H1) -| (add.north);
  \draw[->] (H2) -| (add.south);
  \draw[->] (add.east) -- ++(1, 0) node[above left]{$\hat{x}$};
\end{tikzpicture}

fusion_two_noisy_sensors_with_dyn_bis.png

Figure 7: Fusion of two noisy sensorswithdynbis (png, pdf, tex).

9 Fusion of two sensors with mismatch dynamics

The Tikz figure can be downloaded in the following formats: png, pdf and tex.

\tikzset{block/.default={0.8cm}{0.6cm}}
\tikzset{addb/.append style={scale=0.7}}
\tikzset{node distance=0.6}
\def\cdist{0.7}

\definecolor{T}{rgb}{0.230, 0.299, 0.754}%
\definecolor{S}{rgb}{0.706, 0.016, 0.150}%
\begin{tikzpicture}
  \node[branch] (x) at (0, 0);
  \node[addb, above right=1 and 3.5 of x](add1){};
  \node[addb, below right=1 and 3.5 of x](add2){};
  \node[block, above left= of add1](delta1){$\Delta_1$};
  \node[block, above left= of add2](delta2){$\Delta_2$};
  \node[block, left= of delta1](W1){$W_1$};
  \node[block, left= of delta2](W2){$W_2$};
  \node[block, right= of add1](H1){$H_1$};
  \node[block, right= of add2](H2){$H_2$};
  \node[addb, right=5.5 of x](add){};

  \draw[] ($(x)+(-1, 0)$) node[above right]{$x$} -- (x);
  \draw[->] (x) |- (add1.west);
  \draw[->] (x) |- (add2.west);
  \draw[->] ($(add1-|W1.west)+(-0.5, 0)$)node[branch]{} |- (W1.west);
  \draw[->] ($(add2-|W2.west)+(-0.5, 0)$)node[branch]{} |- (W2.west);
  \draw[->] (W1.east) -- (delta1.west);
  \draw[->] (W2.east) -- (delta2.west);
  \draw[->] (delta1.east) -| (add1.north);
  \draw[->] (delta2.east) -| (add2.north);
  \draw[->] (add1.east) -- (H1.west);
  \draw[->] (add2.east) -- (H2.west);
  \draw[->] (H1.east) -| (add.north);
  \draw[->] (H2.east) -| (add.south);
  \draw[->] (add.east) -- ++(1, 0) node[above left]{$\hat{x}$};
\end{tikzpicture}

fusion_gain_mismatch.png

Figure 8: Fusion of two noisy sensorswithdyn (png, pdf, tex).

10 Uncertainty to Phase and Gain variation

The Tikz figure can be downloaded in the following formats: png, pdf and tex.

\begin{tikzpicture}
  \draw[->] (-0.5, 0)   -- (7, 0) node[below left]{Real};
  \draw[->] (0, -1) -- (0, 1) node[left]{Im};
  \node[branch] (1) at (5, 0){};
  \node[below] at (1){$1$};
  \node[circle, draw] (c) at (1)[minimum size=2cm]{};
  \draw[dashed] (0, 0) -- (tangent cs:node=c,point={(0, 0)},solution=2) -- node[midway, right]{$|H_i W_i|$} (1);
  \draw[dashed] (2, 0) arc (0:23:1) node[midway, right]{$\Delta \phi$};
  % \draw[dashed] (0, 0) -- (tangent cs:node=c,point={(0, 0)},solution=1) coordinate(cbot);
\end{tikzpicture}

uncertainty_gain_phase_variation.png

Figure 9: Uncertainty to Phase and Gain variation (png, pdf, tex).

11 Generate Complementary Filters using Feedback Control Architecture

\begin{tikzpicture}
  \node[addb={+}{}{}{}{-}] (addfb) at (0, 0){};
  \node[block, right=1 of addfb] (L){$L$};
  \node[addb={+}{}{}{}{}, right=1 of L] (adddy){};

  \draw[<-] (addfb.west) -- ++(-1, 0) node[above right]{$y_1$};
  \draw[->] (addfb.east) -- (L.west);
  \draw[->] (L.east) -- (adddy.west);
  \draw[->] (adddy.east) -- ++(1, 0) node[above left]{$y_s$};
  \draw[->] ($(adddy.east) + (0.5, 0)$) node[branch]{} -- ++(0, -1) -| (addfb.south);
  \draw[<-] (adddy.north) -- ++(0, 1) node[below right]{$y_2$};
\end{tikzpicture}

complementary_filters_feedback_architecture.png

Figure 10: Generation of Complementary Filters using the feedback architecture (png, pdf, tex).

12 H-Infinity Synthesis for Robust Sensor Fusion

The Tikz figure can be downloaded in the following formats: png, pdf and tex.

\tikzset{block/.default={0.8cm}{0.6cm}}
\tikzset{addb/.append style={scale=0.7}}
\tikzset{node distance=0.6}
\def\cdist{0.7}

\definecolor{T}{rgb}{0.230, 0.299, 0.754}%
\definecolor{S}{rgb}{0.706, 0.016, 0.150}%
\begin{tikzpicture}
   \node[block={4.0cm}{3.0cm}, dashed] (P) {};
   \node[above] at (P.north) {$P$};

   \coordinate[] (inputw)  at ($(P.south west)!0.8!(P.north west) + (-\cdist, 0)$);
   \coordinate[] (inputu)  at ($(P.south west)!0.4!(P.north west) + (-\cdist, 0)$);

   \coordinate[] (outputh) at ($(P.south east)!0.8!(P.north east) + ( \cdist, 0)$);
   \coordinate[] (outputl) at ($(P.south east)!0.4!(P.north east) + ( \cdist, 0)$);
   \coordinate[] (outputv) at ($(P.south east)!0.1!(P.north east) + ( \cdist, 0)$);

   \node[block, left=2*\cdist of outputl] (W1){$w_1$};
   \node[block, left=2*\cdist of outputh] (W2){$w_2$};
   \node[addb={+}{}{}{}{-}, left=of W2] (sub) {};

   \node[block, below=\cdist of P] (H1) {$H_1$};

   \draw[->] (inputw) node[above right]{$w$} -- (sub.west);
   \draw[->] (H1.west) -| ($(inputu)+(0.5*\cdist, 0)$) -- (W1.west);
   \draw[->] (inputu-|sub) node[branch]{} -- (sub.south);
   \draw[->] (sub.east) -- (W2.west);
   \draw[->] ($(inputw)+(2*\cdist, 0)$) node[branch]{} |- ($(outputv)+(-0.5*\cdist, 0)$) |- (H1.east);
   \draw[->] (W2.east) -- (outputh)node[above left]{$z_2$};
   \draw[->] (W1.east) -- (outputl)node[above left]{$z_1$};
\end{tikzpicture}

h_infinity_robust_fusion.png

Figure 11: H-Infinity Synthesis for Robust Sensor Fusion (png, pdf, tex).

Author: Thomas Dehaeze

Created: 2019-08-14 mer. 12:08

Validate