Go to the documentation of this file.
5 #ifndef CNOID_UTIL_EIGEN_UTIL_H
6 #define CNOID_UTIL_EIGEN_UTIL_H
11 #include "exportdecl.h"
31 M << 0.0, -x(2), x(1),
37 CNOID_EXPORT std::string
str(
const Vector3& v);
38 CNOID_EXPORT std::string
str(
const Vector3f& v);
39 CNOID_EXPORT std::string
str(
const Vector2& v);
42 CNOID_EXPORT
bool toVector3(
const std::string& s, Vector3f& out_v);
54 R.col(2) = S.col(2).normalized();
55 R.col(1) = R.col(2).cross(S.col(0).normalized()).normalized();
56 R.col(0) = R.col(1).cross(R.col(2));
57 M.translation() = A.translation();
61 template<
class T,
typename... Args>
64 return std::allocate_shared<T>(Eigen::aligned_allocator<T>(), std::forward<Args>(args)...);
Eigen::Vector2d Vector2
Definition: EigenTypes.h:55
Eigen::Vector3d Vector3
Definition: EigenTypes.h:57
std::string str(const Vector3 &v)
Definition: EigenUtil.cpp:206
Eigen::Isometry3d Isometry3
Definition: EigenTypes.h:73
Vector3 omegaFromRot(const Matrix3 &R)
Definition: EigenUtil.cpp:179
Eigen::Matrix3d Matrix3
Definition: EigenTypes.h:56
Eigen::AngleAxisd AngleAxis
Definition: EigenTypes.h:64
void normalizeRotation(Matrix3 &R)
Definition: EigenUtil.cpp:270
Vector3 radian(const Vector3 &v)
Definition: EigenUtil.h:16
bool toVector6(const std::string &s, Vector6 &out_v)
Definition: EigenUtil.cpp:264
Matrix3 hat(const Vector3 &x)
Definition: EigenUtil.h:29
Definition: AbstractSceneLoader.h:11
Vector3 rpyFromRot(const Matrix3 &R)
Definition: EigenUtil.cpp:34
Matrix3 rotFromRpy(double r, double p, double y)
Definition: EigenUtil.cpp:16
std::shared_ptr< T > make_shared_aligned(Args &&... args)
Definition: EigenUtil.h:62
Eigen::Matrix< double, 6, 1 > Vector6
Definition: EigenTypes.h:61
Vector3 degree(const Vector3 &v)
Definition: EigenUtil.h:15
Eigen::Affine3d Affine3
Definition: EigenTypes.h:62
bool toVector3(const std::string &s, Vector3 &out_v)
Definition: EigenUtil.cpp:252
Isometry3 convertToIsometryWithOrthonormalization(const Affine3 &A)
Definition: EigenUtil.h:49