-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrobots.tex
More file actions
57 lines (56 loc) · 2.2 KB
/
robots.tex
File metadata and controls
57 lines (56 loc) · 2.2 KB
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
\tikzset{
ground robot right/.pic={
% Coordinates
\coordinate (-north) at (0,9.7mm);
\coordinate (-south) at (0,0);
\coordinate (-center) at (4,85mm);
\coordinate (-east) at (2mm,4.85mm);
\coordinate (-west) at (-2mm,4.85mm);
\coordinate (-north east) at (2mm,9.7mm);
\coordinate (-north west) at (-2mm,9.7mm);
\coordinate (-south east) at (2mm,0);
\coordinate (-south west) at (-2mm,0);
\coordinate (-antenna) at (2mm,9.7mm);
% Wheels
\fill[black] (0mm,.7mm) arc[radius=.7mm,start angle=-180,end angle=0];
\fill[black] (-2mm,.7mm) arc[radius=.7mm,start angle=-180,end angle=0];
% Body
\draw[pic actions, line join=round, line cap=round] (2mm,.7mm) arc[x radius=2mm, y radius=6mm, start angle=0, end angle=180] to[out=-10,in=-170] (2mm,.7mm);
% Antenna
\draw (0,6.7mm) to[out=90,in=180] +(2mm,3mm);
\filldraw (-antenna) circle(1pt);
% Eyes
\filldraw[fill=white] (1mm,4.7mm) circle[radius=.4mm];
\filldraw[fill=white] (.2mm,4.7mm) circle[radius=.4mm];
% Text
\node[below] at (-south) {\tikzpictext};
}
}
\tikzset{
ground robot left/.pic={
% Coordinates
\coordinate (-north) at (0,9.7mm);
\coordinate (-south) at (0,0);
\coordinate (-center) at (4,85mm);
\coordinate (-east) at (2mm,4.85mm);
\coordinate (-west) at (-2mm,4.85mm);
\coordinate (-north east) at (2mm,9.7mm);
\coordinate (-north west) at (-2mm,9.7mm);
\coordinate (-south east) at (2mm,0);
\coordinate (-south west) at (-2mm,0);
\coordinate (-antenna) at (-2mm,9.7mm);
% Wheels
\fill[black] (-1.4mm,.7mm) arc[radius=.7mm,start angle=-180,end angle=0];
\fill[black] (.6mm,.7mm) arc[radius=.7mm,start angle=-180,end angle=0];
% Body
\draw[pic actions, line join=round, line cap=round] (2mm,.7mm) arc[x radius=2mm, y radius=6mm, start angle=0, end angle=180] to[out=-10,in=-170] (2mm,.7mm);
% Antenna
\draw (0,6.7mm) to[out=90,in=0] +(-2mm,3mm);
\filldraw (-antenna) circle(1pt);
% Eyes
\filldraw[fill=white] (-1mm,4.7mm) circle[radius=.4mm];
\filldraw[fill=white] (-.2mm,4.7mm) circle[radius=.4mm];
% Text
\node[below] at (-south) {\tikzpictext};
}
}