MyGraph.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <SemanticObjectRelations/RelationGraph.h>
4
5
namespace
mygraph
6
{
7
struct
MyVertex
:
public
semrel::ShapeVertex
8
{
9
std::string
name
;
10
float
value
= 0;
11
};
12
13
struct
MyEdge
14
{
15
int
value
= 1;
16
};
17
18
struct
MyGraphAttributes
19
{
20
Eigen::Vector3f
position
= Eigen::Vector3f::Zero();
21
Eigen::Quaternionf
orientation
= Eigen::Quaternionf::Identity();
22
};
23
24
using
MyGraph
=
semrel::RelationGraph<MyVertex, MyEdge, MyGraphAttributes>
;
25
26
}
// namespace mygraph
semrel::RelationGraph
Definition
forward_declarations.h:27
Eigen::Quaternionf
Quaternion< float, 0 > Quaternionf
Definition
EigenForwardDeclarations.h:61
mygraph
Definition
json.h:7
mygraph::MyGraph
semrel::RelationGraph< MyVertex, MyEdge, MyGraphAttributes > MyGraph
Definition
MyGraph.h:24
mygraph::MyEdge
Definition
MyGraph.h:14
mygraph::MyEdge::value
int value
Definition
MyGraph.h:15
mygraph::MyGraphAttributes
Definition
MyGraph.h:19
mygraph::MyGraphAttributes::orientation
Eigen::Quaternionf orientation
Definition
MyGraph.h:21
mygraph::MyGraphAttributes::position
Eigen::Vector3f position
Definition
MyGraph.h:20
mygraph::MyVertex
Definition
MyGraph.h:8
mygraph::MyVertex::value
float value
Definition
MyGraph.h:10
mygraph::MyVertex::name
std::string name
Definition
MyGraph.h:9
VisionX
components
SemanticGraphExample
MyGraph.h
Generated by
1.13.2