1 #include <gtest/gtest.h> 6 #if __cplusplus >= 201103L 45 for (
int i = 1;
i <= 16;
i++) {
46 for (
int j = 1;
j <= 16;
j++) {
47 for (
int k = 1; k <= 16; k++) {
48 Vector3 rpy(pow(0.1,
i), pow(0.1,
j), pow(0.1, k));
51 EXPECT_FALSE(isnan(v[0]));
52 EXPECT_FALSE(isnan(v[1]));
53 EXPECT_FALSE(isnan(v[2]));
58 for (
int i = 0;
i <= 180;
i++) {
59 for (
int j = 0;
j <= 180;
j++) {
60 for (
int k = 0; k <= 180; k++) {
64 EXPECT_FALSE(isnan(v[0]));
65 EXPECT_FALSE(isnan(v[1]));
66 EXPECT_FALSE(isnan(v[2]));
Matrix33 rotFromRpy(const Vector3 &rpy)
TEST(Eigen3d, omegaFromRot)
def j(str, encoding="cp932")
HRP_UTIL_EXPORT Vector3 omegaFromRot(const Matrix33 &r)