25#include <VirtualRobot/VirtualRobot.h>
47 defs->topic(graphTopic,
"SemanticGraphTopic");
55 return "SemanticGraphExample";
74 auto a = graph.addVertex(semrel::ShapeID{0}, vattribs);
78 auto b = graph.addVertex(semrel::ShapeID{1}, vattribs);
81 auto c = graph.addVertex(semrel::ShapeID{5});
82 c.attrib().name =
"C";
83 c.attrib().value = 1.0;
86 auto ab = graph.addEdge(a, b);
87 ab.attrib().value = 0;
88 auto ac = graph.addEdge(a,
c);
89 ac.attrib().value = 1;
90 auto bc = graph.addEdge(b,
c);
91 bc.attrib().value = 2;
94 graph.attrib().position = {1, 2, 3};
ComponentPropertyDefinitions(std::string prefix, bool hasObjectNameParameter=true)
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
Property definitions of SemanticGraphExample.
SemanticGraphExamplePropertyDefinitions(std::string prefix)
void onInitComponent() override
void onDisconnectComponent() override
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
void onConnectComponent() override
void onExitComponent() override
std::string getDefaultName() const override
data::Graph toIce(const semrel::AttributedGraph &input)
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
semrel::RelationGraph< MyVertex, MyEdge, MyGraphAttributes > MyGraph