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 
26 #include <MemoryX/interface/memorytypes/MemoryEntities.h>
29 
30 #define KBM_USE_DOUBLE_PRECISION
31 
32 namespace armarx
33 {
34 #ifdef KBM_USE_DOUBLE_PRECISION
37 #else
38  using MatrixVariant = MatrixFloat;
40 #endif
41 }
42 
43 namespace memoryx
44 {
45 
46  class KBMData : public KBMDataBase, public Entity
47  {
48  public:
49  KBMData() {}
50  KBMData(const armarx::MatrixDoubleBasePtr& controlNet, const std::string& nodeSetName, const std::string& referenceFrameName, const std::string& robotName);
51  armarx::MatrixDoubleBasePtr getControlNet(const Ice::Current& c = Ice::emptyCurrent) const override;
52  void setControlNet(const armarx::MatrixDoubleBasePtr& controlNet, const Ice::Current& c = Ice::emptyCurrent) override;
53 
54  // Object interface
55  public:
56  Ice::ObjectPtr ice_clone() const override;
57 
58  // KBMDataBase interface
59  public:
60  std::string getReferenceFrameName(const Ice::Current& c = Ice::emptyCurrent) const override;
61  std::string getNodeSetName(const Ice::Current& c = Ice::emptyCurrent) const override;
62  std::string getRobotName(const Ice::Current& c = Ice::emptyCurrent) const override;
63 
64  void setNodeSetName(const std::string& nodeSetName, const Ice::Current& c = Ice::emptyCurrent) override;
65  void setReferenceFrameName(const std::string& referenceFrameName, const Ice::Current& c = Ice::emptyCurrent) override;
66  void setRobotName(const std::string& robotName, const Ice::Current& c = Ice::emptyCurrent) override;
67 
68  // Object interface
69  };
70 
72 
73 }
74 
memoryx::KBMData::getReferenceFrameName
std::string getReferenceFrameName(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: KBMData.cpp:65
armarx::MatrixDouble
The MatrixDouble class.
Definition: MatrixVariant.h:114
memoryx::KBMData::setReferenceFrameName
void setReferenceFrameName(const std::string &referenceFrameName, const Ice::Current &c=Ice::emptyCurrent) override
Definition: KBMData.cpp:89
armarx::MatrixFloatPtr
IceInternal::Handle< MatrixFloat > MatrixFloatPtr
Definition: MatrixVariant.h:105
memoryx
VirtualRobot headers.
Definition: CommonPlacesTester.cpp:48
c
constexpr T c
Definition: UnscentedKalmanFilterTest.cpp:43
memoryx::KBMData::getNodeSetName
std::string getNodeSetName(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: KBMData.cpp:70
armarx::MatrixDoublePtr
IceInternal::Handle< MatrixDouble > MatrixDoublePtr
Definition: MatrixVariant.h:170
memoryx::KBMData::setRobotName
void setRobotName(const std::string &robotName, const Ice::Current &c=Ice::emptyCurrent) override
Definition: KBMData.cpp:85
IceInternal::Handle
Definition: forward_declarations.h:8
memoryx::KBMData::ice_clone
Ice::ObjectPtr ice_clone() const override
Definition: KBMData.cpp:57
Eigen3VariantObjectFactories.h
memoryx::KBMData::getControlNet
armarx::MatrixDoubleBasePtr getControlNet(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: KBMData.cpp:44
memoryx::KBMData::setControlNet
void setControlNet(const armarx::MatrixDoubleBasePtr &controlNet, const Ice::Current &c=Ice::emptyCurrent) override
Definition: KBMData.cpp:49
memoryx::KBMData
Definition: KBMData.h:46
armarx::VariantType::MatrixFloat
const VariantTypeId MatrixFloat
Definition: MatrixVariant.h:36
Entity.h
memoryx::KBMData::KBMData
KBMData()
Definition: KBMData.h:49
memoryx::KBMData::getRobotName
std::string getRobotName(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: KBMData.cpp:75
armarx::aron::type::ObjectPtr
std::shared_ptr< Object > ObjectPtr
Definition: Object.h:36
memoryx::Entity
Definition: Entity.h:246
memoryx::KBMData::setNodeSetName
void setNodeSetName(const std::string &nodeSetName, const Ice::Current &c=Ice::emptyCurrent) override
Definition: KBMData.cpp:80
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::VariantType::MatrixDouble
const VariantTypeId MatrixDouble
Definition: MatrixVariant.h:37