moveit2 icon indicating copy to clipboard operation
moveit2 copied to clipboard

Calculate set of IK solutions for a given pose

Open tylerjw opened this issue 3 years ago • 6 comments

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).

tylerjw avatar Sep 07 '22 22:09 tylerjw

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.

Robotawi avatar Sep 16 '22 06:09 Robotawi

@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?

SalahSoliman avatar Sep 23 '22 00:09 SalahSoliman

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 avatar Sep 23 '22 00:09 tylerjw

@tylerjw are you considering refactoring? Please let me know, I would be interested in working on this.

SalahSoliman avatar Sep 24 '22 17:09 SalahSoliman

@tylerjw would you like to setup a meeting to discuss possible architectural modifications?

SalahSoliman avatar Sep 28 '22 21:09 SalahSoliman

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.

tylerjw avatar Sep 28 '22 21:09 tylerjw