FOUND
Loading...
Searching...
No Matches
vectorize.hpp
1#ifndef SRC_DISTANCE_VECTORIZE_HPP_
2#define SRC_DISTANCE_VECTORIZE_HPP_
3
4#include "common/spatial/attitude-utils.hpp"
5#include "common/style.hpp"
6#include "common/pipeline/stages.hpp"
7
8namespace found {
9
15class VectorGenerationAlgorithm : public FunctionStage<PositionVector, PositionVector> {
16 public:
17 // Constructs this
18 VectorGenerationAlgorithm() = default;
19 // Destroys this
21};
22
29 public:
40 explicit LOSTVectorGenerationAlgorithm(Quaternion relativeOrientation, Quaternion referenceOrientation)
41 : orientation(relativeOrientation * referenceOrientation) {}
42 // TODO: I feel like we should be taking the conjugate of the above multiplication here, to mirror the blow
43 // constructor, because relativeOrientation == orientation * referenceOrientation^-1, but it works out for
44 // some reason. I'm not really sure why though, but the test cases all pass and don't when you attempt to
45 // conjugate this.
46
60
61 // Destroys this
63
73 PositionVector Run(const PositionVector &x_E) override;
74
75 private:
76 // Fields specific to this algorithm go here, and helper methods
77
80};
81
88 public:
92 FeatureDetectionVectorGenerationAlgorithm(/*Params to initialze fields for this object*/);
93
98
108 PositionVector Run(const PositionVector &x_E) override;
109 private:
110 // Fields specific to this algorithm go here, and helper methods
111};
112
113} // namespace found
114
115#endif // SRC_DISTANCE_VECTORIZE_HPP_
FeatureDetectionVectorGenerationAlgorithm figures out the distance vector of the satellite relative t...
Definition vectorize.hpp:87
PositionVector Run(const PositionVector &x_E) override
Place documentation here.
~FeatureDetectionVectorGenerationAlgorithm()
Place documentation here.
FeatureDetectionVectorGenerationAlgorithm()
Place documentation here.
A FunctionStage is a data structure that wraps a function, and taking in parameter Input and returnin...
Definition stages.hpp:56
The LOSTVectorGenerationAlgorithm class houses the a Vector Assembly Algorithm that calculates the po...
Definition vectorize.hpp:28
LOSTVectorGenerationAlgorithm(Quaternion relativeOrientation, Quaternion referenceOrientation)
Creates a LOSTVectorGenerationAlgorithm object.
Definition vectorize.hpp:40
LOSTVectorGenerationAlgorithm(Quaternion orientation)
Creates a LOSTVectorGenerationAlgorithm object.
Definition vectorize.hpp:58
Quaternion orientation
Orientation from LOST.
Definition vectorize.hpp:79
PositionVector Run(const PositionVector &x_E) override
Runs the Vector Assembly Algorithm, which finds the vector of the satellite with respect to Earth's c...
Definition vectorize.cpp:7
A Quaternion is a mutable object that represents a Quaternion.
Definition attitude-utils.hpp:474
A Vec3 is a mutable object that represents a 3D Vector.
Definition attitude-utils.hpp:98
The VectorGenerationAlgorithm class houses the Vector Assembly Algorithm.
Definition vectorize.hpp:15