Aggiunto pulsante per Homing Robot e relativo messaggio

This commit is contained in:
2019-10-23 11:46:15 +02:00
parent f26382aa74
commit bf0ec30e16
4 changed files with 69 additions and 38 deletions

View File

@@ -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 /////////////
////////////////////////////////////////////////
///