-
Notifications
You must be signed in to change notification settings - Fork 3
/
shared_types.hpp
44 lines (37 loc) · 1.15 KB
/
shared_types.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//----------------------------------------------------------------------
/*!\file
*
* \author Matthias Holoch <mholoch@gmail.com>
* \date 2015-01-17
*
*/
//----------------------------------------------------------------------
#ifndef SHARED_TYPES_HPP_INCLUDED
#define SHARED_TYPES_HPP_INCLUDED
#include <eigen3/Eigen/Geometry>
#include "Digest.hpp"
typedef Eigen::Affine3f Transformation;
/*!
* Data structor to define a TransformationHint.
*/
struct TransformationHint {
TransformationHint(Transformation transformation, float confidence)
: transformation(transformation), confidence(confidence)
{ }
Transformation transformation;
float confidence;
};
/*!
* This struct defines the relation between a pair of descriptors of two pointclouds
*/
struct Correspondence {
Correspondence(int source_id, int target_id, Digest::DescriptorType distance)
: source_id(source_id), target_id(target_id), distance(distance)
{ }
int source_id;
int target_id;
Digest::DescriptorType distance;
};
typedef std::vector<TransformationHint> TransformationHints;
typedef std::vector<Correspondence> Correspondences;
#endif