MROB
nodePlane4d.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  * nodePlane4d.hpp
17  *
18  * Created on: Oct 10, 2020
19  * Author: Gonzalo Ferrer
20  * g.ferrer@skoltech.ru
21  * Mobile Robotics Lab, Skoltech
22  */
23 
24 #ifndef NODEPLANE4D_HPP_
25 #define NODEPLANE4D_HPP_
26 
27 #include "mrob/matrix_base.hpp"
28 #include "mrob/node.hpp"
29 
30 namespace mrob{
31 
32 class NodePlane4d : public Node
33 {
34  public:
46  NodePlane4d(const Mat41 &initial_x, Node::nodeMode mode = STANDARD);
47  virtual ~NodePlane4d() override = default;
53  void update(VectRefConst &dx) override;
54  void update_from_auxiliary(VectRefConst &dx) override;
55  void set_state(MatRefConst &x) override {state_ = x;};
56  void set_auxiliary_state(MatRefConst &x) override {auxiliaryState_ = x;};
57  MatRefConst get_state() const override {return state_;};
58  MatRefConst get_auxiliary_state() const override {return auxiliaryState_;};
59  void print() const override;
60 
61  protected:
62  Mat41 state_;
63  Mat41 auxiliaryState_; //an auxiliary vector for undoing updates
64 
65  public:
66  EIGEN_MAKE_ALIGNED_OPERATOR_NEW // as proposed by the Eigen library
67 
68 };
69 }
70 #endif /* NODEPLANE4D_HPP_ */
void set_state(MatRefConst &x) override
Definition: nodePlane4d.hpp:55
Definition: node.hpp:61
void update(VectRefConst &dx) override
Definition: nodePlane4d.cpp:43
MatRefConst get_state() const override
Definition: nodePlane4d.hpp:57
MatRefConst get_auxiliary_state() const override
Definition: nodePlane4d.hpp:58
void set_auxiliary_state(MatRefConst &x) override
Definition: nodePlane4d.hpp: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
void update_from_auxiliary(VectRefConst &dx) override
Definition: nodePlane4d.cpp:49
Definition: nodePlane4d.hpp:32
NodePlane4d(const Mat41 &initial_x, Node::nodeMode mode=STANDARD)
Definition: nodePlane4d.cpp:31