GithubHelp home page GithubHelp logo

Comments (4)

mkoval avatar mkoval commented on May 6, 2024

Here's a quick overview of the OMPL API:

  • Goal
    • void isSatisfied (const State *st) const: Decide whether a given state is part of the goal region.
    • void isStartGoalPairValid (const State *, const State *) const
  • GoalRegion:
    • distanceGoal (const State *st) const: Compute the distance to the goal (heuristic).
  • GoalSampleableRegion:
    • void sampleGoal (State *st) const: Sample a state in the goal region.
    • void maxSampleCount () const: Return the maximum number of samples that can be asked for before repeating.
    • void canSample () const: Return true if maxSampleCount() > 0, since in this case samples can certainly be produced.

This raises some interesting considerations that I had not previously thought about:

  • isSatisfied is useful for uni-directional planners.
  • It's important to avoid sampling the same goal twice from a finite set of goals.
  • Do we care about isStartGoalPairValid? Where would this fit in the API?

@cdellin Thoughts?

from aikido.

cdellin avatar cdellin commented on May 6, 2024

I don't have a strong opinion about these -- I think it's probably a good idea to define a common planning problem specification for us to use that's OMPL-agnostic, but we don't need to cover all the possible use-cases.

It seems to me that we might start by just implementing prpy-like planning methods by wrapping the OMPL API directly for OMPL planners, and then introduce an intermediate base class if we end up duplicating too much code (either between wrappers of different OMPL planners, or when we start wrapping CHOMP / trajopt / etc).

FWIW, one thing that always bothered me a bit about the OMPL API is how asymmetric it is between starts and goals -- you can't have a sampleable start region, etc.

from aikido.

psigen avatar psigen commented on May 6, 2024

Linking this issue to the excellent PR that @lgw903 has been putting together: #13

from aikido.

mkoval avatar mkoval commented on May 6, 2024

Implemented by #13.

from aikido.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.