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
ompl_interface::ConstrainedGoalSampler::sampleUsingConstraintSampler doesn't appear to sample? #2811
Comments
Looks like |
Made the swap in my own fork of the code... so far seems to work fine? |
I'm open to fix the semantics here. If you want to change it to
please file a pull-request. |
This is a PR for moveit#2811
Well, the semantics seem quite different, don't they? The way the documentation is written, "sample" generates a completely new robot state, writing it into the passed-in data-structure, whereas "project" actually takes the passed-in structure, and applies an operation to it that makes it compliant with the constraints. Either way, see the new pull request: #2872 |
Please also have a look at #2273 It was finished and merged in MoveIt2 but unfortunately not in MoveIt (1) Maybe it could be backported? (If that is what you need in the end ...) |
Oooh, that looks fancy! I'll check it out; I've never really been a huge fan of the "carthesian planning + IK" approach, since IK is kinda meaningless for my particular robot (base is very mobile) without directly tying it to the planning process. At the moment though, I'm just using a constrained sampler, which seems to work just fine for my purpose. I still believe my PR (#2872) would be useful, since in my particular sampler, projecting and sampling really are two distinct actions; one relies on the other, actually. (It produces samples uniformly, then projects them to obtain constrained ones.) I can put all of my code in the |
This reverts commit a560783. It introduced severe regressions when planning with PoseGoals because it would pass in random seeds into IK instead of the current state.
This reverts commit a560783.
Hello,
I was working on trying to implement a custom
constraint_samplers::ConstraintSampler
, but I noticed that only theproject
method gets called, never thesample
method.The state I get as input always appears to be the same (I think it's the same as the starting state?) when I print it out.
When reading through https://github.com/ros-planning/moveit/blob/master/moveit_planners/ompl/ompl_interface/src/detail/constrained_goal_sampler.cpp#L90, I also don't really see any source of randomness in there... it appears to just be projecting the same state over and over.
Is this the intended behavior?
The text was updated successfully, but these errors were encountered: