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
33namespace armarx
34{
35
38 {
41
43
44 defs->optional(properties.maxHistorySize,
45 "p.maxHistorySize",
46 "The maximum size of entity histories.")
47 .setMin(1);
48
49 return defs;
50 }
51
52 std::string
54 {
55 return "IndexMemory";
56 }
57
58 void
60 {
61 size_t maxHistorySize = static_cast<size_t>(std::max(1, properties.maxHistorySize));
64 armem::index::arondto::Named::ToAronType())
65 .setMaxHistorySize(maxHistorySize);
66
69 armem::index::arondto::Spatial::ToAronType())
70 .setMaxHistorySize(maxHistorySize);
71 }
72
73 void
81
82 void
86
87 void
91
92 void
94 {
95 using namespace armarx::RemoteGui::Client;
96
97 {
98 }
99
100 VBoxLayout root = {VSpacer()};
101 RemoteGui_createTab(getName(), root, &tab);
102 }
103
104 void
108
109} // namespace armarx
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
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)