MROB
nodeLandmark3d.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  * nodeLandmark3d.hpp
17  *
18  * Created on: March 17, 2020
19  * Author: Gonzalo Ferrer
20  * g.ferrer@skoltech.ru
21  * Mobile Robotics Lab, Skoltech
22  */
23 
24 #ifndef NODELANDMARK3D_HPP_
25 #define NODELANDMARK3D_HPP_
26 
27 #include "mrob/matrix_base.hpp"
28 #include "mrob/SE3.hpp" //requires including and linking SE3 library
29 #include "mrob/node.hpp"
30 
31 namespace mrob{
32 
33 class NodeLandmark3d : public Node
34 {
35  public:
39  NodeLandmark3d(const Mat31 &initial_x, Node::nodeMode mode = STANDARD);
40  //NodePose3d(const SE3 &initial_T);
41  virtual ~NodeLandmark3d() override = default;
42 
43  void update(VectRefConst &dx) override;
44  void update_from_auxiliary(VectRefConst &dx) override;
45  void set_state(MatRefConst &x) override;
46  void set_auxiliary_state(MatRefConst &x) override;
47  MatRefConst get_state() const override {return state_;}
48  MatRefConst get_auxiliary_state() const override {return auxiliaryState_;}
49  void print() const;
50 
51  protected:
52  Mat31 state_;
53  Mat31 auxiliaryState_;
54 
55  public:
56  EIGEN_MAKE_ALIGNED_OPERATOR_NEW // as proposed by Eigen
57 
58 
59 };
60 
61 
62 }
63 
64 
65 #endif /* NODELANDMARK3D_HPP_ */
void update(VectRefConst &dx) override
Definition: nodeLandmark3d.cpp:39
void update_from_auxiliary(VectRefConst &dx) override
Definition: nodeLandmark3d.cpp:45
void set_state(MatRefConst &x) override
Definition: nodeLandmark3d.cpp:51
MatRefConst get_state() const override
Definition: nodeLandmark3d.hpp:47
void set_auxiliary_state(MatRefConst &x) override
Definition: nodeLandmark3d.cpp:57
Definition: nodeLandmark3d.hpp:33
Definition: node.hpp:61
MatRefConst get_auxiliary_state() const override
Definition: nodeLandmark3d.hpp:48
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
NodeLandmark3d(const Mat31 &initial_x, Node::nodeMode mode=STANDARD)
Definition: nodeLandmark3d.cpp:31