Skip to content

Commit

Permalink
Do not use C++11 for testRotation.cpp since this file does not use CA…
Browse files Browse the repository at this point in the history
…TCH2.
  • Loading branch information
s-trinh committed Aug 10, 2023
1 parent 108d644 commit 485220c
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions modules/core/test/math/testRotation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -424,16 +424,14 @@ int main()
}
{
// Test rotation_matrix * homogeneous_matrix
vpHomogeneousMatrix _1_M_2_truth {
0.9835, -0.0581, 0.1716, 0,
-0.0489, -0.9972, -0.0571, 0,
0.1744, 0.0478, -0.9835, 0
};
vpHomogeneousMatrix _2_M_3_ {
0.9835, -0.0581, 0.1716, 0.0072,
-0.0489, -0.9972, -0.0571, 0.0352,
0.1744, 0.0478, -0.9835, 0.9470
};
vpHomogeneousMatrix _1_M_2_truth;
_1_M_2_truth[0][0] = 0.9835; _1_M_2_truth[0][1] = -0.0581; _1_M_2_truth[0][2] = 0.1716; _1_M_2_truth[0][3] = 0;
_1_M_2_truth[1][0] = -0.0489; _1_M_2_truth[1][1] = -0.9972; _1_M_2_truth[1][2] = -0.0571; _1_M_2_truth[1][3] = 0;
_1_M_2_truth[2][0] = 0.1744; _1_M_2_truth[2][1] = 0.0478; _1_M_2_truth[2][2] = -0.9835; _1_M_2_truth[2][3] = 0;
vpHomogeneousMatrix _2_M_3_;
_2_M_3_[0][0] = 0.9835; _2_M_3_[0][1] = -0.0581; _2_M_3_[0][2] = 0.1716; _2_M_3_[0][3] = 0.0072;
_2_M_3_[1][0] = -0.0489; _2_M_3_[1][1] = -0.9972; _2_M_3_[1][2] = -0.0571; _2_M_3_[1][3] = 0.0352;
_2_M_3_[2][0] = 0.1744; _2_M_3_[2][1] = 0.0478; _2_M_3_[2][2] = -0.9835; _2_M_3_[2][3] = 0.9470;

vpRotationMatrix _1_R_2_ = _1_M_2_truth.getRotationMatrix();
vpHomogeneousMatrix _1_M_3_(_1_R_2_* _2_M_3_);
Expand Down

0 comments on commit 485220c

Please sign in to comment.