Skip to content

Commit c77faac

Browse files
committed
Issue #226, bug in fkine_all
was attempting to include hand and finger joints
1 parent 25b57ba commit c77faac

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

roboticstoolbox/robot/ERobot.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -665,13 +665,16 @@ def recurse(Tall, Tparent, q, link):
665665
T *= link.A(q[link.jindex])
666666
Tall[link.number] = T
667667

668-
if link.nchildren == 1:
668+
if link.nchildren == 0:
669+
# no children
670+
return
671+
elif link.nchildren == 1:
672+
# one child
673+
if link in self.ee_links:
674+
# this link is an end-effector, go no further
675+
return
669676
link = link.children[0]
670677
continue
671-
672-
elif link.nchildren == 0:
673-
return
674-
675678
else:
676679
# multiple children
677680
for child in link.children:

0 commit comments

Comments
 (0)