76 : translation_(translation)
89 template<
class t_Derived>
90 void apply( Eigen::MatrixBase< t_Derived >
const & result_block,
91 const Eigen::MatrixXd & matrix)
const 93 for (
EigenIndex i = 0; i < result_block.cols(); ++i)
95 (
const_cast< Eigen::MatrixBase<t_Derived>&
>(result_block)).col(i)
99 translation_(2) * matrix(1,i) - translation_(1) * matrix(2,i) + matrix(3,i),
100 translation_(0) * matrix(2,i) - translation_(2) * matrix(0,i) + matrix(4,i),
101 translation_(1) * matrix(0,i) - translation_(0) * matrix(1,i) + matrix(5,i);
115 template<
class t_Derived>
117 const Eigen::MatrixXd & matrix)
const 119 for (
EigenIndex i = 0; i < result_block.cols(); ++i)
121 (
const_cast< Eigen::MatrixBase<t_Derived>&
>(result_block)).col(i)
122 << translation_(2) * matrix(1,i) - translation_(1) * matrix(2,i) + matrix(3,i),
123 translation_(0) * matrix(2,i) - translation_(2) * matrix(0,i) + matrix(4,i),
124 translation_(1) * matrix(0,i) - translation_(0) * matrix(1,i) + matrix(5,i);
138 template<
class t_Derived>
140 const Eigen::MatrixXd & matrix)
142 const_cast< Eigen::MatrixBase<t_Derived>&
>(result_block) = matrix.topRows(3);
146 template<SpatialType::Type t_type,
class t_Derived>
148 const Eigen::MatrixXd & matrix)
const 153 apply(result_block, matrix);
157 applyGetTranslationPart(result_block, matrix);
161 applyGetRotationPart(result_block, matrix);
static std::size_t getNumberOfElements(const Type &spatial_type)
Returns number of elements (dimensionality) for given spatial data type.
#define HUMOTO_THROW_MSG(s)
HUMOTO_THROW_MSG throws an error message concatenated with the name of the function (if supported)...
EIGEN_DEFAULT_DENSE_INDEX_TYPE EigenIndex
This class collects enums and methods to facilitate partial handling of spatial data, e.g., for discrimination of rotational, translational, and complete Jacobians.
The root namespace of HuMoTo.
Type
Type os spatial data.