moveit / moveit_tutorials

A sphinx-based centralized documentation repo for MoveIt
https://moveit.github.io/moveit_tutorials/
BSD 3-Clause "New" or "Revised" License
463 stars 692 forks source link

How to use InformedRRTstar in Moveit? #792

Open lisacong opened 1 year ago

lisacong commented 1 year ago

Description

I want to use InformedRRTstar in moveit. How should I configure in moveit?

Your environment

Steps to reproduce

Tell us how to reproduce this issue. Attempt to provide a working demo, perhaps using Docker.

Expected behaviour

Tell us what should happen

Backtrace or Console output

Use gist.github.com to copy-paste the console output or segfault backtrace using gdb.

welcome[bot] commented 1 year ago

Thanks for reporting an issue. Because we're a volunteer community, providing a pull request with suggested changes is always welcomed.

simonschmeisser commented 1 year ago

From a quick glance it seems not to be integrated yet. That's not very hard however. Please have a look at this commit https://github.com/ros-planning/moveit/commit/51cff827c92709f3d0b2b6142e42c678dfbbd88a and try to do the same for InformedRRTstar. Then please open a pull request (PR) so everybody can enjoy it

lisacong commented 1 year ago

I have achieved to call InforemedRRTstar in moveit. But now I don't know which optimization_objective to choice.

simonschmeisser commented 1 year ago

Please provide a PR to add InformedRRTstar so others can profit as well. I don't understand your question unfortunately but generally you can add the optimization_objective to your ompl_planning.yaml as you can see here: https://ros-planning.github.io/moveit_tutorials/doc/ompl_interface/ompl_interface_tutorial.html#ompl-optimization-objectives

lisacong commented 1 year ago

After few days research,I know that InformedRRTstar should choice "PathLengthOptimizationObjective" as optimization_objective in ompl_planning.yaml. InfomedRRTstar will use PathLengthDirectInfSampler as informed sample. But i encounter a problem: in the algorithm of PHS, the GoalSample should be used , but the goal state can not be sampled.