forked from ZhengLiu-cart/IK_qp
ik success bug identified.
This commit is contained in:
@ -48,14 +48,15 @@ def main():
|
||||
robot_kine_rm.add_tool_frames(tools_in_ee)
|
||||
robot_kine_rm.cfg_j_limit(min_j=lb, max_j=ub, rad_flag=True)
|
||||
|
||||
# ret_rm, q = robot_kine_rm.inverse_kinematics(target_position=[-0.6, -0.6 , 0. ], target_rpy=[1.2022060487764064, -1.0097962261845583, -0.6518417572686532],
|
||||
# initial_guess=[0.1] * 7, tool="no_tool")
|
||||
#
|
||||
# print(f'ret_rm = {ret_rm}, q = {q}')
|
||||
# pose = robot_kine_rm.forward_kinematics(joint_angles=q, tool="no_tool")
|
||||
# print(f'pose = {pose}')
|
||||
#
|
||||
# time.sleep(5)
|
||||
ret_rm, q = robot_kine_rm.inverse_kinematics(target_position=[-0.6, -0.6 , 0. ], target_rpy=[1.2022060487764064, -1.0097962261845583, -0.6518417572686532],
|
||||
initial_guess=[0.1] * 7, tool="no_tool")
|
||||
|
||||
print(f'ret_rm = {ret_rm}, q = {q}')
|
||||
pose = robot_kine_rm.forward_kinematics(joint_angles=q, tool="no_tool")
|
||||
print(f'pose = {pose}')
|
||||
print('-'*100)
|
||||
|
||||
time.sleep(5)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user