concepts.simulator.pybullet.pybullet_ikfast_utils.IKFastPyBulletWrapper#
- class IKFastPyBulletWrapper[source]#
Bases:
IKFastWrapperBase
Methods
fk
(qpos)gen_ik
(pos, quat, last_qpos[, max_attempts, ...])ik_internal
(pos, quat[, sampled, body_pos, ...])- __init__(world, module, body_id, joint_ids, free_joint_ids=tuple(), use_xyzw=True, max_attempts=1000, fix_free_joint_positions=False, shuffle_solutions=False, sort_closest_solution=False)[source]#
IKFast wrapper base class.
- Parameters:
module – the IKFast module.
free_joint_ids (List[int]) – the free joint ids of the robot.
joints_lower – the lower limits of the joints.
joints_upper – 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 – the getter for the current joint positions.
world (BulletWorld)
- __new__(**kwargs)#
- gen_ik(pos, quat, last_qpos, max_attempts=None, max_distance=float('inf'), body_pos=None, body_quat=None, verbose=False)#