\begin{tikzpicture}[x=0.6cm,y=0.6cm,>=stealth',edge sensor/.style={red!50,draw=blue,very thin},
  edge sensor link/.style={->,blue,thick,shorten >=1pt,shorten <=1pt}]
  \begin{scope}[yshift=5cm]
  \foreach \x in {1,...,6} {
    \coordinate (O) at (150-\x*60:8.71);
    \fill[black!5] (O) circle [radius=4.2085] node {\x};
 }
  \coordinate (O) at (0,0);
  \fill[black!5] (O) circle [radius=4.2085] node {7};
  \draw[->] (-12,0) -- (12,0) node[below] {$\bar x$};
  \draw[->] (0,-13.5) -- (0,13.5) node[right] {$\bar y$};

  \draw[->,thick,dashed,red!50] ($(O)+(-4.193,0)$) -- ($(O)+(4.193,0)$) node[below] {$\hat x$};
  \draw[->,thick,dashed,red!50] ($(O)+(0,-4)$) -- ($(O)+(0,4)$) node[right] {$\hat y$};

  %\draw[thin,dotted] (0,0) circle [radius=8.71];
  \coordinate (O) at (0,0);

  % \draw[dashed,thin] (150:8.71) -- (-30:8.71);
  % \draw[dashed,thin] (-150:8.71) -- (30:8.71);
  \foreach \x in {1,...,6} {
    \coordinate (O) at (150-\x*60:8.71);
    \coordinate (O next) at (90-\x*60:8.71);
    \draw[red!50,dashed] (O) -- (O next);
    \draw[->,thick,red!50,dashed,rotate=-60*(\x-1)] ($(O)+(-4.193,0)$) -- ($(O)+(4.193,0)$) node[below] {$\hat x$};
    \draw[->,thick,red!50,dashed,rotate=-60*(\x-1)] (0,0) -- ($(O)+(0,4.193)$) node[right] {$\hat y$};
    \coordinate (R7\x) at (-19.5645 - \x*60 + 60 + 90:4.193);
    \fill[edge sensor] (R7\x) circle [radius=0.1] node[above,black] {$r_{7\x}$};
    \coordinate (L7\x) at (+19.5645 - \x*60 + 60 + 90:4.193);
    \fill[edge sensor] (L7\x) circle [radius=0.1] node[above,black] {$l_{7\x}$};
    \begin{scope}[shift={(O)}]
      \foreach \y in {3,4,5} {
        \coordinate (R\x\y) at (-19.5645-\y*60+60-\x*60+60 + 90:4.193);
        \fill[edge sensor] (R\x\y) circle [radius=0.1] node[above,black] {$r_{\x\y}$};
        \coordinate (L\x\y) at (+19.5645-\y*60+60-\x*60+60 + 90:4.193);
        \fill[edge sensor] (L\x\y) circle [radius=0.1] node[above,black] {$l_{\x\y}$};
      }
    \end{scope}
  }    
  \foreach \x in {1,...,6} {
    \draw[edge sensor link] (L7\x) -- (R\x4);
    \draw[edge sensor link] (R7\x) -- (L\x4);
  }
  \foreach \x/\y in {1/2,2/3,3/4,4/5,5/6,6/1} {
    \draw[edge sensor link] (L\x3) -- (R\y5);
    \draw[edge sensor link] (R\x3) -- (L\y5);
  }
\path
    (R71)
    -- (0,0) coordinate (b)
    -- (0,4.193) coordinate (c)
    pic["$\alpha$",draw, <->, angle eccentricity=1.1, angle radius=1.5cm]
    {angle=R71--b--c};
\draw[dashed] (0,0) -- (R71);
  \end{scope}
  \begin{scope}[yshift=-5.5cm]
    \draw[->] (-12,0) -- (12,0) node[below] {$\bar x$};
    \draw[->] (0,-1.5) -- (0,3.5) node[right] {$\bar z$};    
    \draw[dotted] (-12,0.12*3) -- (12,0.12*3) node[midway,above right] {\scriptsize 0.12};
    \draw[dotted] (-12,0.30*3) -- (12,0.30*3) node[midway,above right] {\scriptsize 0.30};
    \draw[dotted] (-12,0.87*3) -- (12,0.87*3) node[midway,above right] {\scriptsize 0.87};
    \fill[blue!50] 
                   let \p1 = (L76) in (\x1,0) circle [radius=0.1]
                   let \p1 = (R76) in (\x1,0) circle [radius=0.1]
                   let \p1 = (L71) in (\x1,0) circle [radius=0.1]
                   let \p1 = (R71) in (\x1,0) circle [radius=0.1]
                   let \p1 = (L72) in (\x1,0) circle [radius=0.1]
                   let \p1 = (R72) in (\x1,0) circle [radius=0.1];
    \fill[green!50] 
                   let \p1 = (R25) in (\x1,0.87*3) circle [radius=0.1]
                   let \p1 = (L25) in (\x1,0.30*3) circle [radius=0.1]
                   let \p1 = (R24) in (\x1,0.12*3) circle [radius=0.1]
                   let \p1 = (L24) in (\x1,0.12*3) circle [radius=0.1]
                   let \p1 = (R23) in (\x1,0.30*3) circle [radius=0.1]
                   let \p1 = (L23) in (\x1,0.87*3) circle [radius=0.1];
    \fill[green!50] 
                   let \p1 = (R65) in (\x1,0.87*3) circle [radius=0.1]
                   let \p1 = (L65) in (\x1,0.30*3) circle [radius=0.1]
                   let \p1 = (R64) in (\x1,0.12*3) circle [radius=0.1]
                   let \p1 = (L64) in (\x1,0.12*3) circle [radius=0.1]
                   let \p1 = (R63) in (\x1,0.30*3) circle [radius=0.1]
                   let \p1 = (L63) in (\x1,0.87*3) circle [radius=0.1];
    \fill[red!50] 
                   let \p1 = (R15) in (\x1,0.87*3) circle [radius=0.1]
                   let \p1 = (L15) in (\x1,0.30*3) circle [radius=0.1]
                   let \p1 = (R14) in (\x1,0.12*3) circle [radius=0.1]
                   let \p1 = (L14) in (\x1,0.12*3) circle [radius=0.1]
                   let \p1 = (R13) in (\x1,0.30*3) circle [radius=0.1]
                   let \p1 = (L13) in (\x1,0.87*3) circle [radius=0.1];
  \end{scope}
    \draw[dotted] let \p1 = (R71) in (\x1,-9.5) -- (\x1,22);
    \draw[dotted] let \p1 = (L72) in (\x1,-9.5) -- (\x1,22);
    \draw[dotted] let \p1 = (R72) in (\x1,-9.5) -- (\x1,22);
    \draw[dotted] let \p1 = (L25) in (\x1,-9.5) -- (\x1,22);
    \draw[dotted] let \p1 = (R25) in (\x1,-9.5) -- (\x1,22);
    \draw[dotted] let \p1 = (R23) in (\x1,-9.5) -- (\x1,22);
    \draw[dotted] let \p1 = (L23) in (\x1,-9.5) -- (\x1,22);
\end{tikzpicture}   


%%% Local Variables: 
%%% mode: latex
%%% TeX-master: "edgeSensor.main.tex"
%%% End: 
