moveit2_tutorials icon indicating copy to clipboard operation
moveit2_tutorials copied to clipboard

No IK solution found for round-off values of position and orientation

Open emp002 opened this issue 1 year ago • 1 comments

I am trying to use the pymoveit2 package for my 4Dof Scara arm. Below I have attached the model of my robot. First, I tried using ex_fk.py to get end effector position by giving joint angles as arguments. Then, I used the same values with 12 decimal places to get joint angles using ex_ik.py. It works perfectly, it gives joint angles close to [0, 0, 0, 0] but with decimal places. Then again, I used the same values but rounded-off to 1 decimal. I am getting an error that "IK computation failed! Error code: -31."

I have also attached the screenshot of my robot description terminal and the ex_ik launch terminal. What could be the reason that it is not calculating IK with less decimal places? Screenshot from 2024-04-18 13-00-23 Screenshot from 2024-04-18 13-07-35 Screenshot from 2024-04-18 12-58-13

emp002 avatar Apr 22 '24 04:04 emp002

Thanks for reporting an issue. Because we're a volunteer community, providing a pull request with suggested changes is always welcomed.

welcome[bot] avatar Apr 22 '24 04:04 welcome[bot]