\begin{tikzpicture}[paper figure,x=1mm,y=1mm] \path[use as bounding box] (0.00,10.27) rectangle (134.00,52.50); \path[ordinary box] (27.95,45.85) rectangle (29.90,47.80); \path[ordinary box] (30.30,43.50) rectangle (32.25,45.45); \path[ordinary box] (30.30,39.03) rectangle (32.25,40.98); \path[ordinary box] (30.30,34.57) rectangle (32.25,36.52); \path[bar box] (27.95,30.10) rectangle (29.90,32.05); \path[train box] (27.95,27.75) rectangle (29.90,29.70); \path[ordinary box] (30.30,27.75) rectangle (32.25,29.70); \path[ordinary box] (30.30,23.29) rectangle (32.25,25.24); \path[ordinary box] (30.30,18.82) rectangle (32.25,20.77); \path[ordinary box] (27.95,16.47) rectangle (29.90,18.42); \draw[guide] (27.95,39.03) rectangle (29.90,40.98); \draw[motion] (28.93,39.19) -- (28.93,31.90); \draw[motion,trainfill!80!black] (16.94,28.73) -- (27.45,28.73); \draw[motion,barfill!70!black] (27.45,31.08) -- (16.94,31.08); \draw (16.00,16.27) rectangle (32.45,48.00); \node[figure label,anchor=south] at (28.93,48.60) {$c$}; \node[figure label,anchor=south] at (31.27,48.60) {$P$}; \node[figure label,anchor=north] at (24.23,14.77) {(a1) from state $0$}; \path[ordinary box] (54.45,45.85) rectangle (56.40,47.80); \path[ordinary box] (56.80,43.50) rectangle (58.75,45.45); \path[ordinary box] (56.80,39.03) rectangle (58.75,40.98); \path[ordinary box] (56.80,34.57) rectangle (58.75,36.52); \path[bar box] (54.45,30.10) rectangle (56.40,32.05); \path[train box] (54.45,27.75) rectangle (56.40,29.70); \path[ordinary box] (56.80,27.75) rectangle (58.75,29.70); \path[ordinary box] (56.80,23.29) rectangle (58.75,25.24); \path[ordinary box] (56.80,18.82) rectangle (58.75,20.77); \path[ordinary box] (54.45,16.47) rectangle (56.40,18.42); \draw[guide] (54.45,34.57) rectangle (56.40,36.52); \draw[motion] (55.42,34.72) -- (55.42,31.90); \draw[motion,trainfill!80!black] (43.44,28.73) -- (53.95,28.73); \draw[motion,barfill!70!black] (53.95,31.08) -- (43.44,31.08); \draw (42.50,16.27) rectangle (58.95,48.00); \node[figure label,anchor=south] at (55.42,48.60) {$c$}; \node[figure label,anchor=south] at (57.77,48.60) {$P$}; \node[figure label,anchor=north] at (50.73,14.77) {(a2) from state $1$}; \node[figure label,anchor=east] at (15.0,46.83) {\footnotesize part.}; \node[figure label,anchor=east] at (15.0,40.01) {\footnotesize $\alpha$ (30)}; \node[figure label,anchor=east] at (15.0,35.54) {\footnotesize $\beta$ (60)}; \node[figure label,anchor=east] at (15.0,31.78) {\footnotesize $E_i\!-\!1$}; \node[figure label,anchor=east] at (15.0,28.03) {\footnotesize $E_i$ (70)}; \node[figure label,anchor=east] at (15.0,17.45) {\footnotesize part.}; \draw[black!25,line width=0.35pt] (65.0,11.27) -- (65.0,51.00); \path[draw=black,fill=boxfill!45!white,line width=0.4pt] (76.50,42.80) rectangle (122.50,48.00); \node[figure label] at (99.50,45.40) {\footnotesize target room exit $(c,z)$}; \path[draw=black,fill=barfill!45!white,line width=0.4pt] (76.50,33.60) rectangle (122.50,38.80); \node[figure label] at (99.50,36.20) {\footnotesize Door $1$: park $E_1$, emit $E_1\!-\!1$}; \path[draw=black,fill=barfill!45!white,line width=0.4pt] (76.50,24.40) rectangle (122.50,29.60); \node[figure label] at (99.50,27.00) {\footnotesize Door $2$: park $E_2$, emit $E_2\!-\!1$}; \path[draw=black,fill=trainfill!35!white,line width=0.4pt] (76.50,16.47) rectangle (122.50,21.67); \node[figure label] at (99.50,19.07) {\footnotesize Door $d$: park $E_d$, stop at $E_d\!-\!1$}; \draw[motion] (99.50,42.80) -- (99.50,39.05); \draw[motion] (99.50,33.60) -- (99.50,29.85); \draw[motion,densely dashed] (99.50,24.40) -- (99.50,21.92); \node[figure label,anchor=west] at (100.90,40.80) {\footnotesize 6-pin wire}; \node[figure label,anchor=west] at (100.90,31.60) {\footnotesize 6-pin wire}; \node[figure label,anchor=west] at (100.90,23.04) {\footnotesize $\dots$}; \node[figure label,anchor=north] at (99.50,14.77) {(b) Cleanup chain ($2^d$ states $\to 1$ target)}; \end{tikzpicture}%