From 4970162ed571f5082e65f3b0955ee9636e9137f4 Mon Sep 17 00:00:00 2001 From: Emanuele Date: Tue, 12 Nov 2019 11:37:31 +0100 Subject: [PATCH] correzioni interfaccia --- gui/roboglue_gui.cpp | 14 ++++++++---- gui/roboglue_gui.ui | 51 ++++++++++++++++++++++++++++++-------------- 2 files changed, 45 insertions(+), 20 deletions(-) diff --git a/gui/roboglue_gui.cpp b/gui/roboglue_gui.cpp index 7e21ab8..6243c0d 100644 --- a/gui/roboglue_gui.cpp +++ b/gui/roboglue_gui.cpp @@ -329,15 +329,21 @@ void RoboGlue_GUI::on_btn_home_clicked() { emit sendROScommand("HOME", param); } - void RoboGlue_GUI::on_btn_setFrame_clicked() { - QVariantMap param; - std::string frametext; + QVariantMap param, frm; + QList tempPos, TempOr; modlog->debug("setFrame"); param["action"]="set"; + param["framename"]=ui->txt_frameName->text(); + for(auto tp : ui->txt_framePos->text().split(",")){ + frm[tp.split(":").first()]=tp.split(":").last(); + } + for(auto tp : ui->txt_frameOr->text().split(",")){ + frm[tp.split(":").first()]=tp.split(":").last(); + } + param["frame"]=frm; emit m->commonStatusChange(); emit sendROScommand("SETFRAME", param); - } //////////////////////////////////////////////// ////////END INTERNAL PRIVATE SLOTS////////////// diff --git a/gui/roboglue_gui.ui b/gui/roboglue_gui.ui index fb01ac2..4b9c297 100644 --- a/gui/roboglue_gui.ui +++ b/gui/roboglue_gui.ui @@ -1301,13 +1301,6 @@ - - - - SetFrame - - - @@ -1315,10 +1308,10 @@ - - - - rx:000,ry:000,rz:000 + + + + Orientation @@ -1329,13 +1322,39 @@ - - - - Orientation + + + + r\x:000,ry:000,rz:000 + + + + SetFrame + + + + + + + + 150 + 0 + + + + Name + + + Qt::AlignCenter + + + + + + @@ -1428,12 +1447,12 @@ + false -