Skip to content

Commit

Permalink
Add a test case which verifies the fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
burakaksoy committed Aug 6, 2024
1 parent 928cc5a commit 529e556
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test_general_robotics_toolbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,11 @@ def test_subproblems():
r3=np.matmul(rox.rot(z,a3[0][0]),rox.rot(y,a3[0][1]))[:,0]
np.testing.assert_allclose(r3, z, atol=1e-4)

a3_2 = rox.subproblem2([0, 0, 0.01851852], [0.01851852, 0, 0], x, y)
assert len(a3_2) == 1
a3_2_check = [(0.0, 1.5707963267948966)]
np.testing.assert_allclose(a3_2, a3_2_check, atol=1e-4)

#subproblem3
p4=[.5, 0, 0]
q4=[0, .75, 0]
Expand Down

0 comments on commit 529e556

Please sign in to comment.