Structs.h
Go to the documentation of this file.
1
// *****************************************************************
2
// Filename: Structs.h
3
// Copyright: Kai Welke, Chair Prof. Dillmann (IAIM),
4
// Institute for Computer Science and Engineering (CSE),
5
// University of Karlsruhe. All rights reserved.
6
// Author: Kai Welke
7
// Date: 12.06.2007
8
// *****************************************************************
9
10
#pragma once
11
12
#include <vector>
13
14
#include <Eigen/Core>
15
16
// *****************************************************************
17
// structs
18
// *****************************************************************
19
20
// sphere coordinates with the following convention:
21
// phi: rotation from positive z-axis (pointing up) to the vector (p-o) (around the rotated y-axis)
22
// theta: rotation from the positive x-axis to the projection of the point in xy plane (around z-axis)
23
struct
TSphereCoord
24
{
25
float
fDistance
;
26
float
fPhi
;
// zenith
27
float
fTheta
;
// azimuth
28
};
29
30
// transformation from one sphere to another
31
// both spheres wiht same radius
32
// psi: orientation of the view = rotation around the rotated (by spherical coords) x-axis
33
struct
TSphereTransform
34
{
35
TSphereCoord
fPosition
;
36
float
fPsi
;
// orientation
37
};
38
39
// transformation from one sphere to another
40
// both spheres wiht same radius
41
// fAlpha: rotation around the z axis in counterclockwise direction considering the positive z-axis
42
// fBeta: rotation around the rotated y axis in counterclockwise direction considering the positive y-axis
43
struct
TTransform
44
{
45
float
fAlpha
;
46
float
fBeta
;
47
Eigen::Vector3d
betaAxis
;
48
float
fPsi
;
49
Eigen::Vector3d
psiAxis
;
50
};
51
52
// *****************************************************************
53
// structs
54
// *****************************************************************
55
struct
TPathElement
56
{
57
TSphereCoord
Position
;
58
int
nNodeIndex
;
59
int
nHits
;
60
float
fBestSimilarity
;
61
};
62
63
using
TPath
= std::vector<TPathElement>;
64
65
struct
THypothesis
66
{
67
int
nID
;
68
TPath
Path
;
69
// path look-a-like rating
70
float
fRating
;
71
// visual similarity of last comparison
72
float
fSimilarity
;
73
// overall visual similarity
74
float
fAccSimilarity
;
75
// overall rating
76
float
fOverallRating
;
77
TTransform
Transform
;
78
bool
bValidTransform
;
79
};
TPath
std::vector< TPathElement > TPath
Definition
Structs.h:63
THypothesis
Definition
Structs.h:66
THypothesis::fRating
float fRating
Definition
Structs.h:70
THypothesis::Transform
TTransform Transform
Definition
Structs.h:77
THypothesis::bValidTransform
bool bValidTransform
Definition
Structs.h:78
THypothesis::fSimilarity
float fSimilarity
Definition
Structs.h:72
THypothesis::fOverallRating
float fOverallRating
Definition
Structs.h:76
THypothesis::fAccSimilarity
float fAccSimilarity
Definition
Structs.h:74
THypothesis::nID
int nID
Definition
Structs.h:67
THypothesis::Path
TPath Path
Definition
Structs.h:68
TPathElement
Definition
Structs.h:56
TPathElement::nHits
int nHits
Definition
Structs.h:59
TPathElement::fBestSimilarity
float fBestSimilarity
Definition
Structs.h:60
TPathElement::nNodeIndex
int nNodeIndex
Definition
Structs.h:58
TPathElement::Position
TSphereCoord Position
Definition
Structs.h:57
TSphereCoord
Definition
Structs.h:24
TSphereCoord::fDistance
float fDistance
Definition
Structs.h:25
TSphereCoord::fTheta
float fTheta
Definition
Structs.h:27
TSphereCoord::fPhi
float fPhi
Definition
Structs.h:26
TSphereTransform
Definition
Structs.h:34
TSphereTransform::fPosition
TSphereCoord fPosition
Definition
Structs.h:35
TSphereTransform::fPsi
float fPsi
Definition
Structs.h:36
TTransform
Definition
Structs.h:44
TTransform::fBeta
float fBeta
Definition
Structs.h:46
TTransform::psiAxis
Eigen::Vector3d psiAxis
Definition
Structs.h:49
TTransform::fAlpha
float fAlpha
Definition
Structs.h:45
TTransform::fPsi
float fPsi
Definition
Structs.h:48
TTransform::betaAxis
Eigen::Vector3d betaAxis
Definition
Structs.h:47
RobotAPI
components
EarlyVisionGraph
Structs.h
Generated by
1.13.2