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
#include <Eigen/Core>
14
15
// *****************************************************************
16
// structs
17
// *****************************************************************
18
19
// sphere coordinates with the following convention:
20
// phi: rotation from positive z-axis (pointing up) to the vector (p-o) (around the rotated y-axis)
21
// theta: rotation from the positive x-axis to the projection of the point in xy plane (around z-axis)
22
struct
TSphereCoord
23
{
24
float
fDistance
;
25
float
fPhi
;
// zenith
26
float
fTheta
;
// azimuth
27
};
28
29
// transformation from one sphere to another
30
// both spheres wiht same radius
31
// psi: orientation of the view = rotation around the rotated (by spherical coords) x-axis
32
struct
TSphereTransform
33
{
34
TSphereCoord
fPosition
;
35
float
fPsi
;
// orientation
36
};
37
38
// transformation from one sphere to another
39
// both spheres wiht same radius
40
// fAlpha: rotation around the z axis in counterclockwise direction considering the positive z-axis
41
// fBeta: rotation around the rotated y axis in counterclockwise direction considering the positive y-axis
42
struct
TTransform
43
{
44
float
fAlpha
;
45
float
fBeta
;
46
Eigen::Vector3d
betaAxis
;
47
float
fPsi
;
48
Eigen::Vector3d
psiAxis
;
49
};
50
51
// *****************************************************************
52
// structs
53
// *****************************************************************
54
struct
TPathElement
55
{
56
TSphereCoord
Position
;
57
int
nNodeIndex
;
58
int
nHits
;
59
float
fBestSimilarity
;
60
};
61
62
using
TPath
= std::vector<TPathElement>;
63
64
struct
THypothesis
65
{
66
int
nID
;
67
TPath
Path
;
68
// path look-a-like rating
69
float
fRating
;
70
// visual similarity of last comparison
71
float
fSimilarity
;
72
// overall visual similarity
73
float
fAccSimilarity
;
74
// overall rating
75
float
fOverallRating
;
76
TTransform
Transform
;
77
bool
bValidTransform
;
78
};
79
80
81
THypothesis
Definition:
Structs.h:64
TSphereTransform
Definition:
Structs.h:32
TSphereCoord::fTheta
float fTheta
Definition:
Structs.h:26
THypothesis::bValidTransform
bool bValidTransform
Definition:
Structs.h:77
TTransform::fBeta
float fBeta
Definition:
Structs.h:45
TTransform::fAlpha
float fAlpha
Definition:
Structs.h:44
THypothesis::fSimilarity
float fSimilarity
Definition:
Structs.h:71
TPathElement::nHits
int nHits
Definition:
Structs.h:58
THypothesis::fAccSimilarity
float fAccSimilarity
Definition:
Structs.h:73
TTransform::betaAxis
Eigen::Vector3d betaAxis
Definition:
Structs.h:46
TTransform
Definition:
Structs.h:42
TPathElement::fBestSimilarity
float fBestSimilarity
Definition:
Structs.h:59
TPathElement::Position
TSphereCoord Position
Definition:
Structs.h:56
TSphereCoord::fPhi
float fPhi
Definition:
Structs.h:25
TTransform::fPsi
float fPsi
Definition:
Structs.h:47
THypothesis::fRating
float fRating
Definition:
Structs.h:69
THypothesis::fOverallRating
float fOverallRating
Definition:
Structs.h:75
TSphereTransform::fPsi
float fPsi
Definition:
Structs.h:35
TTransform::psiAxis
Eigen::Vector3d psiAxis
Definition:
Structs.h:48
TPathElement::nNodeIndex
int nNodeIndex
Definition:
Structs.h:57
TSphereCoord::fDistance
float fDistance
Definition:
Structs.h:24
TPathElement
Definition:
Structs.h:54
THypothesis::Path
TPath Path
Definition:
Structs.h:67
THypothesis::nID
int nID
Definition:
Structs.h:66
TSphereTransform::fPosition
TSphereCoord fPosition
Definition:
Structs.h:34
TSphereCoord
Definition:
Structs.h:22
THypothesis::Transform
TTransform Transform
Definition:
Structs.h:76
TPath
std::vector< TPathElement > TPath
Definition:
Structs.h:62
RobotAPI
components
EarlyVisionGraph
Structs.h
Generated on Sat Oct 12 2024 09:14:06 for armarx_documentation by
1.8.17