MROB
nodePose2d.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  * Created on: Jan 14, 2019
17  * Author: Konstantin Pakulev
18  * konstantin.pakulev@skoltech.ru
19  * Gonzalo Ferrer
20  * g.ferrer@skoltech.ru
21  * Mobile Robotics Lab, Skoltech
22  */
23 
24 #ifndef MROB_NODEPOSE2D_H
25 #define MROB_NODEPOSE2D_H
26 
27 #include "mrob/matrix_base.hpp"
28 #include "mrob/node.hpp"
29 
30 namespace mrob{
31 
32 
37  class NodePose2d : public Node {
38  public:
42  explicit NodePose2d(const Mat31 &initial_x, Node::nodeMode mode = STANDARD);
43  virtual ~NodePose2d() override = default;
44 
45  virtual void update(VectRefConst &dx);
46  virtual void update_from_auxiliary(VectRefConst &dx);
47  virtual void set_state(MatRefConst &x);
48  virtual void set_auxiliary_state(MatRefConst &x);
49  virtual MatRefConst get_state() const {return state_;};
50  virtual MatRefConst get_auxiliary_state() const {return auxiliaryState_;};
51  void print() const;
52  protected:
53  Mat31 state_;
54  Mat31 auxiliaryState_;
55  public:
56  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
57  };
58 
59 }
60 
61 #endif //MROB_NODEPOSE2D_H
virtual void update_from_auxiliary(VectRefConst &dx)
Definition: nodePose2d.cpp:42
virtual MatRefConst get_state() const
Definition: nodePose2d.hpp:49
Definition: nodePose2d.hpp:37
virtual void set_state(MatRefConst &x)
Definition: nodePose2d.cpp:50
Definition: node.hpp:61
NodePose2d(const Mat31 &initial_x, Node::nodeMode mode=STANDARD)
Definition: nodePose2d.cpp:29
virtual void set_auxiliary_state(MatRefConst &x)
Definition: nodePose2d.cpp:56
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
virtual MatRefConst get_auxiliary_state() const
Definition: nodePose2d.hpp:50
virtual void update(VectRefConst &dx)
Definition: nodePose2d.cpp:35