Skip to content

Commit c77faac

Browse files
committed
Issue petercorke#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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy