MultiHandUnit.h
Go to the documentation of this file.
1/*
2 * This file is part of ArmarX.
3 *
4 * ArmarX is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * ArmarX is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * @package RobotAPI::ArmarXObjects::MultiHandUnit
17 * @author Raphael Grimm ( raphael dot grimm at kit dot edu )
18 * @date 2019
19 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20 * GNU General Public License
21 */
22
23#pragma once
24
26
27#include <RobotAPI/interface/units/MultiHandUnitInterface.h>
28
29namespace armarx
30{
31 /**
32 * @class MultiHandUnitPropertyDefinitions
33 * @brief
34 */
40
41 /**
42 * @defgroup Component-MultiHandUnit MultiHandUnit
43 * @ingroup RobotAPI-Components
44 * A description of the component MultiHandUnit.
45 *
46 * @class MultiHandUnit
47 * @ingroup Component-MultiHandUnit
48 * @brief Brief description of class MultiHandUnit.
49 *
50 * Detailed description of class MultiHandUnit.
51 */
52 class MultiHandUnit : virtual public armarx::Component, virtual public MultiHandUnitInterface
53 {
54 public:
55 /// @see armarx::ManagedIceObject::getDefaultName()
56 virtual std::string getDefaultName() const override;
57
58
59 protected:
60 /// @see armarx::ManagedIceObject::onInitComponent()
61 virtual void onInitComponent() override;
62
63 /// @see armarx::ManagedIceObject::onConnectComponent()
64 virtual void onConnectComponent() override;
65
66 /// @see armarx::ManagedIceObject::onDisconnectComponent()
67 virtual void onDisconnectComponent() override;
68
69 /// @see armarx::ManagedIceObject::onExitComponent()
70 virtual void onExitComponent() override;
71
72 /// @see PropertyUser::createPropertyDefinitions()
74
75 HandInfoSeq getHandInfos(const Ice::Current& = Ice::emptyCurrent) override;
76 void setJointValues(const std::string& handName,
77 const NameValueMap& jointValues,
78 const Ice::Current& = Ice::emptyCurrent) override;
79 NameValueMap getJointValues(const std::string& handName,
80 const Ice::Current& = Ice::emptyCurrent) override;
81
82 private:
83 HandInfoSeq _handInfos;
84 std::map<std::string, HandUnitInterfacePrx> _hands;
85 };
86} // namespace armarx
Default component property definition container.
Definition Component.h:70
Baseclass for all ArmarX ManagedIceObjects requiring properties.
Definition Component.h:94
MultiHandUnitPropertyDefinitions(std::string prefix)
Brief description of class MultiHandUnit.
void setJointValues(const std::string &handName, const NameValueMap &jointValues, const Ice::Current &=Ice::emptyCurrent) override
virtual void onInitComponent() override
virtual void onDisconnectComponent() override
virtual armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
HandInfoSeq getHandInfos(const Ice::Current &=Ice::emptyCurrent) override
virtual void onConnectComponent() override
NameValueMap getJointValues(const std::string &handName, const Ice::Current &=Ice::emptyCurrent) override
virtual void onExitComponent() override
virtual std::string getDefaultName() const override
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.