moveit / moveit2_tutorials

A sphinx-based centralized documentation repo for MoveIt 2
https://moveit.picknik.ai
BSD 3-Clause "New" or "Revised" License
153 stars 194 forks source link

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

Open emp002 opened 5 months ago

emp002 commented 5 months ago

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

welcome[bot] commented 5 months ago

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