SimpleEpisodicMemorySemanticGraphConnector.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 VisionX::ArmarXObjects::SimpleEpisodicMemorySemanticGraphConnector
17 * @author fabian.peller-konrad@kit.edu ( fabian dot peller-konrad at kit dot edu )
18 * @date 2020
19 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20 * GNU General Public License
21 */
22
23#pragma once
24
25// STD/STL
26#include <memory>
27#include <mutex>
28#include <string>
29#include <vector>
30
31// Base Class
33
34// IVT
35
36// Ice
37#include <Ice/Current.h>
38#include <IceUtil/Time.h>
39
40// ArmarX
42
43#include <VisionX/interface/libraries/SemanticObjectRelations/GraphStorage.h>
44
46
47//#include <VisionX/libraries/SemanticObjectRelations/ice_serialization/graph.h>
48
49
50namespace visionx
51{
52
54 virtual public armarx::Component,
55 virtual public armarx::semantic::GraphStorageTopic,
57 {
58 public:
59 /// @see armarx::ManagedIceObject::getDefaultName()
60 std::string getDefaultName() const override;
61
62 // GraphStorageTopic interface
63 void reportGraph(std::string const& id,
64 armarx::semantic::data::Graph const& graph,
65 const Ice::Current&) override;
66
67
68 protected:
69 /// @see armarx::ManagedIceObject::onInitComponent()
70 void onInitComponent() override;
71
72 /// @see armarx::ManagedIceObject::onConnectComponent()
73 void onConnectComponent() override;
74
75 /// @see armarx::ManagedIceObject::onDisconnectComponent()
76 void onDisconnectComponent() override;
77
78 /// @see armarx::ManagedIceObject::onExitComponent()
79 void onExitComponent() override;
80
81 /// @see PropertyUser::createPropertyDefinitions()
83
84
85 private:
86 std::string graphId = "SpatialGraph";
87 };
88} // namespace visionx
Baseclass for all ArmarX ManagedIceObjects requiring properties.
Definition Component.h:94
void reportGraph(std::string const &id, armarx::semantic::data::Graph const &graph, const Ice::Current &) override
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
ArmarX headers.