ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

IK succeed for constraint-aware but fail for non-aware

asked 2012-09-06 23:45:24 -0500

i'm following this tutorial to do the inverse kinematics for my robot arm. but for the same goal position, the constraint_aware_ik succeed to find a solution while the non constraint aware ik cannot. after dig into the source code, i find that the constraint_aware_ik ultimately call the function searchPositionIK() and the non-aware ik call the getPositionIK(). my kinematics solver is the KDLArmKinematicsPlugin. is there anybody encountering the same problem as me?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-09-07 01:29:02 -0500

Adolfo Rodriguez T gravatar image

Probably what's happening is that the IK solver is unable to evolve from the seed state you provide to the desired goal. The searchPositionIK() method performs retries (up to 3 by default) from randomly sampled seed states if the provided one fails, while getPositionIK() does not.

If you want to keep using getPositionIK(), choose a more appropriate IK seed state.

edit flag offensive delete link more


thanks for the answer. i will try other seed states

yangyangcv gravatar image yangyangcv  ( 2012-09-07 15:11:06 -0500 )edit

Question Tools


Asked: 2012-09-06 23:45:24 -0500

Seen: 324 times

Last updated: Sep 07 '12