forked from a2s-institute/youbot_driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gnuplotconfig
192 lines (157 loc) · 4.53 KB
/
gnuplotconfig
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
set terminal postscript eps enhanced color solid
set terminal postscript landscape
set output "|ps2pdf - jointDataPlot.pdf"
#set output "|epstopdf --filter > jointDataPlot.pdf"
set datafile missing "NaN"
#show datafile missing
set pointsize 0.5
set title "joint angle"
set ylabel "angle [rad]"
set xlabel "time [milliseconds]"
set grid
set offsets 0, 0, 0.1, 0.1
plot "jointDataTrace" using 1:2 title 'angle setpoint' with dots linewidth 5, "jointDataTrace" using 1:9 title 'sensed angle' with lines linewidth 2
set title "joint encoder ticks"
set ylabel "encoder ticks"
set xlabel "time [milliseconds]"
set grid
set offsets 0, 0, 0.01, 0.01
plot "jointDataTrace" using 1:8 title 'encoder setpoint' with dots linewidth 5, "jointDataTrace" using 1:10 title 'sensed encoder' with lines linewidth 2
set title "joint velocity"
set ylabel "velocity [rad/s]"
set xlabel "time [milliseconds]"
set grid
set offsets 0, 0, 0.2, 0.2
plot "jointDataTrace" using 1:3 title 'velocity setpoint' with dots linewidth 5, "jointDataTrace" using 1:11 title 'sensed velocity' with lines linewidth 2
set title "joint rounds per minute"
set ylabel "rpm"
set xlabel "time [milliseconds]"
set grid
set offsets 0, 0, 1, 1
plot "jointDataTrace" using 1:4 title 'rpm setpoint' with dots linewidth 5, "jointDataTrace" using 1:12 title 'sensed rpm' with lines linewidth 2
set title "joint current"
set ylabel "current [ampere]"
set xlabel "time [milliseconds]"
set grid
set offsets 0, 0, 0.1, 0.1
plot "jointDataTrace" using 1:5 title 'current setpoint' with dots linewidth 5, "jointDataTrace" using 1:13 title 'sensed current' with lines linewidth 2
set title "joint torque"
set ylabel "torque [Nm]"
set xlabel "time [milliseconds]"
set grid
set offsets 0, 0, 0.01, 0.01
plot "jointDataTrace" using 1:6 title 'torque setpoint' with dots linewidth 5, "jointDataTrace" using 1:14 title 'sensed torque' with lines linewidth 2
set title "ramp generator velocity setpoint"
set ylabel "velocity setpoint"
set xlabel "time [milliseconds]"
set grid
set offsets 0, 0, 0.01, 0.01
plot "jointDataTrace" using 1:7 title 'ramp generator velocity setpoint' with dots linewidth 5
unset datafile
set multiplot
set xlabel ""
set title ""
set size 1, 0.25
set origin 0.0,0.25
set yrange [-0.1:1.1]
set ytics 1
set ylabel "velocity mode"
set grid
plot "jointDataTrace" using 1:23 title '' with lines linewidth 3
set size 1, 0.25
set origin 0.0,0.5
set yrange [-0.1:1.1]
set ytics 1
set ylabel "position mode"
set grid
plot "jointDataTrace" using 1:24 title '' with lines linewidth 3
set size 1, 0.25
set origin 0.0,0.75
set yrange [-0.1:1.1]
set ytics 1
set ylabel "torque mode"
set grid
plot "jointDataTrace" using 1:25 title '' with lines linewidth 3
unset multiplot
set multiplot
set xlabel ""
set title ""
set size 1, 0.25
set origin 0,0
set yrange [-0.1:1.1]
set ytics 1
set ylabel "over current"
set grid
plot "jointDataTrace" using 1:16 title '' with lines linewidth 3
set size 1, 0.25
set origin 0.0,0.25
set yrange [-0.1:1.1]
set ytics 1
set ylabel "under voltage"
set grid
plot "jointDataTrace" using 1:17 title '' with lines linewidth 3
set size 1, 0.25
set origin 0.0,0.5
set yrange [-0.1:1.1]
set ytics 1
set ylabel "over voltage"
set grid
plot "jointDataTrace" using 1:18 title '' with lines linewidth 3
set size 1, 0.25
set origin 0.0,0.75
set yrange [-0.1:1.1]
set ytics 1
set ylabel "over temperature"
set grid
plot "jointDataTrace" using 1:19 title '' with lines linewidth 3
unset multiplot
set multiplot
set xlabel ""
set title ""
set size 1, 0.25
set origin 0,0
set yrange [-0.1:1.1]
set ytics 1
set ylabel "motor halted"
set grid
plot "jointDataTrace" using 1:20 title '' with lines linewidth 3
set size 1, 0.25
set origin 0.0,0.25
set yrange [-0.1:1.1]
set ytics 1
set ylabel "hall sensor error"
set grid
plot "jointDataTrace" using 1:21 title '' with lines linewidth 3
set size 1, 0.25
set origin 0.0,0.5
set yrange [-0.1:1.1]
set ytics 1
set ylabel "position reached"
set grid
plot "jointDataTrace" using 1:26 title '' with lines linewidth 3
set size 1, 0.25
set origin 0.0,0.75
set yrange [-0.1:1.1]
set ytics 1
set ylabel "initialized"
set grid
plot "jointDataTrace" using 1:27 title '' with lines linewidth 3
unset multiplot
set multiplot
set xlabel ""
set title ""
set size 1, 0.25
set origin 0,0
set yrange [-0.1:1.1]
set ytics 1
set ylabel "timeout"
set grid
plot "jointDataTrace" using 1:28 title '' with lines linewidth 3
set size 1, 0.25
set origin 0.0,0.25
set yrange [-0.1:1.1]
set ytics 1
set ylabel "i2t exeeded"
set grid
plot "jointDataTrace" using 1:29 title '' with lines linewidth 3
unset multiplot