Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
ResectionSolver Class Reference

#include <resectionsolver.h>

Public Member Functions

Eigen::Matrix4d calculateTransformationMatrix (const Eigen::Vector2d &base_A, const Eigen::Vector2d &base_B, const Eigen::Vector2d &base_C, const Eigen::Vector3d &solution)
 
 ResectionSolver (boost::shared_ptr< Calibration_Object > calibrationObject, boost::shared_ptr< FeasibilityChecker > feasibilityChecker)
 
unsigned int solve (const Eigen::Vector2d &base_A, const Eigen::Vector2d &base_B, const Eigen::Vector2d &base_C)
 

Public Attributes

std::vector< Eigen::Vector3d, Eigen::aligned_allocator< Eigen::Vector3d > > solutions
 
std::vector< double > solutions_a
 
std::vector< double > solutions_b
 
std::vector< double > solutions_c
 

Protected Member Functions

int solve_for_lengths (double side_A, double side_B, double side_C)
 
unsigned int solve_for_lengths_ (double side_A, double side_B, double side_C)
 
Eigen::Vector3d solve_for_top (const Eigen::Vector2d &base_A, const Eigen::Vector2d &base_B, const Eigen::Vector2d &base_C, double length_AS, double length_BS, double length_CS)
 

Protected Attributes

boost::shared_ptr< Calibration_ObjectcalibrationObject
 
boost::shared_ptr< FeasibilityCheckerfeasibilityChecker
 
double K_1
 
double K_2
 
double q_0
 
double q_1
 
double q_2
 
double q_3
 
double q_4
 

Detailed Description

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 29 of file resectionsolver.h.

Constructor & Destructor Documentation

ResectionSolver::ResectionSolver ( boost::shared_ptr< Calibration_Object calibrationObject,
boost::shared_ptr< FeasibilityChecker feasibilityChecker 
)

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 27 of file resectionsolver.cpp.

Member Function Documentation

Eigen::Matrix4d ResectionSolver::calculateTransformationMatrix ( const Eigen::Vector2d &  base_A,
const Eigen::Vector2d &  base_B,
const Eigen::Vector2d &  base_C,
const Eigen::Vector3d &  solution 
)

Definition at line 184 of file resectionsolver.cpp.

unsigned int ResectionSolver::solve ( const Eigen::Vector2d &  base_A,
const Eigen::Vector2d &  base_B,
const Eigen::Vector2d &  base_C 
)

Definition at line 33 of file resectionsolver.cpp.

int ResectionSolver::solve_for_lengths ( double  side_A,
double  side_B,
double  side_C 
)
protected

Definition at line 89 of file resectionsolver.cpp.

unsigned int ResectionSolver::solve_for_lengths_ ( double  side_A,
double  side_B,
double  side_C 
)
protected
Eigen::Vector3d ResectionSolver::solve_for_top ( const Eigen::Vector2d &  base_A,
const Eigen::Vector2d &  base_B,
const Eigen::Vector2d &  base_C,
double  length_AS,
double  length_BS,
double  length_CS 
)
protected

Definition at line 62 of file resectionsolver.cpp.

Member Data Documentation

boost::shared_ptr<Calibration_Object> ResectionSolver::calibrationObject
protected

Definition at line 43 of file resectionsolver.h.

boost::shared_ptr<FeasibilityChecker> ResectionSolver::feasibilityChecker
protected

Definition at line 46 of file resectionsolver.h.

double ResectionSolver::K_1
protected

Definition at line 44 of file resectionsolver.h.

double ResectionSolver::K_2
protected

Definition at line 44 of file resectionsolver.h.

double ResectionSolver::q_0
protected

Definition at line 42 of file resectionsolver.h.

double ResectionSolver::q_1
protected

Definition at line 42 of file resectionsolver.h.

double ResectionSolver::q_2
protected

Definition at line 42 of file resectionsolver.h.

double ResectionSolver::q_3
protected

Definition at line 42 of file resectionsolver.h.

double ResectionSolver::q_4
protected

Definition at line 42 of file resectionsolver.h.

std::vector<Eigen::Vector3d, Eigen::aligned_allocator<Eigen::Vector3d> > ResectionSolver::solutions

Definition at line 35 of file resectionsolver.h.

std::vector<double> ResectionSolver::solutions_a

Definition at line 36 of file resectionsolver.h.

std::vector<double> ResectionSolver::solutions_b

Definition at line 37 of file resectionsolver.h.

std::vector<double> ResectionSolver::solutions_c

Definition at line 38 of file resectionsolver.h.


The documentation for this class was generated from the following files:


asr_mild_calibration_tool
Author(s): Aumann Florian, Heller Florian, Meißner Pascal
autogenerated on Mon Dec 2 2019 03:11:43