27 #include <VirtualRobot/XML/RobotIO.h>
28 #include <VirtualRobot/LinkedCoordinate.h>
38 #include <QDialogButtonBox>
52 ui.gridLayout->setEnabled(
false);
54 connect(
ui.cbselectedTCP, SIGNAL(currentIndexChanged(
int)),
this, SLOT(
selectHand(
int)));
55 connect(
ui.BtnRequestControl, SIGNAL(clicked(
bool)),
this, SLOT(
robotControl(
bool)));
56 connect(
ui.btnUp, SIGNAL(clicked()),
this, SLOT(
moveUp()));
57 connect(
ui.btnDown, SIGNAL(clicked()),
this, SLOT(
moveDown()));
58 connect(
ui.btnZUp, SIGNAL(clicked()),
this, SLOT(
moveZUp()));
59 connect(
ui.btnZDown, SIGNAL(clicked()),
this, SLOT(
moveZDown()));
60 connect(
ui.btnLeft, SIGNAL(clicked()),
this, SLOT(
moveRight()));
61 connect(
ui.btnRight, SIGNAL(clicked()),
this, SLOT(
moveLeft()));
62 connect(
ui.btnIncreaseAlpha, SIGNAL(clicked()),
this, SLOT(
increaseAlpha()));
63 connect(
ui.btnDecreaseAlpha, SIGNAL(clicked()),
this, SLOT(
decreaseAlpha()));
64 connect(
ui.btnIncreaseBeta, SIGNAL(clicked()),
this, SLOT(
increaseBeta()));
65 connect(
ui.btnDecreaseBeta, SIGNAL(clicked()),
this, SLOT(
decreaseBeta()));
66 connect(
ui.btnIncreaseGamma, SIGNAL(clicked()),
this, SLOT(
increaseGamma()));
67 connect(
ui.btnDecreaseGamma, SIGNAL(clicked()),
this, SLOT(
decreaseGamma()));
69 connect(
ui.btnRight, SIGNAL(clicked()),
this, SLOT(
moveLeft()));
70 connect(
ui.btnStop, SIGNAL(clicked()),
this, SLOT(
stopMoving()));
71 connect(
ui.btnResetJoinAngles, SIGNAL(clicked()),
this, SLOT(
reset()));
84 tcpMoverUnitName = settings->value(
"TCPControlUnitName",
"TCPControlUnit").toString().toStdString();
89 settings->setValue(
"TCPControlUnitName", tcpMoverUnitName.c_str());
99 return qobject_cast<TCPMoverConfigDialog*>(
configDialog);
125 usingProxy(tcpMoverUnitName);
126 usingProxy(
"RobotStateComponent");
133 tcpMoverUnitPrx = getProxy<TCPControlUnitInterfacePrx>(tcpMoverUnitName);
134 robotStateComponentPrx = getProxy<RobotStateComponentInterfacePrx>(
"RobotStateComponent");
136 robotPrx = robotStateComponentPrx->getSynchronizedRobot();
137 NameList nodeSets = robotPrx->getRobotNodeSets();
138 QStringList nodeSetsQStr;
140 for (
unsigned int i = 0; i < nodeSets.size(); i++)
142 if (!robotPrx->getRobotNodeSet(nodeSets.at(i))->tcpName.empty())
144 tcpData[nodeSets.at(i)].resize(6, 0.f);
145 nodeSetsQStr << QString::fromStdString(nodeSets.at(i));
149 QString selected = ui.cbselectedTCP->currentText();
150 ui.cbselectedTCP->clear();
151 ui.cbselectedTCP->addItems(nodeSetsQStr);
152 int index = ui.cbselectedTCP->findText(selected);
156 ui.cbselectedTCP->setCurrentIndex(
index);
159 refFrame = robotStateComponentPrx->getSynchronizedRobot()->getRootNode()->getName();
172 ui.gridLayout->setEnabled(
false);
302 ARMARX_INFO <<
"Setting new velos and orientation";
312 vec *=
ui.sbFactor->value();
313 const auto agentName =
robotPrx->getName();
315 Eigen::Vector3f vecOri;
317 vecOri *=
ui.sbFactor->value();
320 if (!
ui.cbTranslation->isChecked())
325 if (!
ui.cbOrientation->isChecked())