concepts.simulator.ikfast.ikfast_common.IKFastWrapperBase#
- class IKFastWrapperBase[source]#
Bases:
object
Methods
fk
(qpos)gen_ik
(pos, quat, last_qpos[, max_attempts, ...])ik_internal
(pos, quat[, sampled, body_pos, ...])- __init__(module, joint_ids, free_joint_ids, joints_lower, joints_upper, use_xyzw=True, max_attempts=1000, fix_free_joint_positions=False, shuffle_solutions=False, sort_closest_solution=False, current_joint_position_getter=None)[source]#
IKFast wrapper base class.
- Parameters:
module – the IKFast module.
free_joint_ids (List[int]) – the free joint ids of the robot.
joints_lower (ndarray) – the lower limits of the joints.
joints_upper (ndarray) – the upper limits of the joints.
use_xyzw (bool) – whether to use xyzw for quaternion representation.
max_attempts (int) – the maximum number of attempts for IK.
fix_free_joint_positions (bool) – whether to fix the free joint positions.
shuffle_solutions (bool) – whether to shuffle the solutions.
sort_closest_solution (bool) – whether to sort the solutions by the closest one.
current_joint_position_getter (Callable[[], ndarray] | None) – the getter for the current joint positions.
- __new__(**kwargs)#