LaserScansMemory.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 * @author Fabian Reister ( fabian dot reister at kit dot edu )
17 * @date 2022
18 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
19 * GNU General Public License
20 */
21
22#pragma once
23
24#include <cstdint>
25
28
30
36
38{
39 /**
40 * @defgroup Component-GeneralPurposeMemory GeneralPurposeMemory
41 * @ingroup RobotAPI-Components
42 * A description of the component GeneralPurposeMemory.
43 *SpecializedCoreSegment
44 * @class GeneralPurposeMemory
45 * @ingroup Component-GeneralPurposeMemory
46 * @brief Brief description of class GeneralPurposeMemory.
47 *
48 * Detailed description of class GeneralPurposeMemory.
49 */
51 virtual public armarx::Component,
54 {
55 public:
57
58 /// @see armarx::ManagedIceObject::getDefaultName()
59 std::string getDefaultName() const override;
60
61 armem::data::AddSegmentsResult addSegments(const armem::data::AddSegmentsInput& input,
62 const Ice::Current&) override;
63
64 protected:
65 /// @see PropertyUser::createPropertyDefinitions()
67
68 /// @see armarx::ManagedIceObject::onInitComponent()
69 void onInitComponent() override;
70
71 /// @see armarx::ManagedIceObject::onConnectComponent()
72 void onConnectComponent() override;
73
74 /// @see armarx::ManagedIceObject::onDisconnectComponent()
75 void onDisconnectComponent() override;
76
77 /// @see armarx::ManagedIceObject::onExitComponent()
78 void onExitComponent() override;
79
80 private:
81 struct CoreSegmentProperties
82 {
83 std::int64_t maxHistorySize = 100;
84 };
85
86 struct Properties
87 {
89 {
90 CoreSegmentProperties laserScans;
91 } coreSeg;
92 };
93
94 Properties properties_;
95
96 bool addCoreSegmentOnUsage = true;
97
99 virtualRobotReaderPlugin = nullptr;
100
101 armarx::plugins::DebugObserverComponentPlugin* debugObserver = nullptr;
102
103
104 Visu commonVisu;
105 };
106} // namespace armarx::armem::server::laser_scans
Provides a ready-to-use ArViz client arviz as member variable.
Baseclass for all ArmarX ManagedIceObjects requiring properties.
Definition Component.h:94
A component plugin offering client-side access to a reader or writer and manages the lifecycle,...
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
armem::data::AddSegmentsResult addSegments(const armem::data::AddSegmentsInput &input, const Ice::Current &) override
Models decay of object localizations by decreasing the confidence the longer the object was not local...
Definition Visu.h:54
Base class of memory server components.
Brief description of class DebugObserverComponentPlugin.
This file is part of ArmarX.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.