Go to the documentation of this file.
23 #include <VirtualRobot/VirtualRobot.h>
45 defs->topic(graphTopic,
"SemanticGraphTopic");
52 return "SemanticGraphExample";
72 auto a = graph.addVertex(semrel::ShapeID{0}, vattribs);
76 auto b = graph.addVertex(semrel::ShapeID{1}, vattribs);
79 auto c = graph.addVertex(semrel::ShapeID{5});
80 c.attrib().name =
"C";
81 c.attrib().value = 1.0;
84 auto ab = graph.addEdge(
a, b);
85 ab.attrib().value = 0;
86 auto ac = graph.addEdge(
a,
c);
87 ac.attrib().value = 1;
88 auto bc = graph.addEdge(b,
c);
89 bc.attrib().value = 2;
92 graph.attrib().position = {1, 2, 3};
void onConnectComponent() override
data::Graph toIce(const semrel::AttributedGraph &input)
Property definitions of SemanticGraphExample.
double a(double t, double a0, double j)
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
void onDisconnectComponent() override
void onInitComponent() override
void onExitComponent() override
SemanticGraphExamplePropertyDefinitions(std::string prefix)
std::string getDefaultName() const override
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
Default component property definition container.
This file offers overloads of toIce() and fromIce() functions for STL container types.