diff --git a/RoboGlue.pro.user b/RoboGlue.pro.user index edd25e6..fe26eef 100644 --- a/RoboGlue.pro.user +++ b/RoboGlue.pro.user @@ -1,6 +1,6 @@ - + EnvironmentId diff --git a/gui/roboglue_gui.cpp b/gui/roboglue_gui.cpp index 6faca23..ccd8975 100644 --- a/gui/roboglue_gui.cpp +++ b/gui/roboglue_gui.cpp @@ -196,6 +196,7 @@ void RoboGlue_GUI::on_btn_record_clicked() { param["metadata"] = metadata; ui->btn_play->setEnabled(false); ui->btn_realtime->setEnabled(false); + ui->btn_home->setEnabled(false); disableLockAxes(); } else { m->commonStatus.isRecording = false; @@ -203,6 +204,7 @@ void RoboGlue_GUI::on_btn_record_clicked() { param["action"]="stop"; ui->btn_play->setEnabled(true); ui->btn_realtime->setEnabled(true); + ui->btn_home->setEnabled(true); enableLockAxes(); } emit m->commonStatusChange(); @@ -223,6 +225,7 @@ void RoboGlue_GUI::on_btn_play_clicked() { param["lock"] = getLockAxes(); ui->btn_record->setEnabled(false); ui->btn_realtime->setEnabled(false); + ui->btn_home->setEnabled(false); ui->btn_play->setText("Stop"); ui->txt_fileName->setEnabled(false); disableLockAxes(); @@ -232,6 +235,7 @@ void RoboGlue_GUI::on_btn_play_clicked() { param["action"] = "stop"; ui->btn_record->setEnabled(true); ui->btn_realtime->setEnabled(true); + ui->btn_home->setEnabled(true); ui->btn_play->setText("Play"); ui->txt_fileName->setEnabled(true); enableLockAxes(); @@ -254,6 +258,7 @@ void RoboGlue_GUI::on_btn_open_clicked() { param["metadata"] = metadata; ui->btn_record->setEnabled(false); ui->btn_realtime->setEnabled(false); + ui->btn_home->setEnabled(false); ui->btn_open->setText("Close"); ui->txt_fileName->setEnabled(false); } else { @@ -262,6 +267,7 @@ void RoboGlue_GUI::on_btn_open_clicked() { param["action"] = "close"; ui->btn_record->setEnabled(true); ui->btn_realtime->setEnabled(true); + ui->btn_home->setEnabled(true); ui->btn_open->setText("Open"); ui->txt_fileName->setEnabled(true); } @@ -295,6 +301,16 @@ void RoboGlue_GUI::on_btn_realtime_clicked() { emit m->commonStatusChange(); emit sendROScommand("REALTIME", param); } + +void RoboGlue_GUI::on_btn_home_clicked() { + QVariantMap param; + modlog->debug("robotHome"); + param["action"] = "start"; + param["execute"] = false; + emit m->commonStatusChange(); + emit sendROScommand("HOME", param); +} + //////////////////////////////////////////////// ////////END INTERNAL PRIVATE SLOTS////////////// //////////////////////////////////////////////// @@ -339,5 +355,4 @@ void RoboGlue_GUI::on_newRobotData() { //////////////////////////////////////////////// //////// END EXTERNAL PUBLIC SLOTS ///////////// //////////////////////////////////////////////// - - +/// diff --git a/gui/roboglue_gui.h b/gui/roboglue_gui.h index ed94485..d2c0c75 100644 --- a/gui/roboglue_gui.h +++ b/gui/roboglue_gui.h @@ -39,6 +39,7 @@ * 20190322 - Modifica dei nomi segnali tra questo modulo e com. * 20190402 - Aggiunte due spinbox per il settaggio di delta tempo e delta spazio da salvare nel * file dei metadati per la pianificazione dei persorsi salvati + * 20191023 - Spostati i commenti in GIT */ #include @@ -91,7 +92,7 @@ private slots: void on_btn_record_clicked(); void on_btn_play_clicked(); void on_btn_realtime_clicked(); - + void on_btn_home_clicked(); void on_btn_open_clicked(); signals: diff --git a/gui/roboglue_gui.ui b/gui/roboglue_gui.ui index 715b84d..50e27ca 100644 --- a/gui/roboglue_gui.ui +++ b/gui/roboglue_gui.ui @@ -6,8 +6,8 @@ 0 0 - 945 - 750 + 1042 + 766 @@ -17,7 +17,7 @@ MainWindow - + @@ -1050,36 +1050,9 @@ - - - - RealTime - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - MODE: - - - - + POS @@ -1092,7 +1065,7 @@ - + VEL @@ -1102,6 +1075,48 @@ + + + + + + + + RealTime + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + MODE: + + + + + + + + + GoHOME + + + + + @@ -1290,7 +1305,7 @@ 0 0 - 945 + 1042 22 @@ -1312,8 +1327,8 @@ - + false