Main Page
Classes
Files
File List
File Members
include
Transformation
transformation_data.h
Go to the documentation of this file.
1
18
#ifndef TRANSFORMATION_DATA_H
19
#define TRANSFORMATION_DATA_H
20
21
#include <fstream>
22
#ifndef Q_MOC_RUN
23
#include <Eigen/Core>
24
#endif
25
26
//Add the Eigen Matrix class to boost, so it knows how to serialize it
27
/*#ifndef EIGEN_BOOST_SERIALIZATION
28
#define EIGEN_BOOST_SERIALIZATION
29
#include <Eigen/Dense>
30
#include <boost/serialization/split_free.hpp>
31
#include <boost/serialization/vector.hpp>
32
33
namespace boost{namespace serialization{
34
template <class Archive, typename _Scalar, int _Rows, int _Cols, int _Options, int _MaxRows, int _MaxCols>
35
void save(Archive & ar, const Eigen::Matrix<_Scalar,_Rows,_Cols,_Options,_MaxRows,_MaxCols> & m, const unsigned int version) {
36
int rows=m.rows(),cols=m.cols();
37
ar & rows;
38
ar & cols;
39
ar & boost::serialization::make_array(m.data(), rows*cols);
40
}
41
template <class Archive, typename _Scalar, int _Rows, int _Cols, int _Options, int _MaxRows, int _MaxCols>
42
void load(Archive & ar, Eigen::Matrix<_Scalar,_Rows,_Cols,_Options,_MaxRows,_MaxCols> & m, const unsigned int version) {
43
int rows,cols;
44
ar & rows;
45
ar & cols;
46
m.resize(rows,cols);
47
ar & boost::serialization::make_array(m.data(), rows*cols);
48
}
49
50
template <class Archive, typename _Scalar, int _Rows, int _Cols, int _Options, int _MaxRows, int _MaxCols>
51
void serialize(Archive & ar, Eigen::Matrix<_Scalar,_Rows,_Cols,_Options,_MaxRows,_MaxCols> & m, const unsigned int version) {
52
split_free(ar,m,version);
53
}
54
55
}}
56
#endif*/
57
58
//---------------------------------------------
59
// Begin of the actual class
60
//---------------------------------------------
61
class
Transformation_Data
62
{
63
public
:
64
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
65
Transformation_Data
();
66
Transformation_Data
(Eigen::Matrix4d
PTU_Frame
, Eigen::Matrix4d
LaserScan_Frame
,
double
pan
,
double
tilt
);
67
Eigen::Matrix4d
PTU_Frame
;
68
Eigen::Matrix4d
LaserScan_Frame
;
69
double
pan
;
70
double
tilt
;
71
private
:
72
/*friend class boost::serialization::access;
73
template <class Archive>
74
void serialize(Archive & ar, const unsigned int version)
75
{
76
ar & pan;
77
ar & tilt;
78
ar & PTU_Frame;
79
ar & LaserScan_Frame;
80
}*/
81
};
82
83
#endif // TRANSFORMATION_DATA_H
Transformation_Data
Definition:
transformation_data.h:61
Transformation_Data::tilt
double tilt
Definition:
transformation_data.h:70
Transformation_Data::Transformation_Data
EIGEN_MAKE_ALIGNED_OPERATOR_NEW Transformation_Data()
Definition:
transformation_data.cpp:29
Transformation_Data::PTU_Frame
Eigen::Matrix4d PTU_Frame
Definition:
transformation_data.h:67
Transformation_Data::pan
double pan
Definition:
transformation_data.h:69
Transformation_Data::LaserScan_Frame
Eigen::Matrix4d LaserScan_Frame
Definition:
transformation_data.h:68
asr_mild_calibration_tool
Author(s): Aumann Florian, Heller Florian, Meißner Pascal
autogenerated on Mon Dec 2 2019 03:11:43