PyBulletPlanner.inverse_kinematics
-
PyBulletPlanner.
inverse_kinematics
(*args, **kwargs)[source] Calculate the robot’s inverse kinematic for a given frame.
- Parameters
robot (
compas_fab.robots.Robot
) – The robot instance for which inverse kinematics is being calculated.frame_WCF (
compas.geometry.Frame
) – The frame to calculate the inverse for.start_configuration (
compas_fab.robots.Configuration
, optional) – If passed, the inverse will be calculated such that the calculated joint positions differ the least from the start_configuration. Defaults to the zero configuration.group (str, optional) – The planning group used for determining the end effector and labeling the
start_configuration
. Defaults to the robot’s main planning group.options (dict, optional) – Dictionary containing the following key-value pairs:
"link_name"
: (str
, optional ) Name of the link for which to compute the inverse kinematics. Defaults to the given group’s end effector."semi-constrained"
: (bool
, optional) WhenTrue
, only the position and not the orientation offrame_WCF
will not be considered in the calculation. Defaults toFalse
."enforce_joint_limits"
: (bool
, optional) WhenFalse
, the robot’s joint limits will be ignored in the calculation. Defaults toTrue
.
- Returns
tuple
oflist
– A tuple of 2 elements containing a list of joint positions and a list of matching joint names.- Raises