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 
29 #include <RobotAPI/interface/units/WeissHapticUnit.h>
31 
32 #include <string>
33 #include "WeissHapticSensor.h"
34 
35 namespace armarx
36 {
38  {
39  public:
42  {
43  }
44  };
45 
47  virtual public WeissHapticUnitInterface,
48  virtual public HapticUnit
49  {
50  public:
51  virtual std::string getDefaultName()
52  {
53  return "WeissHapticUnit";
54  }
55 
56  void onInitHapticUnit() override;
57  void onStartHapticUnit() override;
58  void onExitHapticUnit() override;
59 
60  //virtual void onConnectComponent();
61  void onDisconnectComponent() override;
62 
64 
65  protected:
66  //void proceedSensorCategory(SensorCategoryDefinition<MatrixFloat> *category);
67 
68  //std::map<std::string, MatrixFloatPtr> currentValues;
69 
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, const std::string& tag, const Ice::Current&) override;
84  void startLogging(const Ice::Current&) override;
85  void stopLogging(const Ice::Current&) override;
86  };
87 }
88 
armarx::HapticUnitPropertyDefinitions
Definition: HapticUnit.h:42
armarx::HapticUnit
The HapticUnit class.
Definition: HapticUnit.h:62
armarx::WeissHapticUnit::startLogging
void startLogging(const Ice::Current &) override
Definition: WeissHapticUnit.cpp:115
armarx::WeissHapticUnit::onStartHapticUnit
void onStartHapticUnit() override
Definition: WeissHapticUnit.cpp:125
armarx::WeissHapticUnit::onExitHapticUnit
void onExitHapticUnit() override
Definition: WeissHapticUnit.cpp:136
HapticUnit.h
armarx::WeissHapticUnitPropertyDefinitions
Definition: WeissHapticUnit.h:37
armarx::PropertyDefinitionContainer::prefix
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
Definition: PropertyDefinitionContainer.h:333
armarx::WeissHapticUnit::onDisconnectComponent
void onDisconnectComponent() override
Hook for subclass.
Definition: WeissHapticUnit.cpp:149
armarx::WeissHapticUnit::getDefaultName
virtual std::string getDefaultName()
Definition: WeissHapticUnit.h:51
WeissHapticSensor.h
armarx::WeissHapticUnit
Definition: WeissHapticUnit.h:46
armarx::WeissHapticUnitPropertyDefinitions::WeissHapticUnitPropertyDefinitions
WeissHapticUnitPropertyDefinitions(std::string prefix)
Definition: WeissHapticUnit.h:40
armarx::WeissHapticUnit::setDeviceTag
void setDeviceTag(const std::string &deviceName, const std::string &tag, const Ice::Current &) override
Definition: WeissHapticUnit.cpp:100
armarx::WeissHapticUnit::createPropertyDefinitions
PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: WeissHapticUnit.cpp:154
armarx::WeissHapticUnit::onInitHapticUnit
void onInitHapticUnit() override
Definition: WeissHapticUnit.cpp:34
IceUtil::Handle
Definition: forward_declarations.h:29
armarx::Logging::tag
LogTag tag
Definition: Logging.h:271
armarx::WeissHapticUnit::stopLogging
void stopLogging(const Ice::Current &) override
Definition: WeissHapticUnit.cpp:120
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
ImportExportComponent.h