-
Notifications
You must be signed in to change notification settings - Fork 16
/
plotJuggler_DebugLayout.xml
270 lines (269 loc) · 14.7 KB
/
plotJuggler_DebugLayout.xml
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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
<?xml version='1.0' encoding='UTF-8'?>
<root>
<tabbed_widget parent="main_window" name="Main Window">
<Tab tab_name="tab1" containers="1">
<Container>
<DockSplitter count="4" orientation="-" sizes="0.25;0.25;0.25;0.25">
<DockSplitter count="3" orientation="|" sizes="0.333544;0.332912;0.333544">
<DockArea name="FL x">
<plot flip_x="false" flip_y="false" style="Lines" mode="TimeSeries">
<range right="19.396400" left="14.406200" bottom="0.189710" top="0.220086"/>
<limitY/>
<curve name="/a1_debug/FL/pose/pose/position/x" color="#000000"/>
<curve name="/a1_debug/FL_pose_d/pose/pose/position/x" color="#0e7dff"/>
</plot>
</DockArea>
<DockArea name="FL y">
<plot flip_x="false" flip_y="false" style="Lines" mode="TimeSeries">
<range right="19.396400" left="14.406200" bottom="0.121123" top="0.199392"/>
<limitY/>
<curve name="/a1_debug/FL/pose/pose/position/y" color="#000000"/>
<curve name="/a1_debug/FL_pose_d/pose/pose/position/y" color="#0e7dff"/>
</plot>
</DockArea>
<DockArea name="FL z">
<plot flip_x="false" flip_y="false" style="Lines" mode="TimeSeries">
<range right="19.396400" left="14.406200" bottom="-0.003316" top="0.074902"/>
<limitY/>
<curve name="/a1_debug/FL/pose/pose/position/z" color="#000000"/>
<curve name="/a1_debug/FL_pose_d/pose/pose/position/z" color="#0e7dff"/>
</plot>
</DockArea>
</DockSplitter>
<DockSplitter count="3" orientation="|" sizes="0.334176;0.331649;0.334176">
<DockArea name="FR x">
<plot flip_x="false" flip_y="false" style="Lines" mode="TimeSeries">
<range right="19.396400" left="14.406200" bottom="0.191325" top="0.222404"/>
<limitY/>
<curve name="/a1_debug/FR/pose/pose/position/x" color="#000000"/>
<curve name="/a1_debug/FR_pose_d/pose/pose/position/x" color="#0e7dff"/>
</plot>
</DockArea>
<DockArea name="FR y">
<plot flip_x="false" flip_y="false" style="Lines" mode="TimeSeries">
<range right="19.396400" left="14.406200" bottom="-0.197423" top="-0.129427"/>
<limitY/>
<curve name="/a1_debug/FR/pose/pose/position/y" color="#000000"/>
<curve name="/a1_debug/FR_pose_d/pose/pose/position/y" color="#0e7dff"/>
</plot>
</DockArea>
<DockArea name="FR z">
<plot flip_x="false" flip_y="false" style="Lines" mode="TimeSeries">
<range right="19.396400" left="14.406200" bottom="-0.004970" top="0.079036"/>
<limitY/>
<curve name="/a1_debug/FR/pose/pose/position/z" color="#000000"/>
<curve name="/a1_debug/FR_pose_d/pose/pose/position/z" color="#0e7dff"/>
</plot>
</DockArea>
</DockSplitter>
<DockSplitter count="3" orientation="|" sizes="0.334176;0.331649;0.334176">
<DockArea name="RL x">
<plot flip_x="false" flip_y="false" style="Lines" mode="TimeSeries">
<range right="19.396400" left="14.406200" bottom="-0.229835" top="-0.181386"/>
<limitY/>
<curve name="/a1_debug/RL/pose/pose/position/x" color="#000000"/>
<curve name="/a1_debug/RL_pose_d/pose/pose/position/x" color="#0e7dff"/>
</plot>
</DockArea>
<DockArea name="RL y">
<plot flip_x="false" flip_y="false" style="Lines" mode="TimeSeries">
<range right="19.396400" left="14.406200" bottom="0.133758" top="0.192183"/>
<limitY/>
<curve name="/a1_debug/RL/pose/pose/position/y" color="#000000"/>
<curve name="/a1_debug/RL_pose_d/pose/pose/position/y" color="#0e7dff"/>
</plot>
</DockArea>
<DockArea name="RL z">
<plot flip_x="false" flip_y="false" style="Lines" mode="TimeSeries">
<range right="19.396400" left="14.406200" bottom="-0.004568" top="0.075637"/>
<limitY/>
<curve name="/a1_debug/RL/pose/pose/position/z" color="#000000"/>
<curve name="/a1_debug/RL_pose_d/pose/pose/position/z" color="#0e7dff"/>
</plot>
</DockArea>
</DockSplitter>
<DockSplitter count="3" orientation="|" sizes="0.334176;0.331649;0.334176">
<DockArea name="RR x">
<plot flip_x="false" flip_y="false" style="Lines" mode="TimeSeries">
<range right="19.396400" left="14.406200" bottom="-0.216333" top="-0.178486"/>
<limitY/>
<curve name="/a1_debug/RR/pose/pose/position/x" color="#000000"/>
<curve name="/a1_debug/RR_pose_d/pose/pose/position/x" color="#0e7dff"/>
</plot>
</DockArea>
<DockArea name="RR y">
<plot flip_x="false" flip_y="false" style="Lines" mode="TimeSeries">
<range right="19.396400" left="14.406200" bottom="-0.200252" top="-0.136681"/>
<limitY/>
<curve name="/a1_debug/RR/pose/pose/position/y" color="#000000"/>
<curve name="/a1_debug/RR_pose_d/pose/pose/position/y" color="#0e7dff"/>
</plot>
</DockArea>
<DockArea name="RR z">
<plot flip_x="false" flip_y="false" style="Lines" mode="TimeSeries">
<range right="19.396400" left="14.406200" bottom="-0.003416" top="0.073674"/>
<limitY/>
<curve name="/a1_debug/RR/pose/pose/position/z" color="#000000"/>
<curve name="/a1_debug/RR_pose_d/pose/pose/position/z" color="#0e7dff"/>
</plot>
</DockArea>
</DockSplitter>
</DockSplitter>
</Container>
</Tab>
<Tab tab_name="tab2" containers="1">
<Container>
<DockSplitter count="4" orientation="-" sizes="0.25;0.25;0.25;0.25">
<DockSplitter count="3" orientation="|" sizes="0.333544;0.332912;0.333544">
<DockArea name="FL calf">
<plot flip_x="false" flip_y="false" style="Lines" mode="TimeSeries">
<range right="19.396400" left="14.406200" bottom="-2.112724" top="-1.445133"/>
<limitY/>
<curve name="/a1_debug/joint/FL_calf/position" color="#000000"/>
<curve name="/a1_debug/joint_d/FL_calf/position" color="#0e7dff"/>
</plot>
</DockArea>
<DockArea name="FL hip">
<plot flip_x="false" flip_y="false" style="Lines" mode="TimeSeries">
<range right="19.396400" left="14.406200" bottom="0.004155" top="0.225071"/>
<limitY/>
<curve name="/a1_debug/joint/FL_hip/position" color="#000000"/>
<curve name="/a1_debug/joint_d/FL_hip/position" color="#0e7dff"/>
</plot>
</DockArea>
<DockArea name="FL thigh">
<plot flip_x="false" flip_y="false" style="Lines" mode="TimeSeries">
<range right="19.396400" left="14.406200" bottom="0.679026" top="1.048331"/>
<limitY/>
<curve name="/a1_debug/joint/FL_thigh/position" color="#000000"/>
<curve name="/a1_debug/joint_d/FL_thigh/position" color="#0e7dff"/>
</plot>
</DockArea>
</DockSplitter>
<DockSplitter count="3" orientation="|" sizes="0.334176;0.331649;0.334176">
<DockArea name="FR calf">
<plot flip_x="false" flip_y="false" style="Lines" mode="TimeSeries">
<range right="19.396400" left="14.406200" bottom="-2.077122" top="-1.463717"/>
<limitY/>
<curve name="/a1_debug/joint/FR_calf/position" color="#000000"/>
<curve name="/a1_debug/joint_d/FR_calf/position" color="#0e7dff"/>
</plot>
</DockArea>
<DockArea name="FR hip">
<plot flip_x="false" flip_y="false" style="Lines" mode="TimeSeries">
<range right="19.396400" left="14.406200" bottom="-0.237481" top="0.004762"/>
<limitY/>
<curve name="/a1_debug/joint/FR_hip/position" color="#000000"/>
<curve name="/a1_debug/joint_d/FR_hip/position" color="#0e7dff"/>
</plot>
</DockArea>
<DockArea name="FR thigh">
<plot flip_x="false" flip_y="false" style="Lines" mode="TimeSeries">
<range right="19.396400" left="14.406200" bottom="0.680416" top="1.049809"/>
<limitY/>
<curve name="/a1_debug/joint/FR_thigh/position" color="#000000"/>
<curve name="/a1_debug/joint_d/FR_thigh/position" color="#0e7dff"/>
</plot>
</DockArea>
</DockSplitter>
<DockSplitter count="3" orientation="|" sizes="0.334176;0.331649;0.334176">
<DockArea name="RL calf">
<plot flip_x="false" flip_y="false" style="Lines" mode="TimeSeries">
<range right="19.396400" left="14.406200" bottom="-2.120866" top="-1.533850"/>
<limitY/>
<curve name="/a1_debug/joint/RL_calf/position" color="#000000"/>
<curve name="/a1_debug/joint_d/RL_calf/position" color="#0e7dff"/>
</plot>
</DockArea>
<DockArea name="RL hip">
<plot flip_x="false" flip_y="false" style="Lines" mode="TimeSeries">
<range right="19.396400" left="14.406200" bottom="0.014266" top="0.310288"/>
<limitY/>
<curve name="/a1_debug/joint/RL_hip/position" color="#000000"/>
<curve name="/a1_debug/joint_d/RL_hip/position" color="#0e7dff"/>
</plot>
</DockArea>
<DockArea name="RL thigh">
<plot flip_x="false" flip_y="false" style="Lines" mode="TimeSeries">
<range right="19.396400" left="14.406200" bottom="0.873204" top="1.277369"/>
<limitY/>
<curve name="/a1_debug/joint/RL_thigh/position" color="#000000"/>
<curve name="/a1_debug/joint_d/RL_thigh/position" color="#0e7dff"/>
</plot>
</DockArea>
</DockSplitter>
<DockSplitter count="3" orientation="|" sizes="0.334176;0.331649;0.334176">
<DockArea name="RR calf">
<plot flip_x="false" flip_y="false" style="Lines" mode="TimeSeries">
<range right="19.396400" left="14.406200" bottom="-2.160857" top="-1.541104"/>
<limitY/>
<curve name="/a1_debug/joint/RR_calf/position" color="#000000"/>
<curve name="/a1_debug/joint_d/RR_calf/position" color="#0e7dff"/>
</plot>
</DockArea>
<DockArea name="RR hip">
<plot flip_x="false" flip_y="false" style="Lines" mode="TimeSeries">
<range right="19.396400" left="14.406200" bottom="-0.292342" top="-0.002051"/>
<limitY/>
<curve name="/a1_debug/joint/RR_hip/position" color="#000000"/>
<curve name="/a1_debug/joint_d/RR_hip/position" color="#0e7dff"/>
</plot>
</DockArea>
<DockArea name="RR thigh">
<plot flip_x="false" flip_y="false" style="Lines" mode="TimeSeries">
<range right="19.396400" left="14.406200" bottom="0.871581" top="1.270181"/>
<limitY/>
<curve name="/a1_debug/joint/RR_thigh/position" color="#000000"/>
<curve name="/a1_debug/joint_d/RR_thigh/position" color="#0e7dff"/>
</plot>
</DockArea>
</DockSplitter>
</DockSplitter>
</Container>
</Tab>
<currentTabIndex index="0"/>
</tabbed_widget>
<use_relative_time_offset enabled="1"/>
<!-- - - - - - - - - - - - - - - -->
<!-- - - - - - - - - - - - - - - -->
<Plugins>
<plugin ID="DataLoad CSV">
<default delimiter="0" time_axis=""/>
</plugin>
<plugin ID="DataLoad MCAP"/>
<plugin ID="DataLoad ROS bags">
<use_header_stamp value="false"/>
<discard_large_arrays value="true"/>
<max_array_size value="100"/>
<boolean_strings_to_number value="true"/>
<remove_suffix_from_strings value="true"/>
</plugin>
<plugin ID="DataLoad ULog"/>
<plugin ID="ROS Topic Subscriber">
<use_header_stamp value="false"/>
<discard_large_arrays value="true"/>
<max_array_size value="100"/>
<boolean_strings_to_number value="true"/>
<remove_suffix_from_strings value="true"/>
</plugin>
<plugin ID="UDP Server"/>
<plugin ID="WebSocket Server"/>
<plugin ID="ZMQ Subscriber"/>
<plugin ID="Fast Fourier Transform"/>
<plugin ID="Quaternion to RPY"/>
<plugin ID="Reactive Script Editor">
<library code="--[[ Helper function to create a series from arrays

 new_series: a series previously created with ScatterXY.new(name)
 prefix: prefix of the timeseries, before the index of the array
 suffix_X: suffix to complete the name of the series containing the X value. If [nil], use the index of the array.
 suffix_Y: suffix to complete the name of the series containing the Y value
 timestamp: usually the tracker_time variable
 
 Example:
 
 Assuming we have multiple series in the form:
 
 /trajectory/node.{X}/position/x
 /trajectory/node.{X}/position/y
 
 where {N} is the index of the array (integer). We can create a reactive series from the array with:
 
 new_series = ScatterXY.new("my_trajectory") 
 CreateSeriesFromArray( new_series, "/trajectory/node", "position/x", "position/y", tracker_time );
