KBMData.h
Go to the documentation of this file.
1 /*
2  * This file is part of ArmarX.
3  *
4  * Copyright (C) 2011-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 version 2 as
8  * published by the Free Software Foundation.
9  *
10  * ArmarX is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  *
18  * @package
19  * @author
20  * @date
21  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
22  * GNU General Public License
23  */
24 #pragma once
25 
27 
29 #include <MemoryX/interface/memorytypes/MemoryEntities.h>
30 
31 #define KBM_USE_DOUBLE_PRECISION
32 
33 namespace armarx
34 {
35 #ifdef KBM_USE_DOUBLE_PRECISION
38 #else
39  using MatrixVariant = MatrixFloat;
41 #endif
42 } // namespace armarx
43 
44 namespace memoryx
45 {
46 
47  class KBMData : public KBMDataBase, public Entity
48  {
49  public:
51  {
52  }
53 
54  KBMData(const armarx::MatrixDoubleBasePtr& controlNet,
55  const std::string& nodeSetName,
56  const std::string& referenceFrameName,
57  const std::string& robotName);
58  armarx::MatrixDoubleBasePtr
59  getControlNet(const Ice::Current& c = Ice::emptyCurrent) const override;
60  void setControlNet(const armarx::MatrixDoubleBasePtr& controlNet,
61  const Ice::Current& c = Ice::emptyCurrent) override;
62 
63  // Object interface
64  public:
65  Ice::ObjectPtr ice_clone() const override;
66 
67  // KBMDataBase interface
68  public:
69  std::string getReferenceFrameName(const Ice::Current& c = Ice::emptyCurrent) const override;
70  std::string getNodeSetName(const Ice::Current& c = Ice::emptyCurrent) const override;
71  std::string getRobotName(const Ice::Current& c = Ice::emptyCurrent) const override;
72 
73  void setNodeSetName(const std::string& nodeSetName,
74  const Ice::Current& c = Ice::emptyCurrent) override;
75  void setReferenceFrameName(const std::string& referenceFrameName,
76  const Ice::Current& c = Ice::emptyCurrent) override;
77  void setRobotName(const std::string& robotName,
78  const Ice::Current& c = Ice::emptyCurrent) override;
79 
80  // Object interface
81  };
82 
84 
85 } // namespace memoryx
memoryx::KBMData::getReferenceFrameName
std::string getReferenceFrameName(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: KBMData.cpp:70
armarx::MatrixDouble
The MatrixDouble class.
Definition: MatrixVariant.h:126
memoryx::KBMData::setReferenceFrameName
void setReferenceFrameName(const std::string &referenceFrameName, const Ice::Current &c=Ice::emptyCurrent) override
Definition: KBMData.cpp:100
armarx::MatrixFloatPtr
IceInternal::Handle< MatrixFloat > MatrixFloatPtr
Definition: MatrixVariant.h:119
memoryx
VirtualRobot headers.
Definition: CommonPlacesTester.cpp:48
c
constexpr T c
Definition: UnscentedKalmanFilterTest.cpp:46
memoryx::KBMData::getNodeSetName
std::string getNodeSetName(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: KBMData.cpp:76
armarx::MatrixDoublePtr
IceInternal::Handle< MatrixDouble > MatrixDoublePtr
Definition: MatrixVariant.h:195
memoryx::KBMData::setRobotName
void setRobotName(const std::string &robotName, const Ice::Current &c=Ice::emptyCurrent) override
Definition: KBMData.cpp:94
IceInternal::Handle
Definition: forward_declarations.h:8
memoryx::KBMData::ice_clone
Ice::ObjectPtr ice_clone() const override
Definition: KBMData.cpp:62
Eigen3VariantObjectFactories.h
memoryx::KBMData::getControlNet
armarx::MatrixDoubleBasePtr getControlNet(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: KBMData.cpp:48
memoryx::KBMData::setControlNet
void setControlNet(const armarx::MatrixDoubleBasePtr &controlNet, const Ice::Current &c=Ice::emptyCurrent) override
Definition: KBMData.cpp:54
memoryx::KBMData
Definition: KBMData.h:47
armarx::VariantType::MatrixFloat
const VariantTypeId MatrixFloat
Definition: MatrixVariant.h:37
Entity.h
memoryx::KBMData::KBMData
KBMData()
Definition: KBMData.h:50
memoryx::KBMData::getRobotName
std::string getRobotName(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: KBMData.cpp:82
armarx::aron::type::ObjectPtr
std::shared_ptr< Object > ObjectPtr
Definition: Object.h:36
memoryx::Entity
Definition: Entity.h:245
memoryx::KBMData::setNodeSetName
void setNodeSetName(const std::string &nodeSetName, const Ice::Current &c=Ice::emptyCurrent) override
Definition: KBMData.cpp:88
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:27
armarx::VariantType::MatrixDouble
const VariantTypeId MatrixDouble
Definition: MatrixVariant.h:38