#include <transformationfile_manager_data.h>
Public Member Functions | |
std::vector< Transformation_Data > | readFromFile (string filePath) |
std::vector< Eigen::Matrix4d, Eigen::aligned_allocator < Eigen::Matrix4d > > | readTransformationFromFile (string filePath) |
TransformationFile_Manager_Data (string filePath) | |
bool | writeCameraOffsetToFile (const PanTiltOffsetTupleList &offsetData) |
bool | writeToFile (Transformation_Data data) |
bool | writeTransformationToFile (const std::vector< Eigen::Matrix4d, Eigen::aligned_allocator< Eigen::Matrix4d >> transformation) |
Copyright (c) 2016, Aumann Florian, Heller Florian, Meißner Pascal All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition at line 25 of file transformationfile_manager_data.h.
TransformationFile_Manager_Data::TransformationFile_Manager_Data | ( | string | filePath | ) |
Definition at line 29 of file transformationfile_manager_data.cpp.
std::vector< Transformation_Data > TransformationFile_Manager_Data::readFromFile | ( | string | filePath | ) | [virtual] |
Implements Abstract_TransformationFile_Manager.
Definition at line 63 of file transformationfile_manager_data.cpp.
std::vector< Eigen::Matrix4d, Eigen::aligned_allocator< Eigen::Matrix4d > > TransformationFile_Manager_Data::readTransformationFromFile | ( | string | filePath | ) | [virtual] |
Implements Abstract_TransformationFile_Manager.
Definition at line 117 of file transformationfile_manager_data.cpp.
bool TransformationFile_Manager_Data::writeCameraOffsetToFile | ( | const PanTiltOffsetTupleList & | offsetData | ) | [virtual] |
!!Angles!!! Eigen::Vector3d angles = rotation.eulerAngles(2, 0, 2);
myfile << angles[0] << "; " << angles[1] << "; " << angles[2] << "; " << translation[0] << "; " << translation[1] << "; " << translation[2] << std::endl;
Implements Abstract_TransformationFile_Manager.
Definition at line 197 of file transformationfile_manager_data.cpp.
bool TransformationFile_Manager_Data::writeToFile | ( | Transformation_Data | data | ) | [virtual] |
Implements Abstract_TransformationFile_Manager.
Definition at line 32 of file transformationfile_manager_data.cpp.
bool TransformationFile_Manager_Data::writeTransformationToFile | ( | const std::vector< Eigen::Matrix4d, Eigen::aligned_allocator< Eigen::Matrix4d >> | transformation | ) | [virtual] |
!!Angles!!! Eigen::Vector3d angles = rotation.eulerAngles(2, 0, 2);
myfile << angles[0] << "; " << angles[1] << "; " << angles[2] << "; " << translation[0] << "; " << translation[1] << "; " << translation[2] << std::endl;
Implements Abstract_TransformationFile_Manager.
Definition at line 169 of file transformationfile_manager_data.cpp.