Coder Social home page Coder Social logo

Comments (6)

jgkamat avatar jgkamat commented on June 3, 2024

I'm not sure if this is a good idea to include in the base RRT. I definetly can see this being a good idea overall (for soccer), but there might be rrt applications that would not want this behavior (perhaps they want a random-ish path every time?) At the very least I think there should be a way to turn this off if needed, if this is done in the RRT.

from rrt.

justbuchanan avatar justbuchanan commented on June 3, 2024

Relevant paper:

Fast Path Planning Algorithm for the RoboCup
Small Size League (2014)

from rrt.

kevinatorchen avatar kevinatorchen commented on June 3, 2024

We tried looking in EscapeObstaclesPathPlanner.cpp if the code for this algorithm already exists. However, the code in this class calls functions from RRT, which is not what this algorithm wants. (Recall, this algorithm only uses RRT as a backup if this entire process does not work.) Thus, I will be creating a new class called StraightLinePathPlanner.

from rrt.

kevinatorchen avatar kevinatorchen commented on June 3, 2024

All right, so I'm trying to first call RRTPlanner with a goal bias of 1, which will create a straight line to the goal. If this fails, then we default back to the RRT Path Planning.

This is how I'm trying to do it:

  1. The current runRRT method has been renamed to runRRTHelper. This helper takes in a boolean value to see if you are trying to do a straight line planning.
  2. A new runRRT method has been created. This calls the runRRT method twice: once with the extra boolean value set to true, once with the boolean set to false.

Please let me know if this idea is okay. If it is, please tell me how to check if the straight path planning was successful (pseudocode is in comments):

vector straight = runRRTHelper(start, goal, motionConstraints, obstacles, state, shellID, true);
//If straight is a legit path {
return straight
}
return runRRTHelper(start, goal, motionConstraints, obstacles, state, shellID, false);

Please let me know how to do the above pseudocode.

from rrt.

ashaw596 avatar ashaw596 commented on June 3, 2024

from rrt.

jgkamat avatar jgkamat commented on June 3, 2024

This issue is a little overloaded now, this is taking place in the rrt planner class in robocup-software.

You can check to see if the straight rrt path planner was successfull by using the success variable for example here. If the helper is unsuccessful, it returns an empty vector, so you can just check to see if the vector is empty before moving on.

The pseudocode looks good to me, and the method you have setup looks good too. If this didn't make enough sense let me know and I'll clarify anything for you.

from rrt.

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.