Go to the documentation of this file.
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};
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.