24 #include <RobotAPI/gui-plugins/KinematicUnitPlugin/ui_KinematicUnitConfigDialog.h>
27 #include <QPushButton>
28 #include <QMessageBox>
32 #include <RobotAPI/interface/units/KinematicUnitInterface.h>
34 #include <IceUtil/UUID.h>
38 #include <RobotAPI/interface/core/RobotState.h>
49 connect(this->ui->buttonBox, SIGNAL(accepted()),
this, SLOT(
verifyConfig()));
50 ui->buttonBox->button(QDialogButtonBox::Ok)->setDefault(
true);
51 ui->buttonBox->button(QDialogButtonBox::Cancel)->setDefault(
false);
52 ui->buttonBox->button(QDialogButtonBox::Cancel)->setAutoDefault(
false);
55 ui->gridLayout->addWidget(proxyFinder, 0, 1, 1, 2);
78 QObject::disconnect();
86 QMessageBox::critical(
this,
"Invalid Configuration",
"The proxy name must not be empty");
99 ARMARX_INFO <<
"Connecting to KinematicUnitProxy " << kinematicUnitName;
101 KinematicUnitInterfacePrx kinematicUnitInterfacePrx = getProxy<KinematicUnitInterfacePrx>(kinematicUnitName);
102 std::string topicName = kinematicUnitInterfacePrx->getReportTopicName();
103 std::string robotNodeSetName = kinematicUnitInterfacePrx->getRobotNodeSetName();
104 std::string rfile = kinematicUnitInterfacePrx->getRobotFilename();
105 ui->labelTopic->setText(QString(topicName.c_str()));
106 ui->labelRobotModel->setText(QString(rfile.c_str()));
107 ui->labelRNS->setText(QString(robotNodeSetName.c_str()));
111 ARMARX_INFO <<
"Could not connect to KinematicUnitProxy " << kinematicUnitName;
118 ui->labelTopic->setText(
"");
119 ui->labelRobotModel->setText(
"");
120 ui->labelRNS->setText(
"");
133 ui->labelTopic->setText(
"");
134 ui->labelRobotModel->setText(
"");
135 ui->labelRNS->setText(
"");