-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfmt_5.tex
174 lines (134 loc) · 6.09 KB
/
fmt_5.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
\documentclass[]{standalone}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{import}
\usepackage[subpreambles=true]{standalone}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[scale=1]
% \path[draw, fill] (5.5, 3.0) circle (0.05) node[right]{$V_\mathrm{closed}$};
% \path[draw, fill=gray] (5.5, 2.5) circle (0.05) node[right]{$V_\mathrm{open}$};
% \path[draw, fill=white] (5.5, 2.0) circle (0.05) node[right]{$V_\mathrm{unvisited}$};
\useasboundingbox (0,0) rectangle (5,3);
\coordinate (init) at (0.5,0.5);
\coordinate (goal) at (4.6,2.25);
\coordinate (obs1) at (2.4,2.1);
\coordinate (obs2) at (3.7,0.65);
\coordinate (n0) at (0.4,1.3);
\coordinate (n1) at (1.2,2.5);
\coordinate (n2) at (1.5,0.3);
\coordinate (n3) at (4.5,1.1);
\coordinate (n4) at (1.6,1.0);
\coordinate (n5) at (4.0,2.0);
\coordinate (n6) at (3.3,2.2);
\coordinate (n7) at (3.25,1.1);
\coordinate (n8) at (2.5,1.1);
\coordinate (n9) at (0.3,2.1);
\coordinate (n10) at (3.7,2.7);
\path[draw] (n0) -- (init);
\path[draw] (n4) -- (init);
\path[draw] (n2) -- (init);
\path[draw, fill=gray] (n0) circle (0.05);
\path[draw, fill=white] (n1) circle (0.05);
\path[draw, fill=gray] (n2) circle (0.05);
\path[draw, fill=white] (n3) circle (0.05);
\path[draw, fill=gray] (n4) circle (0.05);
\path[draw, fill=white] (n5) circle (0.05);
\path[draw, fill=white] (n6) circle (0.05);
\path[draw, fill=white] (n7) circle (0.05);
\path[draw, fill=white] (n8) circle (0.05);
\path[draw, fill=white] (n9) circle (0.05);
\path[draw, fill=white] (n10) circle (0.05);
\path[draw, fill=black] (init) circle (0.05) node[below] {$x_\mathrm{init}$};
\path[draw, fill=white] (goal) circle (0.05) node[above] {$x_\mathrm{goal}$};
% \begin{scope}
% \clip (0,0) rectangle (5,3);
% \path[draw, thick, dashed, fill=gray, fill opacity=0.2] (init) circle (1.3);
% \end{scope}
% \visible<1>{
% \begin{scope}
% \clip (0,0) rectangle (5,3);
% \path[draw, thick, dashed, fill=gray, fill opacity=0.2] (init) circle (1.3);
% \end{scope}}
% \visible<2-3>{
% \begin{scope}
% \clip (0,0) rectangle (5,3);
% \path[draw, thick, dashed, fill=gray, fill opacity=0.2] (n0) circle (1.3);
% \end{scope}}
% \visible<4-5>{
% \begin{scope}
% \clip (0,0) rectangle (5,3);
% \path[draw, thick, dashed, fill=gray, fill opacity=0.2] (n4) circle (1.3);
% \end{scope}}
% \visible<6-7>{
% \begin{scope}
% \clip (0,0) rectangle (5,3);
% \path[draw, thick, dashed, fill=gray, fill opacity=0.2] (n2) circle (1.3);
% \end{scope}}
% \visible<9>{
% \begin{scope}
% \clip (0,0) rectangle (5,3);
% \path[draw, thick, dashed, fill=gray, fill opacity=0.2] (n0) circle (1.3);
% \end{scope}}
% \visible<10-11>{
% \begin{scope}
% \clip (0,0) rectangle (5,3);
% \path[draw, thick, dashed, fill=gray, fill opacity=0.2] (n9) circle (1.3);
% \end{scope}}
% \visible<3->{
% \path[draw] (n0) -- (init);}
% \visible<5->{
% \path[draw] (n4) -- (init);}
% \visible<7->{
% \path[draw] (n2) -- (init);}
% \visible<11->{
% \path[draw] (n0) -- (n9);}
% \visible<13->{
% \path[draw] (n9) -- (n1);
% \path[draw] (n4) -- (n8);
% \path[draw] (n8) -- (n7);
% \path[draw] (n7) -- (n6);
% \path[draw] (n6) -- (n10);
% \path[draw] (n6) -- (n5);
% \path[draw] (n6) -- (goal);}
% \visible<14->{
% \path[draw=red, thick] (init) -- (n4) -- (n8) -- (n7) -- (n6) -- (goal);}
% \visible<1-7>{\path[draw, fill=gray] (init) circle (0.05) node[below] {$x_\mathrm{init}$};}
% \visible<8->{\path[draw, fill=black] (init) circle (0.05) node[below] {$x_\mathrm{init}$};}
% \visible<1-12>{\path[draw, fill=white] (goal) circle (0.05) node[above] {$x_\mathrm{goal}$};}
% \visible<13->{\path[draw, fill=gray] (goal) circle (0.05) node[above] {$x_\mathrm{goal}$};}
% \visible<1-7>{\path[draw, fill=white] (n0) circle (0.05);};
% \visible<8-11>{\path[draw, fill=gray] (n0) circle (0.05);};
% \visible<12->{\path[draw, fill=black] (n0) circle (0.05);};
% \visible<1-12>{\path[draw, fill=white] (n1) circle (0.05);};
% \visible<13->{\path[draw, fill=black] (n1) circle (0.05);};
% \visible<1-7>{\path[draw, fill=white] (n2) circle (0.05);};
% \visible<8->{\path[draw, fill=gray] (n2) circle (0.05);};
% \visible<13->{\path[draw, fill=black] (n2) circle (0.05);};
\path[draw, fill=white] (n3) circle (0.05);
% \visible<1-7>{\path[draw, fill=white] (n4) circle (0.05);};
% \visible<8->{\path[draw, fill=gray] (n4) circle (0.05);};
% \visible<13->{\path[draw, fill=black] (n4) circle (0.05);};
% \visible<1-12>{\path[draw, fill=white] (n5) circle (0.05);}
% \visible<13->{\path[draw, fill=gray] (n5) circle (0.05);}
% \visible<1-12>{\path[draw, fill=white] (n6) circle (0.05);}
% \visible<13->{\path[draw, fill=black] (n6) circle (0.05);}
% \visible<1-12>{\path[draw, fill=white] (n7) circle (0.05);}
% \visible<13->{\path[draw, fill=black] (n7) circle (0.05);}
% \visible<1-12>{\path[draw, fill=white] (n8) circle (0.05);}
% \visible<13->{\path[draw, fill=black] (n8) circle (0.05);}
% \visible<1-11>{\path[draw, fill=white] (n9) circle (0.05);}
% \visible<12->{\path[draw, fill=gray] (n9) circle (0.05);}
% \visible<13->{\path[draw, fill=black] (n9) circle (0.05);}
% \visible<1-12>{\path[draw, fill=white] (n10) circle (0.05);}
% \visible<13->{\path[draw, fill=gray] (n10) circle (0.05);}
\path[draw, very thick] (0,0) -- (5,0) -- (5,3) -- (0,3) -- cycle;
\path[draw, very thick, rounded corners=14pt, fill=black!30] (obs1) ++(-1.2,-1) -- ++(2,0.2) -- ++(0,1) -- ++(-1.5,0.5) -- cycle;
\path[draw, very thick, rounded corners=4pt, fill=black!30] (obs2) ++(-1.5,-0.25) -- ++(0,0.3) -- ++(1.3,0.2) -- ++(0.2,1) -- ++(0.3,0) -- ++(0.3,-1.6) -- cycle;
\end{tikzpicture}
\end{document}