IndexMemory.cpp
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::IndexMemory
17  * @author Rainer Kartmann ( rainer dot kartmann at kit dot edu )
18  * @date 2022
19  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20  * GNU General Public License
21  */
22 
23 #include "IndexMemory.h"
24 
27 
29 #include <RobotAPI/libraries/armem_index/aron/Named.aron.generated.h>
30 #include <RobotAPI/libraries/armem_index/aron/Spatial.aron.generated.h>
32 
33 
34 namespace armarx
35 {
36 
39  {
42 
44 
45  defs->optional(properties.maxHistorySize, "p.maxHistorySize", "The maximum size of entity histories.")
46  .setMin(1);
47 
48  return defs;
49  }
50 
51 
52  std::string
54  {
55  return "IndexMemory";
56  }
57 
58 
59  void
61  {
62  size_t maxHistorySize = static_cast<size_t>(std::max(1, properties.maxHistorySize));
65  armem::index::arondto::Named::ToAronType())
66  .setMaxHistorySize(maxHistorySize);
67 
70  armem::index::arondto::Spatial::ToAronType())
71  .setMaxHistorySize(maxHistorySize);
72  }
73 
74 
75  void
77  {
78  {
81  }
82  }
83 
84 
85  void
87  {
88  }
89 
90 
91  void
93  {
94  }
95 
96 
97  void
99  {
100  using namespace armarx::RemoteGui::Client;
101 
102  {
103  }
104 
105  VBoxLayout root = {VSpacer()};
106  RemoteGui_createTab(getName(), root, &tab);
107  }
108 
109 
110  void
112  {
113  }
114 
115 } // namespace armarx
armarx::IndexMemory::onDisconnectComponent
void onDisconnectComponent() override
Hook for subclass.
Definition: IndexMemory.cpp:86
armarx::IndexMemory::onConnectComponent
void onConnectComponent() override
Pure virtual hook for the subclass.
Definition: IndexMemory.cpp:76
armarx::RemoteGui::Client::VBoxLayout
Definition: Widgets.h:167
IndexMemory.h
armarx::armem::server::plugins::ReadWritePluginUser::setMemoryName
void setMemoryName(const std::string &memoryName)
Definition: ReadWritePluginUser.cpp:25
armarx::armem::server::plugins::ReadWritePluginUser::workingMemory
server::wm::Memory & workingMemory()
Definition: ReadWritePluginUser.cpp:106
armarx::RemoteGui::Client::VSpacer
Definition: Widgets.h:204
armarx::IndexMemory::createRemoteGuiTab
void createRemoteGuiTab()
Definition: IndexMemory.cpp:98
memory_definitions.h
armarx::IndexMemory::createPropertyDefinitions
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: IndexMemory.cpp:38
armarx::IndexMemory::onInitComponent
void onInitComponent() override
Pure virtual hook for the subclass.
Definition: IndexMemory.cpp:60
armarx::armem::index::spatialSegmentID
const MemoryID spatialSegmentID
Definition: memory_ids.cpp:32
armarx::armem::base::MemoryBase::addCoreSegment
CoreSegmentT & addCoreSegment(const std::string &name, aron::type::ObjectPtr coreSegmentType=nullptr, const std::vector< PredictionEngine > &predictionEngines={})
Add an empty core segment with the given name, type and prediction engines.
Definition: MemoryBase.h:259
max
T max(T t1, T t2)
Definition: gdiam.h:48
armarx::armem::index::namedSegmentID
const MemoryID namedSegmentID
Definition: memory_ids.cpp:31
armarx::IndexMemory::getDefaultName
std::string getDefaultName() const override
Retrieve default name of component.
Definition: IndexMemory.cpp:53
armarx::LightweightRemoteGuiComponentPluginUser::RemoteGui_startRunningTask
void RemoteGui_startRunningTask()
Definition: LightweightRemoteGuiComponentPlugin.cpp:110
ExpressionException.h
armarx::Component::getConfigIdentifier
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
Definition: Component.cpp:74
armarx::ComponentPropertyDefinitions
Default component property definition container.
Definition: Component.h:70
armarx::LightweightRemoteGuiComponentPluginUser::RemoteGui_createTab
void RemoteGui_createTab(std::string const &name, RemoteGui::Client::Widget const &rootWidget, RemoteGui::Client::Tab *tab)
Definition: LightweightRemoteGuiComponentPlugin.cpp:95
armarx::armem::laser_scans::constants::memoryName
const std::string memoryName
Definition: constants.h:28
IceUtil::Handle
Definition: forward_declarations.h:29
armarx::armem::index::memoryID
const MemoryID memoryID
Definition: memory_ids.cpp:29
armarx::IndexMemory::onExitComponent
void onExitComponent() override
Hook for subclass.
Definition: IndexMemory.cpp:92
ice_conversions_templates.h
armarx::ManagedIceObject::getName
std::string getName() const
Retrieve name of object.
Definition: ManagedIceObject.cpp:107
armarx::IndexMemory::RemoteGui_update
void RemoteGui_update() override
Definition: IndexMemory.cpp:111
armarx::RemoteGui::Client
Definition: EigenWidgets.cpp:8
memory_ids.h
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28