FOUND
Loading...
Searching...
No Matches
found::LOSTCalibrationAlgorithm Class Reference

The LostCalibrationAlgorithm class houses the calibration algorithm that uses the orientation information from LOST to calibrate the camera's local orientation with the reference orientation (i.e. More...

#include <calibrate.hpp>

Inheritance diagram for found::LOSTCalibrationAlgorithm:
Collaboration diagram for found::LOSTCalibrationAlgorithm:

Public Member Functions

Quaternion Run (const std::pair< EulerAngles, EulerAngles > &orientations) override
 Runs the calibration algorithm.
 
- Public Member Functions inherited from found::FunctionStage< std::pair< EulerAngles, EulerAngles >, Quaternion >
 FunctionStage ()=default
 Constructs a new Stage.
 
virtual ~FunctionStage ()=default
 Destroys this.
 
void DoAction () override
 Executes Run (with a stored input and storing the output)
 
std::pair< EulerAngles, EulerAngles > & GetResource ()
 Returns the stored input of this.
 
Quaternion *& GetProduct ()
 Returns the stored output of this.
 
- Public Member Functions inherited from found::Stage< Input, Output >
virtual Output Run (Input input)=0
 Runs this stage.
 

Additional Inherited Members

- Protected Attributes inherited from found::FunctionStage< std::pair< EulerAngles, EulerAngles >, Quaternion >
std::pair< EulerAngles, EulerAngles > resource
 The stored input for this.
 
Quaternion * product
 The pointer to the stored output for this.
 

Detailed Description

The LostCalibrationAlgorithm class houses the calibration algorithm that uses the orientation information from LOST to calibrate the camera's local orientation with the reference orientation (i.e.

LOST's camera)

Member Function Documentation

◆ Run()

Quaternion found::LOSTCalibrationAlgorithm::Run ( const std::pair< EulerAngles, EulerAngles > &  orientations)
override

Runs the calibration algorithm.

Parameters
orientationsorientation.first is the reference frame F in terms of G in spherical coordinates (local orientation). orientation.second is the orientation of reference frame L in terms of G in spherical coordinates (reference orientation).
Returns
The quaternion that represents the rotation from reference frame F to reference frame L. This is a rotation from the local orientation -> reference orientation.
Note
Set the reference orientation to 0 to make this absolute (i.e., the orientation of this camera becomes the relative rotation)
Precondition
orientation.first and orientation.second must be respective to the same reference frame G

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