ArmarXObjectsImporter.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 MemoryX::ArmarXObjects::ArmarXObjectsImporter
17 * @author Rainer Kartmann ( rainer dot kartmann at kit dot edu )
18 * @date 2021
19 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20 * GNU General Public License
21 */
22
23#pragma once
24
26
28#include <MemoryX/interface/components/CommonStorageInterface.h>
29#include <MemoryX/interface/components/LongtermMemoryInterface.h>
30#include <MemoryX/interface/components/PriorKnowledgeInterface.h>
31#include <MemoryX/interface/components/WorkingMemoryInterface.h>
32
33namespace memoryx
34{
35
36 /**
37 * @defgroup Component-ArmarXObjectsImporter ArmarXObjectsImporter
38 * @ingroup MemoryX-Components
39 * A description of the component ArmarXObjectsImporter.
40 *
41 * @class ArmarXObjectsImporter
42 * @ingroup Component-ArmarXObjectsImporter
43 * @brief Brief description of class ArmarXObjectsImporter.
44 *
45 * Detailed description of class ArmarXObjectsImporter.
46 */
48 {
49 public:
50 /// @see armarx::ManagedIceObject::getDefaultName()
51 std::string getDefaultName() const override;
52
53 static std::string GetDefaultName();
54
55
56 protected:
57 /// @see PropertyUser::createPropertyDefinitions()
59
60 /// @see armarx::ManagedIceObject::onInitComponent()
61 void onInitComponent() override;
62
63 /// @see armarx::ManagedIceObject::onConnectComponent()
64 void onConnectComponent() override;
65
66 /// @see armarx::ManagedIceObject::onDisconnectComponent()
67 void onDisconnectComponent() override;
68
69 /// @see armarx::ManagedIceObject::onExitComponent()
70 void onExitComponent() override;
71
72
73 private:
74 /// Properties shown in the Scenario GUI.
75 struct Properties
76 {
77 Properties();
78
79 std::string mongoDbName = "CeBITdb";
80 bool dryRun = false;
81
82 bool importObjects = true;
83 std::string objectsRepository; // Set in constructor
84 std::string datasetName = "";
85 std::string className = "";
86
87 bool importScenes = true;
88 std::string scenesDirectory; // Set in constructor
89 std::string sceneNames;
90 };
91
92 Properties properties;
93
94 struct Proxies
95 {
96 memoryx::CommonStorageInterfacePrx commonStorage;
97 memoryx::PriorKnowledgeInterfacePrx priorKnowledge;
98 memoryx::WorkingMemoryInterfacePrx workingMemory;
99 memoryx::LongtermMemoryInterfacePrx longtermMemory;
100 };
101
102 Proxies proxies;
103
104 memoryx::GridFileManagerPtr gridFileManager;
105 };
106} // namespace memoryx
Baseclass for all ArmarX ManagedIceObjects requiring properties.
Definition Component.h:94
Brief description of class ArmarXObjectsImporter.
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
std::string getDefaultName() const override
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
VirtualRobot headers.
std::shared_ptr< GridFileManager > GridFileManagerPtr