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