MROB
EigenFactorPoint.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  * EigenFactorPoint.hpp
17  *
18  * Created on: Oct 24, 2022
19  * Author: Gonzalo Ferrer
20  * g.ferrer@skoltech.ru
21  * Mobile Robotics Lab.
22  */
23 
24 #ifndef EIGENFACTORPOINT_HPP_
25 #define EIGENFACTORPOINT_HPP_
26 
27 
28 #include "mrob/factor.hpp"
29 #include "mrob/factors/EigenFactorPlane.hpp"
30 #include <unordered_map>
31 #include <deque>
32 #include <Eigen/StdVector>
33 #include "mrob/SE3.hpp"
34 
35 
36 namespace mrob{
37 
57 public:
61  EigenFactorPoint(Factor::robustFactorType robust_type = Factor::robustFactorType::QUADRATIC);
62  ~EigenFactorPoint() override = default;
67  void evaluate_residuals() override;
72  void evaluate_jacobians() override;
76  void evaluate_chi2() override;
77 
78 
79 protected:
80  //vector of residuals, and T*mu_i follows the same indexing than Jacobian and Hessian
81  std::deque<Mat31, Eigen::aligned_allocator<Mat31>> r_,transformed_mu_;
82  SE3 T_ini_inv_;
83 
84 };
85 
86 }
87 #endif /* EigenFactorPlane_HPP_ */
robustFactorType
Definition: factor.hpp:87
void evaluate_jacobians() override
Definition: EigenFactorPoint.cpp:68
Definition: SE3.hpp:50
void evaluate_chi2() override
Definition: EigenFactorPoint.cpp:93
Definition: EigenFactorPlane.hpp:55
EigenFactorPoint(Factor::robustFactorType robust_type=Factor::robustFactorType::QUADRATIC)
Definition: EigenFactorPoint.cpp:33
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: EigenFactorPoint.cpp:38
Definition: EigenFactorPoint.hpp:56