SemanticGraphStorageComponentPlugin.cpp
Go to the documentation of this file.
2
3#include <VirtualRobot/VirtualRobot.h>
4
6
8
9namespace armarx
10{
11 namespace plugins
12 {
13
14 void
19
20 void
25
26 void
28 PropertyDefinitionsPtr& properties)
29 {
30 if (!properties->hasDefinition(PROPERTY_NAME))
31 {
32 properties->defineOptionalProperty<std::string>(
33 PROPERTY_NAME, "SemanticGraphTopic", "Name of the SemanticGraphTopic");
34 }
35 }
36
37 } // namespace plugins
38
43
44 const semantic::GraphStorageTopicPrx&
49
50 void
52 std::string const& name,
53 const semrel::AttributedGraph& graph)
54 {
55 armarx::semantic::data::Graph iceGraph = armarx::semantic::toIce(graph);
56 getGraphStorageTopic()->reportGraph(name, iceGraph);
57 }
58
59} // namespace armarx
PluginT * addPlugin(const std::string prefix="", ParamsT &&... params)
armarx::semantic::GraphStorageTopicPrx const & getGraphStorageTopic()
void storeGraph(std::string const &name, semrel::AttributedGraph const &graph)
void postCreatePropertyDefinitions(PropertyDefinitionsPtr &properties) override
This file is part of ArmarX.
data::Graph toIce(const semrel::AttributedGraph &input)
Definition graph.cpp:15
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.