diff --git a/source/RobotAPI/gui_plugins/HapticUnitPlugin/HapticUnitGuiPlugin.cpp b/source/RobotAPI/gui_plugins/HapticUnitPlugin/HapticUnitGuiPlugin.cpp index 75a989ad1f3197ac935b6d8bd93fc937f7ff7248..78208f7189a63fa974c173035642662d0b9bcf38 100644 --- a/source/RobotAPI/gui_plugins/HapticUnitPlugin/HapticUnitGuiPlugin.cpp +++ b/source/RobotAPI/gui_plugins/HapticUnitPlugin/HapticUnitGuiPlugin.cpp @@ -32,6 +32,7 @@ HapticUnitWidget::HapticUnitWidget() ui.setupUi(getWidget()); //ui.stateOpen->setChecked(true); hapticObserverProxyName = "HapticUnitObserver"; + hapticUnitProxyName = "WeissHapticUnit"; updateTimer = new QTimer(this); @@ -44,31 +45,20 @@ HapticUnitWidget::HapticUnitWidget() void HapticUnitWidget::onInitComponent() { usingProxy(hapticObserverProxyName); - usingProxy("HapticUnit"); - //usingTopic(handName + "State"); - //ARMARX_WARNING << "Listening on Topic: " << handName + "State"; + usingProxy(hapticUnitProxyName); + } void HapticUnitWidget::onConnectComponent() { hapticObserverProxy = getProxy<ObserverInterfacePrx>(hapticObserverProxyName); - weissHapticUnit = getProxy<WeissHapticUnitInterfacePrx>("HapticUnit"); + weissHapticUnit = getProxy<WeissHapticUnitInterfacePrx>(hapticUnitProxyName); connectSlots(); createMatrixWidgets(); 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);*/ } diff --git a/source/RobotAPI/gui_plugins/HapticUnitPlugin/HapticUnitGuiPlugin.h b/source/RobotAPI/gui_plugins/HapticUnitPlugin/HapticUnitGuiPlugin.h index e4e215cafccb09061befac7f9ae4871d98713f35..df2f2d60425ee235316c42f187c70cedf3e2d5a9 100644 --- a/source/RobotAPI/gui_plugins/HapticUnitPlugin/HapticUnitGuiPlugin.h +++ b/source/RobotAPI/gui_plugins/HapticUnitPlugin/HapticUnitGuiPlugin.h @@ -117,6 +117,7 @@ namespace armarx private: std::string hapticObserverProxyName; + std::string hapticUnitProxyName; ObserverInterfacePrx hapticObserverProxy; WeissHapticUnitInterfacePrx weissHapticUnit;