roboticstoolbox.robot.IK.IKSolver
- class roboticstoolbox.robot.IK.IKSolver(name='IK Solver', ilimit=30, slimit=100, tol=1e-06, mask=None, joint_limits=True, seed=None)[source]
An abstract super class for numerical inverse kinematics (IK)
This class provides basic functionality to perform numerical IK. Superclasses can inherit this class and implement the
solve
method and redefine any other methods necessary.- Parameters:
name (
str
) – The name of the IK algorithmilimit (
int
) – How many iterations are allowed within a search before a new search is startedslimit (
int
) – How many searches are allowed before being deemed unsuccessfultol (
float
) – Maximum allowed residual error Emask (
Union
[ndarray
,List
[float
],Tuple
[float
],Set
[float
],None
]) – A 6 vector which assigns weights to Cartesian degrees-of-freedom error priorityjoint_limits (
bool
) – Reject solutions with joint limit violationsseed (
Optional
[int
]) – A seed for the private RNG used to generate random joint coordinate vectors
See also
Changed in version 1.0.3: Added the abstract super class IKSolver
- __init__(name='IK Solver', ilimit=30, slimit=100, tol=1e-06, mask=None, joint_limits=True, seed=None)[source]
Methods
__init__
([name, ilimit, slimit, tol, mask, ...])error
(Te, Tep)Calculates the error between Te and Tep
solve
(ets, Tep[, q0])Solves the IK problem
step
(ets, Tep, q)Abstract step method