-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui_freeimu_cal.py
498 lines (490 loc) · 31 KB
/
ui_freeimu_cal.py
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
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'freeimu_cal.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _fromUtf8(s):
return s
try:
_encoding = QtGui.QApplication.UnicodeUTF8
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig)
class Ui_FreeIMUCal(object):
def setupUi(self, FreeIMUCal):
FreeIMUCal.setObjectName(_fromUtf8("FreeIMUCal"))
FreeIMUCal.setEnabled(True)
FreeIMUCal.resize(840, 840)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(FreeIMUCal.sizePolicy().hasHeightForWidth())
FreeIMUCal.setSizePolicy(sizePolicy)
FreeIMUCal.setMinimumSize(QtCore.QSize(840, 840))
FreeIMUCal.setMaximumSize(QtCore.QSize(840, 840))
FreeIMUCal.setDocumentMode(False)
self.centralwidget = QtGui.QWidget(FreeIMUCal)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Maximum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth())
self.centralwidget.setSizePolicy(sizePolicy)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.line = QtGui.QFrame(self.centralwidget)
self.line.setGeometry(QtCore.QRect(0, 80, 881, 16))
self.line.setFrameShape(QtGui.QFrame.HLine)
self.line.setFrameShadow(QtGui.QFrame.Sunken)
self.line.setObjectName(_fromUtf8("line"))
self.gridLayoutWidget = QtGui.QWidget(self.centralwidget)
self.gridLayoutWidget.setGeometry(QtCore.QRect(0, 0, 829, 95))
self.gridLayoutWidget.setObjectName(_fromUtf8("gridLayoutWidget"))
self.gridLayout = QtGui.QGridLayout(self.gridLayoutWidget)
self.gridLayout.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.calAlgorithmComboBox = QtGui.QComboBox(self.gridLayoutWidget)
self.calAlgorithmComboBox.setEnabled(False)
self.calAlgorithmComboBox.setObjectName(_fromUtf8("calAlgorithmComboBox"))
self.calAlgorithmComboBox.addItem(_fromUtf8(""))
self.gridLayout.addWidget(self.calAlgorithmComboBox, 0, 9, 1, 1)
self.calibrateButton = QtGui.QPushButton(self.gridLayoutWidget)
self.calibrateButton.setEnabled(False)
self.calibrateButton.setObjectName(_fromUtf8("calibrateButton"))
self.gridLayout.addWidget(self.calibrateButton, 0, 10, 1, 1)
self.imuTopicEdit = QtGui.QLineEdit(self.gridLayoutWidget)
self.imuTopicEdit.setObjectName(_fromUtf8("imuTopicEdit"))
self.gridLayout.addWidget(self.imuTopicEdit, 0, 1, 1, 1)
self.line_2 = QtGui.QFrame(self.gridLayoutWidget)
self.line_2.setFrameShape(QtGui.QFrame.VLine)
self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
self.line_2.setObjectName(_fromUtf8("line_2"))
self.gridLayout.addWidget(self.line_2, 0, 4, 1, 1)
spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.gridLayout.addItem(spacerItem, 0, 7, 1, 1)
self.label = QtGui.QLabel(self.gridLayoutWidget)
self.label.setObjectName(_fromUtf8("label"))
self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
self.magnTopicEdit = QtGui.QLineEdit(self.gridLayoutWidget)
self.magnTopicEdit.setObjectName(_fromUtf8("magnTopicEdit"))
self.gridLayout.addWidget(self.magnTopicEdit, 2, 1, 1, 1)
self.label_5 = QtGui.QLabel(self.gridLayoutWidget)
self.label_5.setObjectName(_fromUtf8("label_5"))
self.gridLayout.addWidget(self.label_5, 2, 0, 1, 1)
self.samplingToggleButton = QtGui.QPushButton(self.gridLayoutWidget)
self.samplingToggleButton.setEnabled(False)
self.samplingToggleButton.setAutoDefault(False)
self.samplingToggleButton.setDefault(False)
self.samplingToggleButton.setFlat(False)
self.samplingToggleButton.setObjectName(_fromUtf8("samplingToggleButton"))
self.gridLayout.addWidget(self.samplingToggleButton, 0, 8, 1, 1)
self.label_6 = QtGui.QLabel(self.gridLayoutWidget)
self.label_6.setObjectName(_fromUtf8("label_6"))
self.gridLayout.addWidget(self.label_6, 2, 9, 1, 1)
self.connectButton = QtGui.QPushButton(self.gridLayoutWidget)
self.connectButton.setObjectName(_fromUtf8("connectButton"))
self.gridLayout.addWidget(self.connectButton, 0, 2, 1, 1)
self.line_4 = QtGui.QFrame(self.gridLayoutWidget)
self.line_4.setFrameShape(QtGui.QFrame.VLine)
self.line_4.setFrameShadow(QtGui.QFrame.Sunken)
self.line_4.setObjectName(_fromUtf8("line_4"))
self.gridLayout.addWidget(self.line_4, 2, 4, 1, 1)
spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.gridLayout.addItem(spacerItem1, 0, 3, 1, 1)
self.tabWidget = QtGui.QTabWidget(self.centralwidget)
self.tabWidget.setGeometry(QtCore.QRect(10, 100, 801, 711))
self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
self.uncalibratedTab = QtGui.QWidget()
self.uncalibratedTab.setObjectName(_fromUtf8("uncalibratedTab"))
self.gridLayoutWidget_4 = QtGui.QWidget(self.uncalibratedTab)
self.gridLayoutWidget_4.setGeometry(QtCore.QRect(0, 10, 791, 588))
self.gridLayoutWidget_4.setObjectName(_fromUtf8("gridLayoutWidget_4"))
self.gridLayout_4 = QtGui.QGridLayout(self.gridLayoutWidget_4)
self.gridLayout_4.setSizeConstraint(QtGui.QLayout.SetMaximumSize)
self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
self.gridLayout_5 = QtGui.QGridLayout()
self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
self.label_2 = QtGui.QLabel(self.gridLayoutWidget_4)
self.label_2.setAlignment(QtCore.Qt.AlignCenter)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.gridLayout_5.addWidget(self.label_2, 0, 1, 1, 1)
self.accYZ = PlotWidget(self.gridLayoutWidget_4)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.accYZ.sizePolicy().hasHeightForWidth())
self.accYZ.setSizePolicy(sizePolicy)
self.accYZ.setObjectName(_fromUtf8("accYZ"))
self.gridLayout_5.addWidget(self.accYZ, 1, 0, 1, 1)
self.accZX = PlotWidget(self.gridLayoutWidget_4)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.accZX.sizePolicy().hasHeightForWidth())
self.accZX.setSizePolicy(sizePolicy)
self.accZX.setObjectName(_fromUtf8("accZX"))
self.gridLayout_5.addWidget(self.accZX, 1, 1, 1, 1)
self.accXY = PlotWidget(self.gridLayoutWidget_4)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.accXY.sizePolicy().hasHeightForWidth())
self.accXY.setSizePolicy(sizePolicy)
self.accXY.setObjectName(_fromUtf8("accXY"))
self.gridLayout_5.addWidget(self.accXY, 0, 0, 1, 1)
self.gridLayout_4.addLayout(self.gridLayout_5, 1, 0, 1, 1)
self.gridLayout_3 = QtGui.QGridLayout()
self.gridLayout_3.setSizeConstraint(QtGui.QLayout.SetFixedSize)
self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
self.magnXY = PlotWidget(self.gridLayoutWidget_4)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.magnXY.sizePolicy().hasHeightForWidth())
self.magnXY.setSizePolicy(sizePolicy)
self.magnXY.setObjectName(_fromUtf8("magnXY"))
self.gridLayout_3.addWidget(self.magnXY, 0, 0, 1, 1)
self.magnYZ = PlotWidget(self.gridLayoutWidget_4)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.magnYZ.sizePolicy().hasHeightForWidth())
self.magnYZ.setSizePolicy(sizePolicy)
self.magnYZ.setObjectName(_fromUtf8("magnYZ"))
self.gridLayout_3.addWidget(self.magnYZ, 1, 0, 1, 1)
self.magnZX = PlotWidget(self.gridLayoutWidget_4)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.magnZX.sizePolicy().hasHeightForWidth())
self.magnZX.setSizePolicy(sizePolicy)
self.magnZX.setObjectName(_fromUtf8("magnZX"))
self.gridLayout_3.addWidget(self.magnZX, 1, 1, 1, 1)
self.label_3 = QtGui.QLabel(self.gridLayoutWidget_4)
self.label_3.setAlignment(QtCore.Qt.AlignCenter)
self.label_3.setObjectName(_fromUtf8("label_3"))
self.gridLayout_3.addWidget(self.label_3, 0, 1, 1, 1)
self.gridLayout_4.addLayout(self.gridLayout_3, 1, 2, 1, 1)
self.magn3D = GLViewWidget(self.gridLayoutWidget_4)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.magn3D.sizePolicy().hasHeightForWidth())
self.magn3D.setSizePolicy(sizePolicy)
self.magn3D.setObjectName(_fromUtf8("magn3D"))
self.gridLayout_4.addWidget(self.magn3D, 0, 2, 1, 1)
self.acc3D = GLViewWidget(self.gridLayoutWidget_4)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.acc3D.sizePolicy().hasHeightForWidth())
self.acc3D.setSizePolicy(sizePolicy)
self.acc3D.setObjectName(_fromUtf8("acc3D"))
self.gridLayout_4.addWidget(self.acc3D, 0, 0, 1, 1)
self.line_3 = QtGui.QFrame(self.gridLayoutWidget_4)
self.line_3.setLineWidth(1)
self.line_3.setFrameShape(QtGui.QFrame.VLine)
self.line_3.setFrameShadow(QtGui.QFrame.Sunken)
self.line_3.setObjectName(_fromUtf8("line_3"))
self.gridLayout_4.addWidget(self.line_3, 1, 1, 1, 1)
self.tabWidget.addTab(self.uncalibratedTab, _fromUtf8(""))
self.calibratedTab = QtGui.QWidget()
self.calibratedTab.setObjectName(_fromUtf8("calibratedTab"))
self.horizontalLayoutWidget = QtGui.QWidget(self.calibratedTab)
self.horizontalLayoutWidget.setGeometry(QtCore.QRect(0, 380, 791, 231))
self.horizontalLayoutWidget.setObjectName(_fromUtf8("horizontalLayoutWidget"))
self.horizontalLayout = QtGui.QHBoxLayout(self.horizontalLayoutWidget)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.groupBox = QtGui.QGroupBox(self.horizontalLayoutWidget)
self.groupBox.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.groupBox.setFlat(False)
self.groupBox.setCheckable(False)
self.groupBox.setObjectName(_fromUtf8("groupBox"))
self.layoutWidget = QtGui.QWidget(self.groupBox)
self.layoutWidget.setGeometry(QtCore.QRect(10, 20, 381, 201))
self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
self.formLayout_3 = QtGui.QFormLayout(self.layoutWidget)
self.formLayout_3.setSizeConstraint(QtGui.QLayout.SetNoConstraint)
self.formLayout_3.setFieldGrowthPolicy(QtGui.QFormLayout.ExpandingFieldsGrow)
self.formLayout_3.setLabelAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.formLayout_3.setObjectName(_fromUtf8("formLayout_3"))
self.label_14 = QtGui.QLabel(self.layoutWidget)
self.label_14.setObjectName(_fromUtf8("label_14"))
self.formLayout_3.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_14)
self.calRes_acc_OSx = QtGui.QLineEdit(self.layoutWidget)
self.calRes_acc_OSx.setObjectName(_fromUtf8("calRes_acc_OSx"))
self.formLayout_3.setWidget(0, QtGui.QFormLayout.FieldRole, self.calRes_acc_OSx)
self.label_15 = QtGui.QLabel(self.layoutWidget)
self.label_15.setObjectName(_fromUtf8("label_15"))
self.formLayout_3.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_15)
self.calRes_acc_OSy = QtGui.QLineEdit(self.layoutWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.calRes_acc_OSy.sizePolicy().hasHeightForWidth())
self.calRes_acc_OSy.setSizePolicy(sizePolicy)
self.calRes_acc_OSy.setObjectName(_fromUtf8("calRes_acc_OSy"))
self.formLayout_3.setWidget(1, QtGui.QFormLayout.FieldRole, self.calRes_acc_OSy)
self.label_16 = QtGui.QLabel(self.layoutWidget)
self.label_16.setObjectName(_fromUtf8("label_16"))
self.formLayout_3.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_16)
self.calRes_acc_OSz = QtGui.QLineEdit(self.layoutWidget)
self.calRes_acc_OSz.setObjectName(_fromUtf8("calRes_acc_OSz"))
self.formLayout_3.setWidget(2, QtGui.QFormLayout.FieldRole, self.calRes_acc_OSz)
self.label_17 = QtGui.QLabel(self.layoutWidget)
self.label_17.setObjectName(_fromUtf8("label_17"))
self.formLayout_3.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_17)
self.calRes_acc_SCx = QtGui.QLineEdit(self.layoutWidget)
self.calRes_acc_SCx.setObjectName(_fromUtf8("calRes_acc_SCx"))
self.formLayout_3.setWidget(3, QtGui.QFormLayout.FieldRole, self.calRes_acc_SCx)
self.label_18 = QtGui.QLabel(self.layoutWidget)
self.label_18.setObjectName(_fromUtf8("label_18"))
self.formLayout_3.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_18)
self.calRes_acc_SCy = QtGui.QLineEdit(self.layoutWidget)
self.calRes_acc_SCy.setObjectName(_fromUtf8("calRes_acc_SCy"))
self.formLayout_3.setWidget(4, QtGui.QFormLayout.FieldRole, self.calRes_acc_SCy)
self.label_19 = QtGui.QLabel(self.layoutWidget)
self.label_19.setObjectName(_fromUtf8("label_19"))
self.formLayout_3.setWidget(5, QtGui.QFormLayout.LabelRole, self.label_19)
self.calRes_acc_SCz = QtGui.QLineEdit(self.layoutWidget)
self.calRes_acc_SCz.setObjectName(_fromUtf8("calRes_acc_SCz"))
self.formLayout_3.setWidget(5, QtGui.QFormLayout.FieldRole, self.calRes_acc_SCz)
self.horizontalLayout.addWidget(self.groupBox)
self.groupBox_2 = QtGui.QGroupBox(self.horizontalLayoutWidget)
self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
self.layoutWidget_2 = QtGui.QWidget(self.groupBox_2)
self.layoutWidget_2.setGeometry(QtCore.QRect(10, 20, 381, 201))
self.layoutWidget_2.setObjectName(_fromUtf8("layoutWidget_2"))
self.formLayout_5 = QtGui.QFormLayout(self.layoutWidget_2)
self.formLayout_5.setSizeConstraint(QtGui.QLayout.SetNoConstraint)
self.formLayout_5.setFieldGrowthPolicy(QtGui.QFormLayout.ExpandingFieldsGrow)
self.formLayout_5.setLabelAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.formLayout_5.setObjectName(_fromUtf8("formLayout_5"))
self.label_27 = QtGui.QLabel(self.layoutWidget_2)
self.label_27.setObjectName(_fromUtf8("label_27"))
self.formLayout_5.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_27)
self.calRes_magn_OSx = QtGui.QLineEdit(self.layoutWidget_2)
self.calRes_magn_OSx.setObjectName(_fromUtf8("calRes_magn_OSx"))
self.formLayout_5.setWidget(0, QtGui.QFormLayout.FieldRole, self.calRes_magn_OSx)
self.label_28 = QtGui.QLabel(self.layoutWidget_2)
self.label_28.setObjectName(_fromUtf8("label_28"))
self.formLayout_5.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_28)
self.calRes_magn_OSy = QtGui.QLineEdit(self.layoutWidget_2)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.calRes_magn_OSy.sizePolicy().hasHeightForWidth())
self.calRes_magn_OSy.setSizePolicy(sizePolicy)
self.calRes_magn_OSy.setObjectName(_fromUtf8("calRes_magn_OSy"))
self.formLayout_5.setWidget(1, QtGui.QFormLayout.FieldRole, self.calRes_magn_OSy)
self.label_29 = QtGui.QLabel(self.layoutWidget_2)
self.label_29.setObjectName(_fromUtf8("label_29"))
self.formLayout_5.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_29)
self.calRes_magn_OSz = QtGui.QLineEdit(self.layoutWidget_2)
self.calRes_magn_OSz.setObjectName(_fromUtf8("calRes_magn_OSz"))
self.formLayout_5.setWidget(2, QtGui.QFormLayout.FieldRole, self.calRes_magn_OSz)
self.label_30 = QtGui.QLabel(self.layoutWidget_2)
self.label_30.setObjectName(_fromUtf8("label_30"))
self.formLayout_5.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_30)
self.calRes_magn_SCx = QtGui.QLineEdit(self.layoutWidget_2)
self.calRes_magn_SCx.setObjectName(_fromUtf8("calRes_magn_SCx"))
self.formLayout_5.setWidget(3, QtGui.QFormLayout.FieldRole, self.calRes_magn_SCx)
self.label_31 = QtGui.QLabel(self.layoutWidget_2)
self.label_31.setObjectName(_fromUtf8("label_31"))
self.formLayout_5.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_31)
self.calRes_magn_SCy = QtGui.QLineEdit(self.layoutWidget_2)
self.calRes_magn_SCy.setObjectName(_fromUtf8("calRes_magn_SCy"))
self.formLayout_5.setWidget(4, QtGui.QFormLayout.FieldRole, self.calRes_magn_SCy)
self.label_32 = QtGui.QLabel(self.layoutWidget_2)
self.label_32.setObjectName(_fromUtf8("label_32"))
self.formLayout_5.setWidget(5, QtGui.QFormLayout.LabelRole, self.label_32)
self.calRes_magn_SCz = QtGui.QLineEdit(self.layoutWidget_2)
self.calRes_magn_SCz.setObjectName(_fromUtf8("calRes_magn_SCz"))
self.formLayout_5.setWidget(5, QtGui.QFormLayout.FieldRole, self.calRes_magn_SCz)
self.horizontalLayout.addWidget(self.groupBox_2)
self.horizontalLayoutWidget_2 = QtGui.QWidget(self.calibratedTab)
self.horizontalLayoutWidget_2.setGeometry(QtCore.QRect(260, 620, 301, 51))
self.horizontalLayoutWidget_2.setObjectName(_fromUtf8("horizontalLayoutWidget_2"))
self.horizontalLayout_2 = QtGui.QHBoxLayout(self.horizontalLayoutWidget_2)
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.saveCalibrationHeaderButton = QtGui.QPushButton(self.horizontalLayoutWidget_2)
self.saveCalibrationHeaderButton.setEnabled(False)
self.saveCalibrationHeaderButton.setObjectName(_fromUtf8("saveCalibrationHeaderButton"))
self.horizontalLayout_2.addWidget(self.saveCalibrationHeaderButton)
self.horizontalLayoutWidget_3 = QtGui.QWidget(self.calibratedTab)
self.horizontalLayoutWidget_3.setGeometry(QtCore.QRect(0, 0, 791, 381))
self.horizontalLayoutWidget_3.setObjectName(_fromUtf8("horizontalLayoutWidget_3"))
self.horizontalLayout_3 = QtGui.QHBoxLayout(self.horizontalLayoutWidget_3)
self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
self.tabWidget_2 = QtGui.QTabWidget(self.horizontalLayoutWidget_3)
self.tabWidget_2.setTabPosition(QtGui.QTabWidget.South)
self.tabWidget_2.setTabShape(QtGui.QTabWidget.Rounded)
self.tabWidget_2.setUsesScrollButtons(True)
self.tabWidget_2.setDocumentMode(False)
self.tabWidget_2.setTabsClosable(False)
self.tabWidget_2.setMovable(False)
self.tabWidget_2.setObjectName(_fromUtf8("tabWidget_2"))
self.tab = QtGui.QWidget()
self.tab.setObjectName(_fromUtf8("tab"))
self.accXY_cal = PlotWidget(self.tab)
self.accXY_cal.setGeometry(QtCore.QRect(0, 0, 781, 351))
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.accXY_cal.sizePolicy().hasHeightForWidth())
self.accXY_cal.setSizePolicy(sizePolicy)
self.accXY_cal.setObjectName(_fromUtf8("accXY_cal"))
self.tabWidget_2.addTab(self.tab, _fromUtf8(""))
self.tab_4 = QtGui.QWidget()
self.tab_4.setObjectName(_fromUtf8("tab_4"))
self.accYZ_cal = PlotWidget(self.tab_4)
self.accYZ_cal.setGeometry(QtCore.QRect(0, 0, 781, 351))
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.accYZ_cal.sizePolicy().hasHeightForWidth())
self.accYZ_cal.setSizePolicy(sizePolicy)
self.accYZ_cal.setObjectName(_fromUtf8("accYZ_cal"))
self.tabWidget_2.addTab(self.tab_4, _fromUtf8(""))
self.tab_3 = QtGui.QWidget()
self.tab_3.setObjectName(_fromUtf8("tab_3"))
self.accZX_cal = PlotWidget(self.tab_3)
self.accZX_cal.setGeometry(QtCore.QRect(0, 0, 781, 351))
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.accZX_cal.sizePolicy().hasHeightForWidth())
self.accZX_cal.setSizePolicy(sizePolicy)
self.accZX_cal.setObjectName(_fromUtf8("accZX_cal"))
self.tabWidget_2.addTab(self.tab_3, _fromUtf8(""))
self.tab_7 = QtGui.QWidget()
self.tab_7.setObjectName(_fromUtf8("tab_7"))
self.acc3D_cal = GLViewWidget(self.tab_7)
self.acc3D_cal.setGeometry(QtCore.QRect(0, 0, 389, 351))
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.acc3D_cal.sizePolicy().hasHeightForWidth())
self.acc3D_cal.setSizePolicy(sizePolicy)
self.acc3D_cal.setObjectName(_fromUtf8("acc3D_cal"))
self.tabWidget_2.addTab(self.tab_7, _fromUtf8(""))
self.horizontalLayout_3.addWidget(self.tabWidget_2)
self.tabWidget_3 = QtGui.QTabWidget(self.horizontalLayoutWidget_3)
self.tabWidget_3.setTabPosition(QtGui.QTabWidget.South)
self.tabWidget_3.setTabShape(QtGui.QTabWidget.Rounded)
self.tabWidget_3.setUsesScrollButtons(True)
self.tabWidget_3.setDocumentMode(False)
self.tabWidget_3.setTabsClosable(False)
self.tabWidget_3.setMovable(False)
self.tabWidget_3.setObjectName(_fromUtf8("tabWidget_3"))
self.tab_2 = QtGui.QWidget()
self.tab_2.setObjectName(_fromUtf8("tab_2"))
self.magnXY_cal = PlotWidget(self.tab_2)
self.magnXY_cal.setGeometry(QtCore.QRect(-10, 0, 781, 351))
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.magnXY_cal.sizePolicy().hasHeightForWidth())
self.magnXY_cal.setSizePolicy(sizePolicy)
self.magnXY_cal.setObjectName(_fromUtf8("magnXY_cal"))
self.tabWidget_3.addTab(self.tab_2, _fromUtf8(""))
self.tab_5 = QtGui.QWidget()
self.tab_5.setObjectName(_fromUtf8("tab_5"))
self.magnYZ_cal = PlotWidget(self.tab_5)
self.magnYZ_cal.setGeometry(QtCore.QRect(0, 0, 781, 351))
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.magnYZ_cal.sizePolicy().hasHeightForWidth())
self.magnYZ_cal.setSizePolicy(sizePolicy)
self.magnYZ_cal.setObjectName(_fromUtf8("magnYZ_cal"))
self.tabWidget_3.addTab(self.tab_5, _fromUtf8(""))
self.tab_6 = QtGui.QWidget()
self.tab_6.setObjectName(_fromUtf8("tab_6"))
self.magnZX_cal = PlotWidget(self.tab_6)
self.magnZX_cal.setGeometry(QtCore.QRect(0, 0, 781, 351))
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.magnZX_cal.sizePolicy().hasHeightForWidth())
self.magnZX_cal.setSizePolicy(sizePolicy)
self.magnZX_cal.setObjectName(_fromUtf8("magnZX_cal"))
self.tabWidget_3.addTab(self.tab_6, _fromUtf8(""))
self.tab_8 = QtGui.QWidget()
self.tab_8.setObjectName(_fromUtf8("tab_8"))
self.magn3D_cal = GLViewWidget(self.tab_8)
self.magn3D_cal.setGeometry(QtCore.QRect(0, 0, 389, 351))
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.magn3D_cal.sizePolicy().hasHeightForWidth())
self.magn3D_cal.setSizePolicy(sizePolicy)
self.magn3D_cal.setObjectName(_fromUtf8("magn3D_cal"))
self.tabWidget_3.addTab(self.tab_8, _fromUtf8(""))
self.horizontalLayout_3.addWidget(self.tabWidget_3)
self.tabWidget.addTab(self.calibratedTab, _fromUtf8(""))
self.tab_9 = QtGui.QWidget()
self.tab_9.setObjectName(_fromUtf8("tab_9"))
self.label_4 = QtGui.QLabel(self.tab_9)
self.label_4.setGeometry(QtCore.QRect(290, 270, 261, 16))
self.label_4.setObjectName(_fromUtf8("label_4"))
self.tabWidget.addTab(self.tab_9, _fromUtf8(""))
FreeIMUCal.setCentralWidget(self.centralwidget)
self.statusbar = QtGui.QStatusBar(FreeIMUCal)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
FreeIMUCal.setStatusBar(self.statusbar)
self.retranslateUi(FreeIMUCal)
self.tabWidget.setCurrentIndex(0)
self.tabWidget_2.setCurrentIndex(0)
self.tabWidget_3.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(FreeIMUCal)
def retranslateUi(self, FreeIMUCal):
FreeIMUCal.setWindowTitle(_translate("FreeIMUCal", "FreeIMU Calibration Application", None))
self.calAlgorithmComboBox.setToolTip(_translate("FreeIMUCal", "<html><head/><body><p>Calibration Algorithm used.</p></body></html>", None))
self.calAlgorithmComboBox.setItemText(0, _translate("FreeIMUCal", "Ellipsoid to Sphere", None))
self.calibrateButton.setToolTip(_translate("FreeIMUCal", "Run calibration algorithm over the data collected", None))
self.calibrateButton.setText(_translate("FreeIMUCal", "Calibrate", None))
self.label.setText(_translate("FreeIMUCal", "ROS topic IMU", None))
self.label_5.setText(_translate("FreeIMUCal", "ROS topic MAG", None))
self.samplingToggleButton.setToolTip(_translate("FreeIMUCal", "Toggle Start/Stop sampling of sensor data from the IMU", None))
self.samplingToggleButton.setText(_translate("FreeIMUCal", "Start Sampling", None))
self.label_6.setText(_translate("FreeIMUCal", "Values multiplied by 1e3", None))
self.connectButton.setToolTip(_translate("FreeIMUCal", "Connect or Disconnect from ROS topic", None))
self.connectButton.setText(_translate("FreeIMUCal", "Connect", None))
self.label_2.setText(_translate("FreeIMUCal", "Accelerometer", None))
self.label_3.setText(_translate("FreeIMUCal", "Magnetometer", None))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.uncalibratedTab), _translate("FreeIMUCal", "Uncalibrated", None))
self.groupBox.setTitle(_translate("FreeIMUCal", "Accelerometer", None))
self.label_14.setText(_translate("FreeIMUCal", "Offset X", None))
self.label_15.setText(_translate("FreeIMUCal", "Offset Y", None))
self.label_16.setText(_translate("FreeIMUCal", "Offset Z", None))
self.label_17.setText(_translate("FreeIMUCal", "Scale X", None))
self.label_18.setText(_translate("FreeIMUCal", "Scale Y", None))
self.label_19.setText(_translate("FreeIMUCal", "Scale Z", None))
self.groupBox_2.setTitle(_translate("FreeIMUCal", "Magnetometer", None))
self.label_27.setText(_translate("FreeIMUCal", "Offset X", None))
self.label_28.setText(_translate("FreeIMUCal", "Offset Y", None))
self.label_29.setText(_translate("FreeIMUCal", "Offset Z", None))
self.label_30.setText(_translate("FreeIMUCal", "Scale X", None))
self.label_31.setText(_translate("FreeIMUCal", "Scale Y", None))
self.label_32.setText(_translate("FreeIMUCal", "Scale Z", None))
self.saveCalibrationHeaderButton.setToolTip(_translate("FreeIMUCal", "Store the calibration parameters in an header .h file.", None))
self.saveCalibrationHeaderButton.setText(_translate("FreeIMUCal", "Save to calibration.json", None))
self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab), _translate("FreeIMUCal", "Acc XY", None))
self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab_4), _translate("FreeIMUCal", "Acc YZ", None))
self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab_3), _translate("FreeIMUCal", "Acc ZX", None))
self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab_7), _translate("FreeIMUCal", "Acc 3D", None))
self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_2), _translate("FreeIMUCal", "Magn XY", None))
self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_5), _translate("FreeIMUCal", "Magn YZ", None))
self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_6), _translate("FreeIMUCal", "Magn ZX", None))
self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_8), _translate("FreeIMUCal", "Magn 3D", None))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.calibratedTab), _translate("FreeIMUCal", "Calibrated", None))
self.label_4.setText(_translate("FreeIMUCal", "To Be Implemented", None))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_9), _translate("FreeIMUCal", "Orientation Sensing Test", None))
from pyqtgraph import PlotWidget
from pyqtgraph.opengl import GLViewWidget