Skip to content

Commit

Permalink
new IGN_PI
Browse files Browse the repository at this point in the history
Signed-off-by: Louise Poubel <[email protected]>
  • Loading branch information
chapulina committed Jun 9, 2022
1 parent 419601e commit 4f09436
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Pose_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ TEST(PoseTest, Pose)
// B is the transform from O to Q in frame O
// then -A is transform from P to O specified in frame P
math::Pose3d A(math::Vector3d(1, 0, 0),
math::Quaterniond(0, 0, IGN_PI/4.0));
math::Quaterniond(0, 0, GZ_PI/4.0));
EXPECT_TRUE(math::equal(
(A.Inverse() * math::Pose3d()).Pos().X(), -1.0/sqrt(2)));
EXPECT_TRUE(math::equal(
Expand All @@ -103,7 +103,7 @@ TEST(PoseTest, Pose)
EXPECT_TRUE(math::equal(
(A.Inverse() * math::Pose3d()).Rot().Euler().Y(), 0.0));
EXPECT_TRUE(math::equal(
(A.Inverse() * math::Pose3d()).Rot().Euler().Z(), -IGN_PI/4));
(A.Inverse() * math::Pose3d()).Rot().Euler().Z(), -GZ_PI/4));

GZ_UTILS_WARN_IGNORE__DEPRECATED_DECLARATION
// Coverage for unitary - operator
Expand All @@ -113,7 +113,7 @@ TEST(PoseTest, Pose)
EXPECT_TRUE(math::equal((-A).Pos().Z(), 0.0));
EXPECT_TRUE(math::equal((-A).Rot().Euler().X(), 0.0));
EXPECT_TRUE(math::equal((-A).Rot().Euler().Y(), 0.0));
EXPECT_TRUE(math::equal((-A).Rot().Euler().Z(), -IGN_PI/4.0));
EXPECT_TRUE(math::equal((-A).Rot().Euler().Z(), -GZ_PI/4.0));
GZ_UTILS_WARN_RESUME__DEPRECATED_DECLARATION
}
{
Expand All @@ -124,13 +124,13 @@ TEST(PoseTest, Pose)
math::Pose3d A(math::Vector3d(1, 0, 0),
math::Quaterniond(0, 0, GZ_PI/4.0));
math::Pose3d B(math::Vector3d(1, 1, 0),
math::Quaterniond(0, 0, IGN_PI/2.0));
math::Quaterniond(0, 0, GZ_PI/2.0));
EXPECT_TRUE(math::equal((A.Inverse() * B).Pos().X(), 1.0/sqrt(2)));
EXPECT_TRUE(math::equal((A.Inverse() * B).Pos().Y(), 1.0/sqrt(2)));
EXPECT_TRUE(math::equal((A.Inverse() * B).Pos().Z(), 0.0));
EXPECT_TRUE(math::equal((A.Inverse() * B).Rot().Euler().X(), 0.0));
EXPECT_TRUE(math::equal((A.Inverse() * B).Rot().Euler().Y(), 0.0));
EXPECT_TRUE(math::equal((A.Inverse() * B).Rot().Euler().Z(), IGN_PI/4.0));
EXPECT_TRUE(math::equal((A.Inverse() * B).Rot().Euler().Z(), GZ_PI/4.0));

GZ_UTILS_WARN_IGNORE__DEPRECATED_DECLARATION
// Coverage for - operator
Expand Down

0 comments on commit 4f09436

Please sign in to comment.