File: robotarm.cwl

package info (click to toggle)
texstudio 4.3.1%2Bds-2
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 74,980 kB
  • sloc: cpp: 102,721; xml: 17,126; ansic: 8,143; sh: 194; javascript: 177; makefile: 28
file content (94 lines) | stat: -rw-r--r-- 2,183 bytes parent folder | download
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
# robotarm package
# Matthew Bertucci 3/9/2022 for v0.1

#include:tikz
# loads patterns tikzlibrary

\robotArm{number}
\robotArm[options%keyvals]{number}

#keyvals:\robotArm#c
geometry={%<keyvals%>}
config={%<keyvals%>}
styles={%<styles%>}
#endkeyvals

\robotArmBaseLink
\robotArmBaseLink[options%keyvals]

#keyvals:\robotArmBaseLink#c
height=%<value%>
width=%<value%>
world width=%<value%>
world height=%<value%>
draw base link/.code={%<code%>}
draw world/.code={%<code%>}
#endkeyvals

\robotArmLink
\robotArmLink[options%keyvals]

#keyvals:\robotArmLink#c
width=%<value%>
length=%<value%>
joint radius=%<value%>
draw link/.code={%<code%>}
draw joint/.code={%<code%>}
#endkeyvals

\robotArmEndEffector
\robotArmEndEffector[options%keyvals]

#keyvals:\robotArmEndEffector#c
width=%<value%>
length=%<value%>
joint radius=%<value%>
gripper radius=%<value%>
gripper opening angle=%<degrees%>
draw link/.code={%<code%>}
draw joint/.code={%<code%>}
draw end effector/.code={%<code%>}
#endkeyvals

\robotarmset{options%keyvals}

#keyvals:\robotarmset#c
geometry={%<keyvals%>}
config={%<keyvals%>}
styles={%<styles%>}
base link/height=%<value%>
base link/width=%<value%>
base link/world width=%<value%>
base link/world height=%<value%>
base link/draw base link/.code={%<code%>}
base link/draw world/.code={%<code%>}
link/width=%<value%>
link/length=%<value%>
link/joint radius=%<value%>
link/draw link/.code={%<code%>}
link/draw joint/.code={%<code%>}
end effector/width=%<value%>
end effector/length=%<value%>
end effector/joint radius=%<value%>
end effector/gripper radius=%<value%>
end effector/gripper opening angle=%<degrees%>
end effector/draw link/.code={%<code%>}
end effector/draw joint/.code={%<code%>}
end effector/draw end effector/.code={%<code%>}
#endkeyvals

\angleannotationcase#*

#keyvals:\path#c,\draw#c
link style
world style
#endkeyvals

#keyvals:\tikzset#c
link style/.style={%<TikZ keys%>}
world style/.style={%<TikZ keys%>}
in link/.style={%<TikZ keys%>}
in base link/.style={%<TikZ keys%>}
in world/.style={%<TikZ keys%>}
in end effector/.style={%<TikZ keys%>}
#endkeyvals