IKSolver - IK Solver Abstract Base Class
- class roboticstoolbox.robot.IK.IKSolver(name='IK Solver', ilimit=30, slimit=100, tol=1e-06, mask=None, joint_limits=True, seed=None)[source]
Bases:
ABC
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
Methods
|
Abstract step method |
|
Solves the IK problem |
|
Calculates the error between Te and Tep |
Private Methods
|
Generate a random valid joint configuration using a private RNG |
|
Checks if the joints are within their respective limits |