moveit2
moveit2 copied to clipboard
Calculate set of IK solutions for a given pose
Given a pose, it would be nice if we could calculate a set of IK solutions for that pose. This would be useful for MTC tasks.
With the current interface, the approach is to sample IK many times and keep the results.
This could be useful in cases where the robot arm has >6 dof or the IK problem is underconstrained (allow approximate or other similar relaxing of the constraints).
Hi @tylerjw. I want to work on this issue. I would appreciate your guidance about where to start and will try to proceed from there.
@tylerjw
If I'm not mistaken:
constructGoal() calls -> ConstrainedGoalSampler calls -> sampleUsingConstraintSampler calls -> sample (in default_constaint_sampler which calls -> sample_helper which calls -> callIK which eventually calls -> searchPositionIK
It's quite complicated, what are your thoughts about tackling this issue?
I honestly don't know. I think the whole interface for IK is way too convoluted. This is an example of a valid use case of IK solvers that is not supported by the current architecture.
@tylerjw are you considering refactoring? Please let me know, I would be interested in working on this.
@tylerjw would you like to setup a meeting to discuss possible architectural modifications?
Not yet, I think this is part of a much larger discussion we are having internally. If you have any ideas for how you might accomplish this please write about them here.