38 #ifndef CHOMP_UTILS_H_
39 #define CHOMP_UTILS_H_
48 #include <Eigen/Geometry>
55 static const int DIFF_RULE_LENGTH = 7;
56 static const int NUM_DIFF_RULES = 3;
59 static const double DIFF_RULES[NUM_DIFF_RULES][DIFF_RULE_LENGTH] = {
60 {0, 0, -2/6.0, -3/6.0, 6/6.0, -1/6.0, 0},
61 {0, -1/12.0, 16/12.0, -30/12.0, 16/12.0, -1/12.0, 0},
62 {0, 1/12.0, -17/12.0, 46/12.0, -46/12.0, 17/12.0, -1/12.0}
66 inline void stdVectorToEigenTransform(
const std::vector<double>& stl, Eigen::Affine3d& T)
68 for (
int j=0; j<4; j++)
70 for (
int i=0; i<3; i++)
84 inline void eigenTransformToStdVector(
const Eigen::Affine3d& T, std::vector<double>& stl )
87 for (
int j=0; j<4; j++)
89 for (
int i=0; i<3; i++)