Skip to content

Commit

Permalink
Fix Matrix3_TEST.py on Windows with conda-forge dependencies (#561)
Browse files Browse the repository at this point in the history
Signed-off-by: Silvio Traversaro <[email protected]>
  • Loading branch information
traversaro authored Oct 1, 2023
1 parent 416e559 commit a527e14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/python_pybind11/test/Matrix3_TEST.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,9 @@ def test_to_quaternion(self):
q = Quaterniond(math.pi/2.0, math.pi/2.0, 0)
matFromQuat = Matrix3d(q)
quatFromMat = Quaterniond(matFromQuat)
self.assertTrue(q == quatFromMat)
# We check both cases as quaternion double-cover the rotation matrix
# space, see https://github.com/gazebosim/gz-math/issues/416#issuecomment-1741741183
self.assertTrue(q == quatFromMat or q == -quatFromMat)

# test the cases where matrix trace is negative
# (requires special handling)
Expand Down

0 comments on commit a527e14

Please sign in to comment.