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
43 #include <VisionX/interface/libraries/SemanticObjectRelations/GraphStorage.h>
44 //#include <VisionX/libraries/SemanticObjectRelations/ice_serialization/graph.h>
45 
46 
47 namespace visionx
48 {
49 
51  virtual public armarx::Component,
52  virtual public armarx::semantic::GraphStorageTopic,
54  {
55  public:
56 
57  /// @see armarx::ManagedIceObject::getDefaultName()
58  std::string getDefaultName() const override;
59 
60  // GraphStorageTopic interface
61  void reportGraph(std::string const& id, armarx::semantic::data::Graph const& graph, const Ice::Current&) override;
62 
63 
64  protected:
65 
66  /// @see armarx::ManagedIceObject::onInitComponent()
67  void onInitComponent() override;
68 
69  /// @see armarx::ManagedIceObject::onConnectComponent()
70  void onConnectComponent() override;
71 
72  /// @see armarx::ManagedIceObject::onDisconnectComponent()
73  void onDisconnectComponent() override;
74 
75  /// @see armarx::ManagedIceObject::onExitComponent()
76  void onExitComponent() override;
77 
78  /// @see PropertyUser::createPropertyDefinitions()
80 
81 
82  private:
83  std::string graphId = "SpatialGraph";
84  };
85 }
visionx::SimpleEpisodicMemorySemanticGraphConnector::onInitComponent
void onInitComponent() override
Definition: SimpleEpisodicMemorySemanticGraphConnector.cpp:43
visionx::SimpleEpisodicMemorySemanticGraphConnector::getDefaultName
std::string getDefaultName() const override
Definition: SimpleEpisodicMemorySemanticGraphConnector.cpp:38
visionx
ArmarX headers.
Definition: OpenPoseStressTest.h:38
visionx::SimpleEpisodicMemorySemanticGraphConnector::onExitComponent
void onExitComponent() override
Definition: SimpleEpisodicMemorySemanticGraphConnector.cpp:58
visionx::SimpleEpisodicMemorySemanticGraphConnector
Definition: SimpleEpisodicMemorySemanticGraphConnector.h:50
visionx::SimpleEpisodicMemorySemanticGraphConnector::reportGraph
void reportGraph(std::string const &id, armarx::semantic::data::Graph const &graph, const Ice::Current &) override
Definition: SimpleEpisodicMemorySemanticGraphConnector.cpp:63
visionx::SimpleEpisodicMemorySemanticGraphConnector::onConnectComponent
void onConnectComponent() override
Definition: SimpleEpisodicMemorySemanticGraphConnector.cpp:48
armarx::Graph
boost::subgraph< CloudGraph > Graph
Definition: Common.h:54
memoryx::SimpleEpisodicMemoryConnector
Definition: SimpleEpisodicMemoryConnector.h:35
Component.h
armarx::Component
Baseclass for all ArmarX ManagedIceObjects requiring properties.
Definition: Component.h:95
IceUtil::Handle< class PropertyDefinitionContainer >
visionx::SimpleEpisodicMemorySemanticGraphConnector::onDisconnectComponent
void onDisconnectComponent() override
Definition: SimpleEpisodicMemorySemanticGraphConnector.cpp:53
Logging.h
visionx::SimpleEpisodicMemorySemanticGraphConnector::createPropertyDefinitions
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: SimpleEpisodicMemorySemanticGraphConnector.cpp:29
SimpleEpisodicMemoryConnector.h