Skip to content
Snippets Groups Projects
Commit 9cfc9ee1 authored by Mirko Waechter's avatar Mirko Waechter
Browse files
* 'master' of https://i61wiki.itec.uka.de/git/robot-api:
  updated name of haptic unit
parents 9ac1ede6 74f47b83
No related branches found
No related tags found
No related merge requests found
...@@ -32,6 +32,7 @@ HapticUnitWidget::HapticUnitWidget() ...@@ -32,6 +32,7 @@ HapticUnitWidget::HapticUnitWidget()
ui.setupUi(getWidget()); ui.setupUi(getWidget());
//ui.stateOpen->setChecked(true); //ui.stateOpen->setChecked(true);
hapticObserverProxyName = "HapticUnitObserver"; hapticObserverProxyName = "HapticUnitObserver";
hapticUnitProxyName = "WeissHapticUnit";
updateTimer = new QTimer(this); updateTimer = new QTimer(this);
...@@ -44,31 +45,20 @@ HapticUnitWidget::HapticUnitWidget() ...@@ -44,31 +45,20 @@ HapticUnitWidget::HapticUnitWidget()
void HapticUnitWidget::onInitComponent() void HapticUnitWidget::onInitComponent()
{ {
usingProxy(hapticObserverProxyName); usingProxy(hapticObserverProxyName);
usingProxy("HapticUnit"); usingProxy(hapticUnitProxyName);
//usingTopic(handName + "State");
//ARMARX_WARNING << "Listening on Topic: " << handName + "State";
} }
void HapticUnitWidget::onConnectComponent() void HapticUnitWidget::onConnectComponent()
{ {
hapticObserverProxy = getProxy<ObserverInterfacePrx>(hapticObserverProxyName); hapticObserverProxy = getProxy<ObserverInterfacePrx>(hapticObserverProxyName);
weissHapticUnit = getProxy<WeissHapticUnitInterfacePrx>("HapticUnit"); weissHapticUnit = getProxy<WeissHapticUnitInterfacePrx>(hapticUnitProxyName);
connectSlots(); connectSlots();
createMatrixWidgets(); createMatrixWidgets();
updateTimer->start(25); // 50 Hz updateTimer->start(25); // 50 Hz
/*SingleTypeVariantListPtr preshapeStrings = SingleTypeVariantListPtr::dynamicCast(HapticUnitProxy->getPreshapeNames());
QStringList list;
int preshapeCount = preshapeStrings->getSize();
for (int i = 0; i < preshapeCount; ++i)
{
std::string shape = ((preshapeStrings->getVariant(i))->get<std::string>());
list << QString::fromStdString(shape);
}
ui.comboPreshapes->addItems(list);*/
} }
......
...@@ -117,6 +117,7 @@ namespace armarx ...@@ -117,6 +117,7 @@ namespace armarx
private: private:
std::string hapticObserverProxyName; std::string hapticObserverProxyName;
std::string hapticUnitProxyName;
ObserverInterfacePrx hapticObserverProxy; ObserverInterfacePrx hapticObserverProxy;
WeissHapticUnitInterfacePrx weissHapticUnit; WeissHapticUnitInterfacePrx weissHapticUnit;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment