WeissHapticUnit.h
Go to the documentation of this file.
1/*
2 * This file is part of ArmarX.
3 *
4 * Copyright (C) 2012-2016, High Performance Humanoid Technologies (H2T), Karlsruhe Institute of Technology (KIT), all rights reserved.
5 *
6 * ArmarX is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of
9 * the License, or (at your option) any later version.
10 *
11 * ArmarX is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 *
19 * @package Armar4::units
20 * @author Simon Ottenhaus <simon dot ottenhaus at kit dot edu>
21 * @date 2014
22 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
23 * GNU General Public License
24 */
25
26#pragma once
27
28#include <string>
29
31
33#include <RobotAPI/interface/units/WeissHapticUnit.h>
34
35#include "WeissHapticSensor.h"
36
37namespace armarx
38{
47
48 class WeissHapticUnit : virtual public WeissHapticUnitInterface, virtual public HapticUnit
49 {
50 public:
51 virtual std::string
53 {
54 return "WeissHapticUnit";
55 }
56
57 void onInitHapticUnit() override;
58 void onStartHapticUnit() override;
59 void onExitHapticUnit() override;
60
61 //virtual void onConnectComponent();
62 void onDisconnectComponent() override;
63
65
66 protected:
67 //void proceedSensorCategory(SensorCategoryDefinition<MatrixFloat> *category);
68
69 //std::map<std::string, MatrixFloatPtr> currentValues;
70
71
72 //HapticSensorProtocolMaster hapticProtocol;
73
74 //bool remoteSystemReady;
75
76 private:
77 std::vector<std::string> getDevices();
78
79 std::vector<std::shared_ptr<WeissHapticSensor>> sensors;
80
81 // WeissHapticUnitInterface interface
82 public:
83 void setDeviceTag(const std::string& deviceName,
84 const std::string& tag,
85 const Ice::Current&) override;
86 void startLogging(const Ice::Current&) override;
87 void stopLogging(const Ice::Current&) override;
88 };
89} // namespace armarx
HapticUnitPropertyDefinitions(std::string prefix)
Definition HapticUnit.h:45
The HapticUnit class.
Definition HapticUnit.h:63
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
void setDeviceTag(const std::string &deviceName, const std::string &tag, const Ice::Current &) override
void onExitHapticUnit() override
void onDisconnectComponent() override
Hook for subclass.
virtual std::string getDefaultName()
void onStartHapticUnit() override
PropertyDefinitionsPtr createPropertyDefinitions() override
void onInitHapticUnit() override
void startLogging(const Ice::Current &) override
void stopLogging(const Ice::Current &) override
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.