33 using namespace WeissHapticGroup;
36 WeissHapticSensorTest::SubClassRegistry
49 HapticUnitObserverInterfacePrx hapticObserver = getHapticObserver();
50 ChannelRegistry channels = hapticObserver->getAvailableChannels(
false);
51 std::map<std::string, DatafieldRefPtr> tactileDatafields_MaximumValueMap;
53 if (channels.size() == 0)
61 for (std::pair<std::string, ChannelRegistryEntry> pair : channels)
63 std::string tactilePad = pair.first;
64 DatafieldRefBasePtr matrixDatafield =
66 DatafieldRefBasePtr matrixNulled = hapticObserver->createFilteredDatafield(
68 DatafieldRefBasePtr matrixMax = hapticObserver->createFilteredDatafield(
70 tactileDatafields_MaximumValueMap.insert(
71 std::make_pair(tactilePad, DatafieldRefPtr::dynamicCast(matrixMax)));
75 local.setTactileDatafields_MaximumValue(tactileDatafields_MaximumValueMap);
81 std::map<std::string, DatafieldRefPtr> tactileDatafields_MaximumValueMap =
82 local.getTactileDatafields_MaximumValue();
84 while (!isRunningTaskStopped())
87 std::stringstream ssNames;
90 for (std::pair<std::string, DatafieldRefPtr> pair : tactileDatafields_MaximumValueMap)
92 std::string tactilePad = pair.first;
94 int padMax = (int)matrixMax->getDataField()->getFloat();
96 ssNames << tactilePad <<
"; ";