Biorbd Release_1.13.0
Loading...
Searching...
No Matches
SpatialTransform.cpp
1#define BIORBD_API_EXPORTS
2#include "Utils/SpatialTransform.h"
3
4#include "Utils/Error.h"
5#include "Utils/Matrix3d.h"
6#include "Utils/RotoTrans.h"
7#include "Utils/String.h"
8#include "Utils/Vector3d.h"
9
10using namespace BIORBD_NAMESPACE;
11
14
16 : RigidBodyDynamics::Math::SpatialTransform(other) {}
17
22
24 : RigidBodyDynamics::Math::SpatialTransform(
25 rototrans.block<3, 3>(0, 0),
26 rototrans.trans()) {}
27
29 const RigidBodyDynamics::Math::SpatialTransform& other)
30 : RigidBodyDynamics::Math::SpatialTransform(other) {}
31
33 this->RigidBodyDynamics::Math::SpatialTransform::operator=(other);
34}
35
39
43
A wrapper for the Eigen::MatrixXd.
Definition Matrix3d.h:21
Homogenous matrix to describe translations and rotations simultaneously.
Definition RotoTrans.h:33
RotoTrans(const RigidBodyDynamics::Math::Matrix4d &matrix=RigidBodyDynamics::Math::Matrix4d::Identity())
Construct RotoTrans matrix.
Definition RotoTrans.cpp:14
Wrapper of the SpatialTransform (rotation and translation).
utils::Matrix3d rotation() const
Return the rotation part of the transform.
void operator=(const SpatialTransform &other)
operator= For submatrices
utils::RotoTrans rototrans() const
Return the transformation matrix, i.e. the rototrans matrix.
SpatialTransform()
Construct SpatialTransform.
utils::Vector3d translation() const
Return the translation part of the transform.
Wrapper around Eigen Vector3d and attach it to a parent.
Definition Vector3d.h:27