GitLab | UTCN

Skip to content
Snippets Groups Projects
Commit 3f683664 authored by Tassos (nakano) Natsakis's avatar Tassos (nakano) Natsakis
Browse files

Making the mask compatible with robots with more than 6 joints

parent f250278c
Branches ikine
No related tags found
1 merge request!2Improving inverse kinematics solver
......@@ -142,7 +142,7 @@ class SerialLink:
"""
assert type(T) is np.matrix and T.shape == (4, 4)
assert mask.shape == (6,), 'The mask must have 6 elements'
assert mask.sum() == self.length, 'The mask must have equal amount of 1s as the degrees of freedom of the kinematic chain'
assert mask.sum() == min(self.length,6), 'The mask must have equal amount of 1s as the degrees of freedom of the kinematic chain'
bounds = [(link.qlim[0], link.qlim[1]) for link in self]
if q0 is None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment