Coder Social home page Coder Social logo

Comments (4)

SZanlongo avatar SZanlongo commented on August 12, 2024

Hi @kctoayo88. The best way to ensure you understand how that works is probably by following along with one if the examples.

Q is a list of tuples q indicating that q[0] edges of length q[1] should be added. This choice was made to allow for easily trying different amounts of different-length edges. For example, if we set Q = [[4, 1], [2, 8]], this would attempt to grow 4 edges of length 1, and 2 edges of length 8.

Starting with the rrt_2d.py example, we set the length of new edges in Q = np.array([(8, 4)]), corresponding to trying to grow 8 edges of length 4 on each iteration. Next, the search is done in rrt.py, where you can see the looping over different edge combinations within Q. For each of the tuples, it calls new_and_near, with an edge length from the tuple.

Hope this helps.

from rrt-algorithms.

kctoayo88 avatar kctoayo88 commented on August 12, 2024

Hello @SZanlongo,

Thanks for your reply, it's really helpful to me.
I could understand and handle it now.

Unfortunately, I got another problem when I run the rrt_star_bid_2d.py program.
I always defined the obstacles, init and goal position by myself in this program.
However, the program got some error in some specific cases.
I guessed that the reason of error occurring is related to obstacles and init, goal setting.
error
Hope you could help me solve this.

from rrt-algorithms.

SZanlongo avatar SZanlongo commented on August 12, 2024

Seems like you hit an edge case. I've pushed what should be a fix to develop. Let me know if that works.

from rrt-algorithms.

kctoayo88 avatar kctoayo88 commented on August 12, 2024

@SZanlongo ,

Thank you for your helps.
The change solve the problem perfectly and work like a charm.

from rrt-algorithms.

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.