00001 /**************************************************************************** 00002 ** Form implementation generated from reading ui file 'Qt/rt100controlForm.ui' 00003 ** 00004 ** 00005 ** WARNING! All changes made in this file will be lost! 00006 ****************************************************************************/ 00007 00008 #include "Qt/ui/rt100controlForm.h" 00009 00010 #include <qvariant.h> 00011 #include <qpushbutton.h> 00012 #include <qgroupbox.h> 00013 #include <qlabel.h> 00014 #include <qspinbox.h> 00015 #include <qcheckbox.h> 00016 #include <qradiobutton.h> 00017 #include <qlineedit.h> 00018 #include <qlayout.h> 00019 #include <qtooltip.h> 00020 #include <qwhatsthis.h> 00021 #include "Qt/rt100controlForm.ui.h" 00022 00023 /* 00024 * Constructs a RT100ControlForm as a child of 'parent', with the 00025 * name 'name' and widget flags set to 'f'. 00026 * 00027 * The dialog will by default be modeless, unless you set 'modal' to 00028 * TRUE to construct a modal dialog. 00029 */ 00030 RT100ControlForm::RT100ControlForm( QWidget* parent, const char* name, bool modal, WFlags fl ) 00031 : QDialog( parent, name, modal, fl ) 00032 { 00033 if ( !name ) 00034 setName( "RT100ControlForm" ); 00035 00036 groupBox1 = new QGroupBox( this, "groupBox1" ); 00037 groupBox1->setGeometry( QRect( 12, 12, 124, 410 ) ); 00038 groupBox1->setColumnLayout(0, Qt::Vertical ); 00039 groupBox1->layout()->setSpacing( 6 ); 00040 groupBox1->layout()->setMargin( 11 ); 00041 groupBox1Layout = new QVBoxLayout( groupBox1->layout() ); 00042 groupBox1Layout->setAlignment( Qt::AlignTop ); 00043 00044 layout5 = new QHBoxLayout( 0, 0, 6, "layout5"); 00045 00046 textLabel1 = new QLabel( groupBox1, "textLabel1" ); 00047 layout5->addWidget( textLabel1 ); 00048 00049 zedVal = new QSpinBox( groupBox1, "zedVal" ); 00050 zedVal->setMaxValue( 0 ); 00051 zedVal->setMinValue( -3300 ); 00052 zedVal->setLineStep( 100 ); 00053 layout5->addWidget( zedVal ); 00054 groupBox1Layout->addLayout( layout5 ); 00055 00056 layout6 = new QHBoxLayout( 0, 0, 6, "layout6"); 00057 00058 textLabel1_2 = new QLabel( groupBox1, "textLabel1_2" ); 00059 layout6->addWidget( textLabel1_2 ); 00060 00061 sholderVal = new QSpinBox( groupBox1, "sholderVal" ); 00062 sholderVal->setMaxValue( 2663 ); 00063 sholderVal->setMinValue( -2773 ); 00064 sholderVal->setLineStep( 100 ); 00065 sholderVal->setValue( 0 ); 00066 layout6->addWidget( sholderVal ); 00067 groupBox1Layout->addLayout( layout6 ); 00068 00069 layout7 = new QHBoxLayout( 0, 0, 6, "layout7"); 00070 00071 textLabel1_3 = new QLabel( groupBox1, "textLabel1_3" ); 00072 layout7->addWidget( textLabel1_3 ); 00073 00074 elbowVal = new QSpinBox( groupBox1, "elbowVal" ); 00075 elbowVal->setMaxValue( 2500 ); 00076 elbowVal->setMinValue( -2900 ); 00077 elbowVal->setLineStep( 100 ); 00078 elbowVal->setValue( 0 ); 00079 layout7->addWidget( elbowVal ); 00080 groupBox1Layout->addLayout( layout7 ); 00081 00082 layout8 = new QHBoxLayout( 0, 0, 6, "layout8"); 00083 00084 textLabel1_4 = new QLabel( groupBox1, "textLabel1_4" ); 00085 layout8->addWidget( textLabel1_4 ); 00086 00087 yawVal = new QSpinBox( groupBox1, "yawVal" ); 00088 yawVal->setMaxValue( 1088 ); 00089 yawVal->setMinValue( -1104 ); 00090 yawVal->setLineStep( 100 ); 00091 yawVal->setValue( 0 ); 00092 layout8->addWidget( yawVal ); 00093 groupBox1Layout->addLayout( layout8 ); 00094 00095 layout9 = new QHBoxLayout( 0, 0, 6, "layout9"); 00096 00097 textLabel1_5 = new QLabel( groupBox1, "textLabel1_5" ); 00098 layout9->addWidget( textLabel1_5 ); 00099 00100 wrist1Val = new QSpinBox( groupBox1, "wrist1Val" ); 00101 wrist1Val->setMaxValue( 4000 ); 00102 wrist1Val->setMinValue( -4000 ); 00103 wrist1Val->setLineStep( 100 ); 00104 layout9->addWidget( wrist1Val ); 00105 groupBox1Layout->addLayout( layout9 ); 00106 00107 layout10 = new QHBoxLayout( 0, 0, 6, "layout10"); 00108 00109 textLabel1_6 = new QLabel( groupBox1, "textLabel1_6" ); 00110 layout10->addWidget( textLabel1_6 ); 00111 00112 wrist2Val = new QSpinBox( groupBox1, "wrist2Val" ); 00113 wrist2Val->setMaxValue( 4000 ); 00114 wrist2Val->setMinValue( -4000 ); 00115 wrist2Val->setLineStep( 100 ); 00116 layout10->addWidget( wrist2Val ); 00117 groupBox1Layout->addLayout( layout10 ); 00118 00119 layout11 = new QHBoxLayout( 0, 0, 6, "layout11"); 00120 00121 textLabel1_6_2 = new QLabel( groupBox1, "textLabel1_6_2" ); 00122 layout11->addWidget( textLabel1_6_2 ); 00123 00124 gripperVal = new QSpinBox( groupBox1, "gripperVal" ); 00125 gripperVal->setMaxValue( 1183 ); 00126 gripperVal->setMinValue( -500 ); 00127 gripperVal->setLineStep( 100 ); 00128 gripperVal->setValue( 0 ); 00129 layout11->addWidget( gripperVal ); 00130 groupBox1Layout->addLayout( layout11 ); 00131 00132 layout12 = new QHBoxLayout( 0, 0, 6, "layout12"); 00133 00134 textLabel1_7 = new QLabel( groupBox1, "textLabel1_7" ); 00135 layout12->addWidget( textLabel1_7 ); 00136 00137 wristTiltVal = new QSpinBox( groupBox1, "wristTiltVal" ); 00138 wristTiltVal->setMaxValue( 4000 ); 00139 wristTiltVal->setMinValue( -4000 ); 00140 wristTiltVal->setLineStep( 100 ); 00141 layout12->addWidget( wristTiltVal ); 00142 groupBox1Layout->addLayout( layout12 ); 00143 00144 layout11_2 = new QHBoxLayout( 0, 0, 6, "layout11_2"); 00145 00146 textLabel2_2 = new QLabel( groupBox1, "textLabel2_2" ); 00147 layout11_2->addWidget( textLabel2_2 ); 00148 00149 wristRollVal = new QSpinBox( groupBox1, "wristRollVal" ); 00150 wristRollVal->setMaxValue( 4000 ); 00151 wristRollVal->setMinValue( -4000 ); 00152 wristRollVal->setLineStep( 100 ); 00153 layout11_2->addWidget( wristRollVal ); 00154 groupBox1Layout->addLayout( layout11_2 ); 00155 00156 moveMode = new QCheckBox( groupBox1, "moveMode" ); 00157 groupBox1Layout->addWidget( moveMode ); 00158 00159 moveArmButton = new QPushButton( groupBox1, "moveArmButton" ); 00160 groupBox1Layout->addWidget( moveArmButton ); 00161 00162 getJointsPositionButton = new QPushButton( groupBox1, "getJointsPositionButton" ); 00163 groupBox1Layout->addWidget( getJointsPositionButton ); 00164 00165 groupBox2 = new QGroupBox( this, "groupBox2" ); 00166 groupBox2->setGeometry( QRect( 140, 10, 124, 410 ) ); 00167 groupBox2->setColumnLayout(0, Qt::Vertical ); 00168 groupBox2->layout()->setSpacing( 6 ); 00169 groupBox2->layout()->setMargin( 11 ); 00170 groupBox2Layout = new QVBoxLayout( groupBox2->layout() ); 00171 groupBox2Layout->setAlignment( Qt::AlignTop ); 00172 00173 layout22 = new QHBoxLayout( 0, 0, 6, "layout22"); 00174 00175 textLabel1_8 = new QLabel( groupBox2, "textLabel1_8" ); 00176 layout22->addWidget( textLabel1_8 ); 00177 00178 zedInterpolation = new QSpinBox( groupBox2, "zedInterpolation" ); 00179 zedInterpolation->setMaxValue( 7 ); 00180 zedInterpolation->setMinValue( -8 ); 00181 layout22->addWidget( zedInterpolation ); 00182 groupBox2Layout->addLayout( layout22 ); 00183 00184 layout23 = new QHBoxLayout( 0, 0, 6, "layout23"); 00185 00186 textLabel1_2_3 = new QLabel( groupBox2, "textLabel1_2_3" ); 00187 layout23->addWidget( textLabel1_2_3 ); 00188 00189 sholderInterpolation = new QSpinBox( groupBox2, "sholderInterpolation" ); 00190 sholderInterpolation->setMaxValue( 7 ); 00191 sholderInterpolation->setMinValue( -8 ); 00192 layout23->addWidget( sholderInterpolation ); 00193 groupBox2Layout->addLayout( layout23 ); 00194 00195 layout24 = new QHBoxLayout( 0, 0, 6, "layout24"); 00196 00197 textLabel1_3_3 = new QLabel( groupBox2, "textLabel1_3_3" ); 00198 layout24->addWidget( textLabel1_3_3 ); 00199 00200 elbowInterpolation = new QSpinBox( groupBox2, "elbowInterpolation" ); 00201 elbowInterpolation->setMaxValue( 7 ); 00202 elbowInterpolation->setMinValue( -8 ); 00203 layout24->addWidget( elbowInterpolation ); 00204 groupBox2Layout->addLayout( layout24 ); 00205 00206 layout25 = new QHBoxLayout( 0, 0, 6, "layout25"); 00207 00208 textLabel1_4_3 = new QLabel( groupBox2, "textLabel1_4_3" ); 00209 layout25->addWidget( textLabel1_4_3 ); 00210 00211 yawInterpolation = new QSpinBox( groupBox2, "yawInterpolation" ); 00212 yawInterpolation->setMaxValue( 7 ); 00213 yawInterpolation->setMinValue( -8 ); 00214 layout25->addWidget( yawInterpolation ); 00215 groupBox2Layout->addLayout( layout25 ); 00216 00217 layout26 = new QHBoxLayout( 0, 0, 6, "layout26"); 00218 00219 textLabel1_5_3 = new QLabel( groupBox2, "textLabel1_5_3" ); 00220 layout26->addWidget( textLabel1_5_3 ); 00221 00222 wrist1Interpolation = new QSpinBox( groupBox2, "wrist1Interpolation" ); 00223 wrist1Interpolation->setMaxValue( 7 ); 00224 wrist1Interpolation->setMinValue( -8 ); 00225 layout26->addWidget( wrist1Interpolation ); 00226 groupBox2Layout->addLayout( layout26 ); 00227 00228 layout27 = new QHBoxLayout( 0, 0, 6, "layout27"); 00229 00230 textLabel1_6_4 = new QLabel( groupBox2, "textLabel1_6_4" ); 00231 layout27->addWidget( textLabel1_6_4 ); 00232 00233 wrist2Interpolation = new QSpinBox( groupBox2, "wrist2Interpolation" ); 00234 wrist2Interpolation->setMaxValue( 7 ); 00235 wrist2Interpolation->setMinValue( -8 ); 00236 layout27->addWidget( wrist2Interpolation ); 00237 groupBox2Layout->addLayout( layout27 ); 00238 00239 layout28 = new QHBoxLayout( 0, 0, 6, "layout28"); 00240 00241 textLabel1_6_2_3 = new QLabel( groupBox2, "textLabel1_6_2_3" ); 00242 layout28->addWidget( textLabel1_6_2_3 ); 00243 00244 gripperInterpolation = new QSpinBox( groupBox2, "gripperInterpolation" ); 00245 gripperInterpolation->setMaxValue( 7 ); 00246 gripperInterpolation->setMinValue( -8 ); 00247 layout28->addWidget( gripperInterpolation ); 00248 groupBox2Layout->addLayout( layout28 ); 00249 00250 layout29 = new QHBoxLayout( 0, 0, 6, "layout29"); 00251 00252 textLabel1_7_3 = new QLabel( groupBox2, "textLabel1_7_3" ); 00253 layout29->addWidget( textLabel1_7_3 ); 00254 00255 wristTiltInterpolation = new QSpinBox( groupBox2, "wristTiltInterpolation" ); 00256 wristTiltInterpolation->setMaxValue( 7 ); 00257 wristTiltInterpolation->setMinValue( -8 ); 00258 layout29->addWidget( wristTiltInterpolation ); 00259 groupBox2Layout->addLayout( layout29 ); 00260 00261 layout30 = new QHBoxLayout( 0, 0, 6, "layout30"); 00262 00263 textLabel2_2_3 = new QLabel( groupBox2, "textLabel2_2_3" ); 00264 layout30->addWidget( textLabel2_2_3 ); 00265 00266 wristRollInterpolation = new QSpinBox( groupBox2, "wristRollInterpolation" ); 00267 wristRollInterpolation->setMaxValue( 7 ); 00268 wristRollInterpolation->setMinValue( -8 ); 00269 layout30->addWidget( wristRollInterpolation ); 00270 groupBox2Layout->addLayout( layout30 ); 00271 00272 doInterpolationButton = new QPushButton( groupBox2, "doInterpolationButton" ); 00273 groupBox2Layout->addWidget( doInterpolationButton ); 00274 00275 groupBox7 = new QGroupBox( this, "groupBox7" ); 00276 groupBox7->setGeometry( QRect( 270, 10, 267, 297 ) ); 00277 groupBox7->setColumnLayout(0, Qt::Vertical ); 00278 groupBox7->layout()->setSpacing( 6 ); 00279 groupBox7->layout()->setMargin( 11 ); 00280 groupBox7Layout = new QVBoxLayout( groupBox7->layout() ); 00281 groupBox7Layout->setAlignment( Qt::AlignTop ); 00282 00283 layout34 = new QHBoxLayout( 0, 0, 6, "layout34"); 00284 spacer3 = new QSpacerItem( 20, 21, QSizePolicy::Expanding, QSizePolicy::Minimum ); 00285 layout34->addItem( spacer3 ); 00286 00287 textLabel2_3 = new QLabel( groupBox7, "textLabel2_3" ); 00288 layout34->addWidget( textLabel2_3 ); 00289 00290 textLabel2_3_2 = new QLabel( groupBox7, "textLabel2_3_2" ); 00291 layout34->addWidget( textLabel2_3_2 ); 00292 00293 textLabel2_3_3 = new QLabel( groupBox7, "textLabel2_3_3" ); 00294 layout34->addWidget( textLabel2_3_3 ); 00295 00296 textLabel2_3_4 = new QLabel( groupBox7, "textLabel2_3_4" ); 00297 layout34->addWidget( textLabel2_3_4 ); 00298 groupBox7Layout->addLayout( layout34 ); 00299 00300 layout33 = new QHBoxLayout( 0, 0, 6, "layout33"); 00301 00302 textLabel1_9 = new QLabel( groupBox7, "textLabel1_9" ); 00303 layout33->addWidget( textLabel1_9 ); 00304 00305 radioButton40 = new QRadioButton( groupBox7, "radioButton40" ); 00306 layout33->addWidget( radioButton40 ); 00307 00308 radioButton40_2 = new QRadioButton( groupBox7, "radioButton40_2" ); 00309 layout33->addWidget( radioButton40_2 ); 00310 00311 radioButton40_3 = new QRadioButton( groupBox7, "radioButton40_3" ); 00312 layout33->addWidget( radioButton40_3 ); 00313 00314 radioButton40_4 = new QRadioButton( groupBox7, "radioButton40_4" ); 00315 layout33->addWidget( radioButton40_4 ); 00316 groupBox7Layout->addLayout( layout33 ); 00317 00318 layout35 = new QHBoxLayout( 0, 0, 6, "layout35"); 00319 00320 textLabel1_9_2 = new QLabel( groupBox7, "textLabel1_9_2" ); 00321 layout35->addWidget( textLabel1_9_2 ); 00322 00323 radioButton40_5 = new QRadioButton( groupBox7, "radioButton40_5" ); 00324 layout35->addWidget( radioButton40_5 ); 00325 00326 radioButton40_2_2 = new QRadioButton( groupBox7, "radioButton40_2_2" ); 00327 layout35->addWidget( radioButton40_2_2 ); 00328 00329 radioButton40_3_2 = new QRadioButton( groupBox7, "radioButton40_3_2" ); 00330 layout35->addWidget( radioButton40_3_2 ); 00331 00332 radioButton40_4_2 = new QRadioButton( groupBox7, "radioButton40_4_2" ); 00333 layout35->addWidget( radioButton40_4_2 ); 00334 groupBox7Layout->addLayout( layout35 ); 00335 00336 layout36 = new QHBoxLayout( 0, 0, 6, "layout36"); 00337 00338 textLabel1_9_3 = new QLabel( groupBox7, "textLabel1_9_3" ); 00339 layout36->addWidget( textLabel1_9_3 ); 00340 00341 radioButton40_6 = new QRadioButton( groupBox7, "radioButton40_6" ); 00342 layout36->addWidget( radioButton40_6 ); 00343 00344 radioButton40_2_3 = new QRadioButton( groupBox7, "radioButton40_2_3" ); 00345 layout36->addWidget( radioButton40_2_3 ); 00346 00347 radioButton40_3_3 = new QRadioButton( groupBox7, "radioButton40_3_3" ); 00348 layout36->addWidget( radioButton40_3_3 ); 00349 00350 radioButton40_4_3 = new QRadioButton( groupBox7, "radioButton40_4_3" ); 00351 layout36->addWidget( radioButton40_4_3 ); 00352 groupBox7Layout->addLayout( layout36 ); 00353 00354 layout37 = new QHBoxLayout( 0, 0, 6, "layout37"); 00355 00356 textLabel1_9_4 = new QLabel( groupBox7, "textLabel1_9_4" ); 00357 layout37->addWidget( textLabel1_9_4 ); 00358 00359 radioButton40_7 = new QRadioButton( groupBox7, "radioButton40_7" ); 00360 layout37->addWidget( radioButton40_7 ); 00361 00362 radioButton40_2_4 = new QRadioButton( groupBox7, "radioButton40_2_4" ); 00363 layout37->addWidget( radioButton40_2_4 ); 00364 00365 radioButton40_3_4 = new QRadioButton( groupBox7, "radioButton40_3_4" ); 00366 layout37->addWidget( radioButton40_3_4 ); 00367 00368 radioButton40_4_4 = new QRadioButton( groupBox7, "radioButton40_4_4" ); 00369 layout37->addWidget( radioButton40_4_4 ); 00370 groupBox7Layout->addLayout( layout37 ); 00371 00372 layout38 = new QHBoxLayout( 0, 0, 6, "layout38"); 00373 00374 textLabel1_9_5 = new QLabel( groupBox7, "textLabel1_9_5" ); 00375 layout38->addWidget( textLabel1_9_5 ); 00376 00377 radioButton40_8 = new QRadioButton( groupBox7, "radioButton40_8" ); 00378 layout38->addWidget( radioButton40_8 ); 00379 00380 radioButton40_2_5 = new QRadioButton( groupBox7, "radioButton40_2_5" ); 00381 layout38->addWidget( radioButton40_2_5 ); 00382 00383 radioButton40_3_5 = new QRadioButton( groupBox7, "radioButton40_3_5" ); 00384 layout38->addWidget( radioButton40_3_5 ); 00385 00386 radioButton40_4_5 = new QRadioButton( groupBox7, "radioButton40_4_5" ); 00387 layout38->addWidget( radioButton40_4_5 ); 00388 groupBox7Layout->addLayout( layout38 ); 00389 00390 layout39 = new QHBoxLayout( 0, 0, 6, "layout39"); 00391 00392 textLabel1_9_6 = new QLabel( groupBox7, "textLabel1_9_6" ); 00393 layout39->addWidget( textLabel1_9_6 ); 00394 00395 radioButton40_9 = new QRadioButton( groupBox7, "radioButton40_9" ); 00396 layout39->addWidget( radioButton40_9 ); 00397 00398 radioButton40_2_6 = new QRadioButton( groupBox7, "radioButton40_2_6" ); 00399 layout39->addWidget( radioButton40_2_6 ); 00400 00401 radioButton40_3_6 = new QRadioButton( groupBox7, "radioButton40_3_6" ); 00402 layout39->addWidget( radioButton40_3_6 ); 00403 00404 radioButton40_4_6 = new QRadioButton( groupBox7, "radioButton40_4_6" ); 00405 layout39->addWidget( radioButton40_4_6 ); 00406 groupBox7Layout->addLayout( layout39 ); 00407 00408 layout40 = new QHBoxLayout( 0, 0, 6, "layout40"); 00409 00410 textLabel1_9_7 = new QLabel( groupBox7, "textLabel1_9_7" ); 00411 layout40->addWidget( textLabel1_9_7 ); 00412 00413 radioButton40_10 = new QRadioButton( groupBox7, "radioButton40_10" ); 00414 layout40->addWidget( radioButton40_10 ); 00415 00416 radioButton40_2_7 = new QRadioButton( groupBox7, "radioButton40_2_7" ); 00417 layout40->addWidget( radioButton40_2_7 ); 00418 00419 radioButton40_3_7 = new QRadioButton( groupBox7, "radioButton40_3_7" ); 00420 layout40->addWidget( radioButton40_3_7 ); 00421 00422 radioButton40_4_7 = new QRadioButton( groupBox7, "radioButton40_4_7" ); 00423 layout40->addWidget( radioButton40_4_7 ); 00424 groupBox7Layout->addLayout( layout40 ); 00425 00426 layout41 = new QHBoxLayout( 0, 0, 6, "layout41"); 00427 00428 manualMoveBtn = new QPushButton( groupBox7, "manualMoveBtn" ); 00429 layout41->addWidget( manualMoveBtn ); 00430 00431 allStopBtn = new QPushButton( groupBox7, "allStopBtn" ); 00432 layout41->addWidget( allStopBtn ); 00433 spacer4 = new QSpacerItem( 71, 21, QSizePolicy::Expanding, QSizePolicy::Minimum ); 00434 layout41->addItem( spacer4 ); 00435 groupBox7Layout->addLayout( layout41 ); 00436 00437 QWidget* privateLayoutWidget = new QWidget( this, "layout11" ); 00438 privateLayoutWidget->setGeometry( QRect( 20, 660, 616, 34 ) ); 00439 layout11_3 = new QHBoxLayout( privateLayoutWidget, 11, 6, "layout11_3"); 00440 00441 initArmButton = new QPushButton( privateLayoutWidget, "initArmButton" ); 00442 layout11_3->addWidget( initArmButton ); 00443 00444 homeArmButton = new QPushButton( privateLayoutWidget, "homeArmButton" ); 00445 layout11_3->addWidget( homeArmButton ); 00446 spacer7 = new QSpacerItem( 190, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); 00447 layout11_3->addItem( spacer7 ); 00448 00449 quitButton = new QPushButton( privateLayoutWidget, "quitButton" ); 00450 layout11_3->addWidget( quitButton ); 00451 00452 QWidget* privateLayoutWidget_2 = new QWidget( this, "layout12" ); 00453 privateLayoutWidget_2->setGeometry( QRect( 20, 640, 616, 18 ) ); 00454 layout12_2 = new QHBoxLayout( privateLayoutWidget_2, 11, 6, "layout12_2"); 00455 00456 textLabel2 = new QLabel( privateLayoutWidget_2, "textLabel2" ); 00457 textLabel2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, textLabel2->sizePolicy().hasHeightForWidth() ) ); 00458 layout12_2->addWidget( textLabel2 ); 00459 00460 armStatusMsg = new QLabel( privateLayoutWidget_2, "armStatusMsg" ); 00461 layout12_2->addWidget( armStatusMsg ); 00462 00463 groupBox4 = new QGroupBox( this, "groupBox4" ); 00464 groupBox4->setGeometry( QRect( 280, 330, 500, 191 ) ); 00465 00466 QWidget* privateLayoutWidget_3 = new QWidget( groupBox4, "layout32" ); 00467 privateLayoutWidget_3->setGeometry( QRect( 10, 70, 410, 25 ) ); 00468 layout32 = new QHBoxLayout( privateLayoutWidget_3, 0, 0, "layout32"); 00469 00470 parErr = new QLineEdit( privateLayoutWidget_3, "parErr" ); 00471 layout32->addWidget( parErr ); 00472 00473 parCuPos = new QLineEdit( privateLayoutWidget_3, "parCuPos" ); 00474 layout32->addWidget( parCuPos ); 00475 00476 parErrLimit = new QLineEdit( privateLayoutWidget_3, "parErrLimit" ); 00477 layout32->addWidget( parErrLimit ); 00478 00479 parNewPos = new QLineEdit( privateLayoutWidget_3, "parNewPos" ); 00480 layout32->addWidget( parNewPos ); 00481 00482 parSpeed = new QLineEdit( privateLayoutWidget_3, "parSpeed" ); 00483 layout32->addWidget( parSpeed ); 00484 00485 parKP = new QLineEdit( privateLayoutWidget_3, "parKP" ); 00486 layout32->addWidget( parKP ); 00487 00488 parKI = new QLineEdit( privateLayoutWidget_3, "parKI" ); 00489 layout32->addWidget( parKI ); 00490 00491 parKD = new QLineEdit( privateLayoutWidget_3, "parKD" ); 00492 layout32->addWidget( parKD ); 00493 00494 parDeadBand = new QLineEdit( privateLayoutWidget_3, "parDeadBand" ); 00495 layout32->addWidget( parDeadBand ); 00496 00497 parOffset = new QLineEdit( privateLayoutWidget_3, "parOffset" ); 00498 layout32->addWidget( parOffset ); 00499 00500 parMaxForce = new QLineEdit( privateLayoutWidget_3, "parMaxForce" ); 00501 layout32->addWidget( parMaxForce ); 00502 00503 parCurrForce = new QLineEdit( privateLayoutWidget_3, "parCurrForce" ); 00504 layout32->addWidget( parCurrForce ); 00505 00506 parAccTime = new QLineEdit( privateLayoutWidget_3, "parAccTime" ); 00507 layout32->addWidget( parAccTime ); 00508 00509 parUserIO = new QLineEdit( privateLayoutWidget_3, "parUserIO" ); 00510 layout32->addWidget( parUserIO ); 00511 00512 QWidget* privateLayoutWidget_4 = new QWidget( groupBox4, "layout31" ); 00513 privateLayoutWidget_4->setGeometry( QRect( 10, 30, 410, 35 ) ); 00514 layout31 = new QHBoxLayout( privateLayoutWidget_4, 11, 6, "layout31"); 00515 00516 textLabel3 = new QLabel( privateLayoutWidget_4, "textLabel3" ); 00517 layout31->addWidget( textLabel3 ); 00518 00519 textLabel3_2 = new QLabel( privateLayoutWidget_4, "textLabel3_2" ); 00520 layout31->addWidget( textLabel3_2 ); 00521 00522 textLabel3_3 = new QLabel( privateLayoutWidget_4, "textLabel3_3" ); 00523 layout31->addWidget( textLabel3_3 ); 00524 00525 textLabel3_4 = new QLabel( privateLayoutWidget_4, "textLabel3_4" ); 00526 layout31->addWidget( textLabel3_4 ); 00527 00528 textLabel3_5 = new QLabel( privateLayoutWidget_4, "textLabel3_5" ); 00529 layout31->addWidget( textLabel3_5 ); 00530 00531 textLabel3_6 = new QLabel( privateLayoutWidget_4, "textLabel3_6" ); 00532 layout31->addWidget( textLabel3_6 ); 00533 00534 textLabel3_7 = new QLabel( privateLayoutWidget_4, "textLabel3_7" ); 00535 layout31->addWidget( textLabel3_7 ); 00536 00537 textLabel3_8 = new QLabel( privateLayoutWidget_4, "textLabel3_8" ); 00538 layout31->addWidget( textLabel3_8 ); 00539 00540 textLabel3_9 = new QLabel( privateLayoutWidget_4, "textLabel3_9" ); 00541 layout31->addWidget( textLabel3_9 ); 00542 00543 textLabel1_10_3 = new QLabel( privateLayoutWidget_4, "textLabel1_10_3" ); 00544 layout31->addWidget( textLabel1_10_3 ); 00545 00546 textLabel1_10_2 = new QLabel( privateLayoutWidget_4, "textLabel1_10_2" ); 00547 layout31->addWidget( textLabel1_10_2 ); 00548 00549 textLabel1_10 = new QLabel( privateLayoutWidget_4, "textLabel1_10" ); 00550 layout31->addWidget( textLabel1_10 ); 00551 00552 textLabel1_10_4 = new QLabel( privateLayoutWidget_4, "textLabel1_10_4" ); 00553 layout31->addWidget( textLabel1_10_4 ); 00554 00555 textLabel1_10_5 = new QLabel( privateLayoutWidget_4, "textLabel1_10_5" ); 00556 layout31->addWidget( textLabel1_10_5 ); 00557 languageChange(); 00558 resize( QSize(813, 725).expandedTo(minimumSizeHint()) ); 00559 clearWState( WState_Polished ); 00560 00561 // signals and slots connections 00562 connect( initArmButton, SIGNAL( clicked() ), this, SLOT( initArm() ) ); 00563 connect( homeArmButton, SIGNAL( clicked() ), this, SLOT( homeArm() ) ); 00564 connect( moveArmButton, SIGNAL( clicked() ), this, SLOT( moveArm() ) ); 00565 connect( zedVal, SIGNAL( valueChanged(int) ), this, SLOT( moveZed(int) ) ); 00566 connect( sholderVal, SIGNAL( valueChanged(int) ), this, SLOT( moveSholder(int) ) ); 00567 connect( elbowVal, SIGNAL( valueChanged(int) ), this, SLOT( moveElbow(int) ) ); 00568 connect( yawVal, SIGNAL( valueChanged(int) ), this, SLOT( moveYaw(int) ) ); 00569 connect( wrist1Val, SIGNAL( valueChanged(int) ), this, SLOT( moveWrist1(int) ) ); 00570 connect( wrist2Val, SIGNAL( valueChanged(int) ), this, SLOT( moveWrist2(int) ) ); 00571 connect( gripperVal, SIGNAL( valueChanged(int) ), this, SLOT( moveGripper(int) ) ); 00572 connect( getJointsPositionButton, SIGNAL( clicked() ), this, SLOT( getCurrentJointPositions() ) ); 00573 connect( quitButton, SIGNAL( clicked() ), this, SLOT( close() ) ); 00574 connect( wristRollVal, SIGNAL( valueChanged(int) ), this, SLOT( wristRoll(int) ) ); 00575 connect( wristTiltVal, SIGNAL( valueChanged(int) ), this, SLOT( wristTilt(int) ) ); 00576 connect( doInterpolationButton, SIGNAL( clicked() ), this, SLOT( doInterpolation() ) ); 00577 } 00578 00579 /* 00580 * Destroys the object and frees any allocated resources 00581 */ 00582 RT100ControlForm::~RT100ControlForm() 00583 { 00584 // no need to delete child widgets, Qt does it all for us 00585 } 00586 00587 /* 00588 * Sets the strings of the subwidgets using the current 00589 * language. 00590 */ 00591 void RT100ControlForm::languageChange() 00592 { 00593 setCaption( tr( "RT100 Arm Control" ) ); 00594 groupBox1->setTitle( tr( "Arm Control" ) ); 00595 textLabel1->setText( tr( "Zed:" ) ); 00596 textLabel1_2->setText( tr( "Sholder:" ) ); 00597 textLabel1_3->setText( tr( "Elbow" ) ); 00598 textLabel1_4->setText( tr( "Yaw:" ) ); 00599 textLabel1_5->setText( tr( "Wrist1:" ) ); 00600 textLabel1_6->setText( tr( "Wrist2:" ) ); 00601 textLabel1_6_2->setText( tr( "Gripper:" ) ); 00602 gripperVal->setSpecialValueText( QString::null ); 00603 textLabel1_7->setText( tr( "Wrist Tilt:" ) ); 00604 textLabel2_2->setText( tr( "Wrist Roll:" ) ); 00605 moveMode->setText( tr( "Move Immediatly" ) ); 00606 moveArmButton->setText( tr( "Move Arm" ) ); 00607 getJointsPositionButton->setText( tr( "Get Joint Positions" ) ); 00608 groupBox2->setTitle( tr( "Interpolation Move" ) ); 00609 textLabel1_8->setText( tr( "Zed:" ) ); 00610 textLabel1_2_3->setText( tr( "Sholder:" ) ); 00611 textLabel1_3_3->setText( tr( "Elbow" ) ); 00612 textLabel1_4_3->setText( tr( "Yaw:" ) ); 00613 textLabel1_5_3->setText( tr( "Wrist1:" ) ); 00614 textLabel1_6_4->setText( tr( "Wrist2:" ) ); 00615 textLabel1_6_2_3->setText( tr( "Gripper:" ) ); 00616 textLabel1_7_3->setText( tr( "Wrist Tilt:" ) ); 00617 textLabel2_2_3->setText( tr( "Wrist Roll:" ) ); 00618 doInterpolationButton->setText( tr( "Interpolation Move" ) ); 00619 groupBox7->setTitle( tr( "Manual Move" ) ); 00620 textLabel2_3->setText( tr( "Stop\n" 00621 "(motors\n" 00622 "powered)" ) ); 00623 textLabel2_3_2->setText( tr( "Forward" ) ); 00624 textLabel2_3_3->setText( tr( "Backward" ) ); 00625 textLabel2_3_4->setText( tr( "Stop\n" 00626 "(motors \n" 00627 "unpowered)" ) ); 00628 textLabel1_9->setText( tr( "Zed:" ) ); 00629 radioButton40->setText( QString::null ); 00630 radioButton40_2->setText( QString::null ); 00631 radioButton40_3->setText( QString::null ); 00632 radioButton40_4->setText( QString::null ); 00633 textLabel1_9_2->setText( tr( "Sholder:" ) ); 00634 radioButton40_5->setText( QString::null ); 00635 radioButton40_2_2->setText( QString::null ); 00636 radioButton40_3_2->setText( QString::null ); 00637 radioButton40_4_2->setText( QString::null ); 00638 textLabel1_9_3->setText( tr( "Elbow:" ) ); 00639 radioButton40_6->setText( QString::null ); 00640 radioButton40_2_3->setText( QString::null ); 00641 radioButton40_3_3->setText( QString::null ); 00642 radioButton40_4_3->setText( QString::null ); 00643 textLabel1_9_4->setText( tr( "Yaw:" ) ); 00644 radioButton40_7->setText( QString::null ); 00645 radioButton40_2_4->setText( QString::null ); 00646 radioButton40_3_4->setText( QString::null ); 00647 radioButton40_4_4->setText( QString::null ); 00648 textLabel1_9_5->setText( tr( "Wrist1:" ) ); 00649 radioButton40_8->setText( QString::null ); 00650 radioButton40_2_5->setText( QString::null ); 00651 radioButton40_3_5->setText( QString::null ); 00652 radioButton40_4_5->setText( QString::null ); 00653 textLabel1_9_6->setText( tr( "Wrist2:" ) ); 00654 radioButton40_9->setText( QString::null ); 00655 radioButton40_2_6->setText( QString::null ); 00656 radioButton40_3_6->setText( QString::null ); 00657 radioButton40_4_6->setText( QString::null ); 00658 textLabel1_9_7->setText( tr( "Gripper:" ) ); 00659 radioButton40_10->setText( QString::null ); 00660 radioButton40_2_7->setText( QString::null ); 00661 radioButton40_3_7->setText( QString::null ); 00662 radioButton40_4_7->setText( QString::null ); 00663 manualMoveBtn->setText( tr( "Move" ) ); 00664 allStopBtn->setText( tr( "All Stop" ) ); 00665 initArmButton->setText( tr( "Initalize Arm" ) ); 00666 homeArmButton->setText( tr( "Home arm" ) ); 00667 quitButton->setText( tr( "Quit" ) ); 00668 textLabel2->setText( tr( "Arm Status:" ) ); 00669 armStatusMsg->setText( tr( "Not initalized" ) ); 00670 groupBox4->setTitle( tr( "Parameters" ) ); 00671 parErr->setInputMask( QString::null ); 00672 textLabel3->setText( tr( "Error" ) ); 00673 textLabel3_2->setText( tr( "CU \n" 00674 "Pos" ) ); 00675 textLabel3_3->setText( tr( "Err\n" 00676 "Limit" ) ); 00677 textLabel3_4->setText( tr( "New\n" 00678 "Pos" ) ); 00679 textLabel3_5->setText( tr( "Speed" ) ); 00680 textLabel3_6->setText( tr( "KP" ) ); 00681 textLabel3_7->setText( tr( "KI" ) ); 00682 textLabel3_8->setText( tr( "KD" ) ); 00683 textLabel3_9->setText( tr( "Dead\n" 00684 "Band" ) ); 00685 textLabel1_10_3->setText( tr( "Offset" ) ); 00686 textLabel1_10_2->setText( tr( "Max\n" 00687 "Force" ) ); 00688 textLabel1_10->setText( tr( "Curr\n" 00689 "Force" ) ); 00690 textLabel1_10_4->setText( tr( "Acc\n" 00691 "Time" ) ); 00692 textLabel1_10_5->setText( tr( "User\n" 00693 "IO" ) ); 00694 } 00695