RML  1.0
Robotics Mathematical Library
Loading...
Searching...
No Matches
Vector6d.h
Go to the documentation of this file.
1
8#ifndef INCLUDE_VECTOR6D_H_
9#define INCLUDE_VECTOR6D_H_
10
11#include "Types.h"
12
13namespace Eigen {
14
19public:
21 // This constructor allows you to construct TransfMatrix from Eigen expressions
22 template <typename OtherDerived>
23 Vector6d(const Eigen::MatrixBase<OtherDerived>& other)
24 : Eigen::Vector6dBase(other)
25 {
26 }
27
28 // This method allows you to assign Eigen expressions to TransfMatrix
29 template <typename OtherDerived>
30 Vector6d& operator=(const Eigen::MatrixBase<OtherDerived>& other)
31 {
32 this->Eigen::Vector6dBase::operator=(other);
33 return *this;
34 }
35
36 template <typename OtherDerived>
37 void LinearVector(const Eigen::MatrixBase<OtherDerived>& linear)
38 {
39 this->block(0, 0, 3, 1) = linear;
40 }
41
42 template <typename OtherDerived>
43 void AngularVector(const Eigen::MatrixBase<OtherDerived>& angular)
44 {
45 this->block(3, 0, 3, 1) = angular;
46 }
47
48 Vector6d(const Vector3d linear, const Vector3d angular);
49
50 auto LinearVector() const -> Vector3d { return this->block(0, 0, 3, 1); }
51
52 auto AngularVector() const -> Vector3d { return this->block(3, 0, 3, 1); }
53};
54}
55
56#endif /* INCLUDE_VECTOR6D_H_ */
A 6d vector generally used for containing pose [x y z r p y] or velocity [vx vy vz wx wy wz] vectors.
Definition Vector6d.h:18
auto AngularVector() const -> Vector3d
Definition Vector6d.h:52
void AngularVector(const Eigen::MatrixBase< OtherDerived > &angular)
Definition Vector6d.h:43
Vector6d & operator=(const Eigen::MatrixBase< OtherDerived > &other)
Definition Vector6d.h:30
Vector6d(const Vector3d linear, const Vector3d angular)
auto LinearVector() const -> Vector3d
Definition Vector6d.h:50
Vector6d(const Eigen::MatrixBase< OtherDerived > &other)
Definition Vector6d.h:23
void LinearVector(const Eigen::MatrixBase< OtherDerived > &linear)
Definition Vector6d.h:37
This namespace is used to extend the Eigen Dense library functionalities.
Definition RotMatrix.h:13
Eigen::Matrix< double, 6, 1 > Vector6dBase
Definition Types.h:37