Skip to content

Commit 9efe462

Browse files
authored
Merge pull request #280 from suddrey-qut/patch-1
Fixing jacob0 for axis="1,0,0"
2 parents abad662 + 61b2ae9 commit 9efe462

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

roboticstoolbox/core/fknm.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -669,9 +669,9 @@ void _jacob0(PyObject *links, int m, int n, npy_float64 *q, npy_float64 *etool,
669669
J[0 * n + j] = U[0 * 4 + 2] * temp[1 * 4 + 3] - U[0 * 4 + 1] * temp[2 * 4 + 3];
670670
J[1 * n + j] = U[1 * 4 + 2] * temp[1 * 4 + 3] - U[1 * 4 + 1] * temp[2 * 4 + 3];
671671
J[2 * n + j] = U[2 * 4 + 2] * temp[1 * 4 + 3] - U[2 * 4 + 1] * temp[2 * 4 + 3];
672-
J[3 * n + j] = U[0 * 4 + 2];
673-
J[4 * n + j] = U[1 * 4 + 2];
674-
J[5 * n + j] = U[2 * 4 + 2];
672+
J[3 * n + j] = U[0 * 4 + 0];
673+
J[4 * n + j] = U[1 * 4 + 0];
674+
J[5 * n + j] = U[2 * 4 + 0];
675675
}
676676
else if (link->axis == 1)
677677
{

0 commit comments

Comments
 (0)