MROB
EigenFactorPlaneCenter.hpp
1 /* Copyright (c) 2022, Gonzalo Ferrer
2  *
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  *
15  *
16  * EigenFactorPlaneCenter.hpp
17  *
18  * Created on: Oct 7 2022
19  * Author: Gonzalo Ferrer
20  * g.ferrer@skoltech.ru
21  * Mobile Robotics Lab.
22  */
23 
24 // XXX this duplicate should disappear
25 #ifndef EIGENFACTORPLANECENTER_HPP_
26 #define EIGENFACTORPLANECENTER_HPP_
27 
28 
29 #include "mrob/factor.hpp"
30 #include "mrob/factors/EigenFactorPlane.hpp"
31 #include <unordered_map>
32 #include <deque>
33 #include <Eigen/StdVector>
34 
35 
36 namespace mrob{
37 
58 public:
63  EigenFactorPlaneCenter(Factor::robustFactorType robust_type = Factor::robustFactorType::QUADRATIC);
64  ~EigenFactorPlaneCenter() override = default;
69  void evaluate_residuals() override;
74  void evaluate_jacobians() override;
78  void evaluate_chi2() override;
79 
80 
81 protected:
86  void estimate_plane() override;
87 
88  Mat4 accumulatedCenterQ_;//Q matrix of accumulated values for the incremental update of the error.
89  Mat41 planeEstimationUnit_;
90  Mat4 Tcenter_;
91 
92  // subset of pointcloud for the given plane
93  //std::unordered_map<factor_id_t, std::vector<Mat31> > allPlanePoints_;
94 
95 };
96 
97 }
98 #endif /* EigenFactorPlaneCenter_HPP_ */
robustFactorType
Definition: factor.hpp:87
void evaluate_jacobians() override
Definition: EigenFactorPlaneCenter.cpp:45
void estimate_plane() override
Definition: EigenFactorPlaneCenter.cpp:94
Definition: EigenFactorPlaneCenter.hpp:57
void evaluate_chi2() override
Definition: EigenFactorPlaneCenter.cpp:82
Definition: EigenFactorPlane.hpp:55
Special Euclidean (group) in 3d Is the group representing rotations and translations, that is, rigid body transformations. SE3 = {T = [R t] | R SO3 , t Re^3 } [0 1] Associated to the groups of RBT, there is the Lie algebra se3 representing the same transformation in the tangent space around the identity. Particularly, xi =[w , v] Re^6, where w Re^3 represents the rotation and v the translation. We will preserve this order in this class.
Definition: matrix_base.hpp:36
void evaluate_residuals() override
Definition: EigenFactorPlaneCenter.cpp:40
EigenFactorPlaneCenter(Factor::robustFactorType robust_type=Factor::robustFactorType::QUADRATIC)
Definition: EigenFactorPlaneCenter.cpp:33