Skip to content

Commit

Permalink
correct the order of the input parameters to subproblem1 from subprob…
Browse files Browse the repository at this point in the history
…lem2 for single solution case.
  • Loading branch information
burakaksoy committed Aug 5, 2024
1 parent d0f94aa commit 928cc5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/general_robotics_toolbox/general_robotics_toolbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -762,8 +762,8 @@ def subproblem2(p, q, k1, k2):
if (np.abs(gamma) < eps):
cm=np.array([k1, k2, np.cross(k1,k2)]).T
c1 = np.dot(cm, np.hstack((a, gamma)))
theta2 = subproblem1(k2, p, c1)
theta1 = -subproblem1(k1, q, c1)
theta2 = subproblem1(p, c1, k2)
theta1 = -subproblem1(q, c1, k1)
return [(theta1, theta2)]

cm=np.array([k1, k2, np.cross(k1,k2)]).T
Expand Down

0 comments on commit 928cc5a

Please sign in to comment.