00001 00018 #ifndef TRANSFORMATIONWRITERDATA_H 00019 #define TRANSFORMATIONWRITERDATA_H 00020 #include <Transformation/abstract_transformationfile_manager.h> 00021 00022 //This class is used to export a pair of Frames (PTU->Object, Laserscanner->Object) 00023 //along with the current configurations of the PTU (Pan, Tilt) to a data file 00024 00025 class TransformationFile_Manager_Data : public Abstract_TransformationFile_Manager 00026 { 00027 public: 00028 TransformationFile_Manager_Data(string filePath); 00029 bool writeToFile(Transformation_Data data); 00030 std::vector<Transformation_Data> readFromFile(string filePath); 00031 std::vector<Eigen::Matrix4d, Eigen::aligned_allocator<Eigen::Matrix4d>>readTransformationFromFile(string filePath); 00032 bool writeTransformationToFile(const std::vector<Eigen::Matrix4d, Eigen::aligned_allocator<Eigen::Matrix4d>> transformation); 00033 bool writeCameraOffsetToFile(const PanTiltOffsetTupleList &offsetData); 00034 00035 using Abstract_TransformationFile_Manager::writeToFile; 00036 using Abstract_TransformationFile_Manager::readFromFile; 00037 }; 00038 00039 #endif // TRANSFORMATIONWRITERDATA_H