--]]

function CreateSeriesFromArray( new_series, prefix, suffix_X, suffix_Y, timestamp )
 
 --- clear previous values
 new_series:clear()
 
 --- Append points to new_series
 index = 0
 while(true) do

 x = index;
 -- if not nil, get the X coordinate from a series
 if suffix_X ~= nil then 
 series_x = TimeseriesView.find( string.format( "%s.%d/%s", prefix, index, suffix_X) )
 if series_x == nil then break end
 x = series_x:atTime(timestamp)	 
 end
 
 series_y = TimeseriesView.find( string.format( "%s.%d/%s", prefix, index, suffix_Y) )
 if series_y == nil then break end 
 y = series_y:atTime(timestamp)
 
 new_series:push_back(x,y)
 index = index+1
 end
end

--[[ Similar to the built-in function GetSeriesNames(), but select only the names with a give prefix. --]]

function GetSeriesNamesByPrefix(prefix)
 -- GetSeriesNames(9 is a built-in function
 all_names = GetSeriesNames()
 filtered_names = {}
 for i, name in ipairs(all_names) do
 -- check the prefix
 if name:find(prefix, 1, #prefix) then
 table.insert(filtered_names, name);
 end
 end
 return filtered_names
end

--[[ Modify an existing series, applying offsets to all their X and Y values

 series: an existing timeseries, obtained with TimeseriesView.find(name)
 delta_x: offset to apply to each x value
 delta_y: offset to apply to each y value 
 
--]]

function ApplyOffsetInPlace(series, delta_x, delta_y)
 -- use C++ indeces, not Lua indeces
 for index=0, series:size()-1 do
 x,y = series:at(index)
 series:set(index, x + delta_x, y + delta_y)
 end
end
"/>
<scripts/>
</plugin>
<plugin ID="CSV Exporter"/>
<plugin ID="ROS /rosout Visualization"/>
<plugin ID="ROS Topic Re-Publisher"/>
</Plugins>
<!-- - - - - - - - - - - - - - - -->
<previouslyLoaded_Datafiles/>
<previouslyLoaded_Streamer name="ROS Topic Subscriber"/>
<!-- - - - - - - - - - - - - - - -->
<customMathEquations/>
<snippets/>
<!-- - - - - - - - - - - - - - - -->
</root>