8000 Add parallel joints · hzyjerry/robotics-toolbox-python@475a31b · GitHub
[go: up one dir, main page]

Skip to content

Commit 475a31b

Browse files
committed
Add parallel joints
1 parent bf86fd1 commit 475a31b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

roboticstoolbox/cuda/fknm.cu

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ __global__ void _jacob0(double *T,
3333
long *link_axes,
3434
long *link_isjoint,
3535
int N,
36+
int nlinks,
3637
int njoints,
3738
double *out)
3839
{
@@ -62,7 +63,7 @@ __global__ void _jacob0(double *T,
6263
return;
6364
}
6465

65-
int nlinks = nlinks_pt[tid];
66+
// int nlinks = nlinks_pt[tid];
6667
// printf("Hello from tid %d nlinks %d\n", tid, nlinks);
6768
for (int i = 0; i < nlinks; i++) {
6869
// printf("Hello from tid %d link_i %d link_axis %ld isjoint %ld \n", tid, i, link_axes[i], link_isjoint[i]);
@@ -413,6 +414,7 @@ void jacob0(double *T,
413414
d_link_axes,
414415
d_link_isjoint,
415416
N,
417+
nlinks,
416418
njoints,
417419
d_out);
418420

0 commit comments

Comments
 (0)
0