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
34
36
37namespace armarx
38{
39
42 {
45
47
48 defs->optional(properties.maxHistorySize,
49 "p.maxHistorySize",
50 "The maximum size of entity histories.")
51 .setMin(1);
52
53 return defs;
54 }
55
56 std::string
58 {
59 return "IndexMemory";
60 }
61
62 void
64 {
65 size_t maxHistorySize = static_cast<size_t>(std::max(1, properties.maxHistorySize));
68 armem::index::arondto::Named::ToAronType())
69 .setMaxHistorySize(maxHistorySize);
70
73 armem::index::arondto::Spatial::ToAronType())
74 .setMaxHistorySize(maxHistorySize);
75 }
76
77 void
85
86 void
90
91 void
95
96 void
98 {
99 using namespace armarx::RemoteGui::Client;
100
101 {
102 }
103
104 VBoxLayout root = {VSpacer()};
105 RemoteGui_createTab(getName(), root, &tab);
106 }
107
108 void
112
113} // namespace armarx
#define ARMARX_REGISTER_COMPONENT_EXECUTABLE(ComponentT, applicationName)
Definition Decoupled.h:29
Default component property definition container.
Definition Component.h:70
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
Definition Component.cpp:90
Brief description of class IndexMemory.
Definition IndexMemory.h:49
void onInitComponent() override
Pure virtual hook for the subclass.
void onDisconnectComponent() override
Hook for subclass.
void RemoteGui_update() override
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
void onConnectComponent() override
Pure virtual hook for the subclass.
void onExitComponent() override
Hook for subclass.
std::string getDefaultName() const override
Retrieve default name of component.
std::string getName() const
Retrieve name of object.
CoreSegment & addCoreSegment(const std::string &name, Args... args)
void setMaxHistorySize(long maxSize)
Sets the maximum history size of entities in this container.
const MemoryID spatialSegmentID
const MemoryID namedSegmentID
const MemoryID memoryID
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
void RemoteGui_createTab(std::string const &name, RemoteGui::Client::Widget const &rootWidget, RemoteGui::Client::Tab *tab)