8 inline bool eps_eq(
const double a,
const double b,
const double eps = 0.001)
10 return fabs((a)-(b)) <=
eps;
37 if (wrt ==
":local") {
40 }
else if(wrt ==
":world") {
44 std::cerr <<
"**** invalid wrt! ****" << std::endl;
48 Eigen::AngleAxis<double> tmpr(theta, axis);
60 inv.
rot = rot.transpose();
66 if (wrt ==
":local") {
68 }
else if(wrt ==
":world") {
72 std::cerr <<
"**** invalid wrt! ****" << std::endl;
76 if (wrt ==
":local") {
81 }
else if (wrt ==
":world") {
89 std::cerr <<
"**** invalid wrt! ****" << std::endl;
void difference_rotation(hrp::Vector3 &ret_dif_rot, const hrp::Matrix33 &self_rot, const hrp::Matrix33 &target_rot)
coordinates(const hrp::Matrix33 &r)
void transformation(coordinates &tc, coordinates c, const std::string &wrt=":local") const
void transform(const coordinates &c, const std::string &wrt=":local")
OpenHRP::matrix33 Matrix33
coordinates(const coordinates &c)
void inverse_transformation(coordinates &inv) const
coordinates(const hrp::Vector3 &p, const hrp::Matrix33 &r)
coordinates & operator=(const coordinates &c)
void rotm3times(hrp::Matrix33 &m12, const hrp::Matrix33 &m1, const hrp::Matrix33 &m2)
bool eps_eq(const double a, const double b, const double eps=0.001)
hrp::Vector3 matrix_log(const hrp::Matrix33 &m)
void difference(hrp::Vector3 &dif_pos, hrp::Vector3 &dif_rot, const coordinates &c) const
void rotate_with_matrix(const hrp::Matrix33 &mat, const std::string &wrt=":local")
void rotate(const double theta, const hrp::Vector3 &axis, const std::string &wrt=":local")
void mid_rot(hrp::Matrix33 &mid_rot, const double p, const hrp::Matrix33 &rot1, const hrp::Matrix33 &rot2, const double eps)
coordinates(const hrp::Vector3 &p)
void mid_coords(coordinates &mid_coords, const double p, const coordinates &c1, const coordinates &c2, const double eps)