You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: genesis/engine/entities/rigid_entity/rigid_entity.py
+55-11
Original file line number
Diff line number
Diff line change
@@ -738,6 +738,7 @@ def inverse_kinematics(
738
738
pos_mask=[True, True, True],
739
739
rot_mask=[True, True, True],
740
740
max_step_size=0.5,
741
+
dofs_idx_local=None,
741
742
return_error=False,
742
743
):
743
744
"""
@@ -771,6 +772,8 @@ def inverse_kinematics(
771
772
Mask for rotation axis alignment. Defaults to [True, True, True]. E.g.: If you only want the link's Z-axis to be aligned with the Z-axis in the given quat, you can set it to [False, False, True].
772
773
max_step_size : float, optional
773
774
Maximum step size in q space for each IK solver step. Defaults to 0.5.
775
+
dofs_idx_local : None | array_like, optional
776
+
The indices of the dofs to set. If None, all dofs will be set. Note that here this uses the local `q_idx`, not the scene-level one. Defaults to None. This is used to specify which dofs the IK is applied to.
774
777
return_error : bool, optional
775
778
Whether to return the final errorqpos. Defaults to False.
Mask for rotation axis alignment. Defaults to [True, True, True]. E.g.: If you only want the link's Z-axis to be aligned with the Z-axis in the given quat, you can set it to [False, False, True].
864
869
max_step_size : float, optional
865
870
Maximum step size in q space for each IK solver step. Defaults to 0.5.
871
+
dofs_idx_local : None | array_like, optional
872
+
The indices of the dofs to set. If None, all dofs will be set. Note that here this uses the local `q_idx`, not the scene-level one. Defaults to None. This is used to specify which dofs the IK is applied to.
866
873
return_error : bool, optional
867
874
Whether to return the final errorqpos. Defaults to False.
0 commit comments