Giter Site home page Giter Site logo

Problem implementing new state space about ompl HOT 3 CLOSED

ompl avatar ompl commented on May 25, 2024
Problem implementing new state space

from ompl.

Comments (3)

mamoll avatar mamoll commented on May 25, 2024

Original comment by Ioan Sucan (Bitbucket: isucan, GitHub: isucan).


The issue is that the R3 component in SE3 needs some bounds to be specified when you call setup (automatically called when planning). Based on those bounds some computation is performed to determine the step size for checking collisions. If bounds are not set, the computation cannot be performed. I think all you have to do is call setBounds() on the SE3 component (which forwards the call to the R3 component)

from ompl.

mamoll avatar mamoll commented on May 25, 2024

Original comment by neckutrek (Bitbucket: neckutrek, GitHub: neckutrek).


I added this code:

#!c++

void LinkQuad_Setup::setDefaultBounds()
{
  std::cerr << "setDefaultBounds()\n";
  ob::RealVectorBounds se3bounds(3);
  se3bounds.setLow(-10.0);
  se3bounds.setHigh(10.0);
  this->getStateSpace()->as<LinkQuad_StateSpace>()->as<ob::SE3StateSpace>(0)->setBounds(se3bounds);
}

And now I get this output instead:

setDefaultBounds()
terminate called after throwing an instance of 'ompl::Exception'
what(): The longest valid segment for state space RealVectorSpace10 must be positive

So it went from "RealVectorSpace8" to "RealVectorSpace10"...

Do I have to set bounds for the 1D RealVectorStateSpace at index 1 of my CompoundStateSpace as well? The code for that special state space is avaiable in my previous post!

Thanks!

from ompl.

mamoll avatar mamoll commented on May 25, 2024

Original comment by Ioan Sucan (Bitbucket: isucan, GitHub: isucan).


Hey, you have to set those bounds as well, yes. You should also call the printSettings() method on your state space. It should show you information about what bounds are set.
If you like graphviz, you might like the Diagram() function as well.
This is becoming more of a question rather than an issue, so I will close the issue now. Please reopen if you find a problem or e-mail on the mailing list if you have further questions.

from ompl.

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.