-
Notifications
You must be signed in to change notification settings - Fork 948
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Getting all inverse kinematics solutions #2491
Comments
Thanks for reporting an issue. Because we're a volunteer community, providing a pull request with suggested changes is always welcomed. |
Ah so you asked ros-industrial/universal_robot#561 as well and had a look at ros-industrial/universal_robot#358 very good! The officially right place would be answers.ros.org but it's a known issue that questions often lay around unanswered there for a while ...
You just need to call this and work with the results in |
@Thieso Did that answer your question? |
Ah yes sorry for the late response. This seems like a good explanation. |
You're welcome! Please feel very invited to add a short tutorial or a pull request (PR) for a more convenient way if you know a good place to put it |
@Thieso Following your idea of getting to
But the solution vector size is only six and does not contain more than one IK solutions, even though the IK solver (cached_ik_kinematics_plugin) is printing on the console that it has found 34 IK solutions. Any help would be much appreciated. Thanks. |
@altairve did you found any way around to get all possible solutions? |
@altairve linked to a seriously outdated version of the documentation (groovy from 2012). The overload that returns all solutions was added later and might not have been implemented by all ik plugins. All relevant information is provided here so please invest some more effort. |
Hello @simonschmeisser I tried to have a look at the universal_robot repo from your previous comment but I do not find the same code in main repo as the PR commits in the mentioned link as you have mentioned. I am using custom IK fast moveit plugin. I do have similar getPositionIK function in my plugin file but I can not find any moveit tutorial on this topic if there exist any. I am not sure how to utilize the function properly. If you have any example, it would be really helpful. |
Hi guys,
I am working with a UR10e robot and am planning a path in cartesian space. If the start and end points are close to each other it works mostly fine but I they are rather far away I have a lot of issues with the inverse kinematics solutions. It keeps finding very extreme positions (some joints close to their limits) and if I add the floor as an obstacle to avoid those solutions, it does not find a solution at all. I have already tried different IK solvers but with no luck.
So my idea was to retrieve all IK solutions and choose one based on my own criteria (something like minimum distance in joint space with some weights on the joints).
My question is now, how can I retrieve these solutions from my Moveit Package to do these weighting?
I am not sure if this is the right place to ask such questions but I would appreciate any help.
Thanks a lot.
The text was updated successfully, but these errors were encountered: