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
33namespace armarx
34{
35#ifdef KBM_USE_DOUBLE_PRECISION
38#else
41#endif
42} // namespace armarx
43
44namespace 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
constexpr T c
The MatrixDouble class.
The MatrixFloat class.
Entity(const Entity &source)
Definition Entity.cpp:34
std::string getReferenceFrameName(const Ice::Current &c=Ice::emptyCurrent) const override
Definition KBMData.cpp:70
void setNodeSetName(const std::string &nodeSetName, const Ice::Current &c=Ice::emptyCurrent) override
Definition KBMData.cpp:88
std::string getNodeSetName(const Ice::Current &c=Ice::emptyCurrent) const override
Definition KBMData.cpp:76
void setReferenceFrameName(const std::string &referenceFrameName, const Ice::Current &c=Ice::emptyCurrent) override
Definition KBMData.cpp:100
std::string getRobotName(const Ice::Current &c=Ice::emptyCurrent) const override
Definition KBMData.cpp:82
void setControlNet(const armarx::MatrixDoubleBasePtr &controlNet, const Ice::Current &c=Ice::emptyCurrent) override
Definition KBMData.cpp:54
Ice::ObjectPtr ice_clone() const override
Definition KBMData.cpp:62
armarx::MatrixDoubleBasePtr getControlNet(const Ice::Current &c=Ice::emptyCurrent) const override
Definition KBMData.cpp:48
void setRobotName(const std::string &robotName, const Ice::Current &c=Ice::emptyCurrent) override
Definition KBMData.cpp:94
This file offers overloads of toIce() and fromIce() functions for STL container types.
armarx::MatrixDouble MatrixVariant
Definition KBMData.h:36
IceInternal::Handle< MatrixFloat > MatrixFloatPtr
armarx::MatrixDoublePtr MatrixVariantPtr
Definition KBMData.h:37
IceInternal::Handle< MatrixDouble > MatrixDoublePtr
VirtualRobot headers.
IceInternal::Handle< KBMData > KBMDataPtr
Definition KBMData.h:83