Giter VIP home page Giter VIP logo

Comments (3)

SteveMacenski avatar SteveMacenski commented on May 28, 2024 1

Yes it is present in the global costmap, and its not lethal, as you said higher cost but shouldn't Smac Hybrid planner plan around it based on the cost penalty with conjunction of global costmap ?

Not necessarily, there are trade offs beyond just cost, like shortest length. We couldn't want a robot necessarily to add 100m to a path to stay in 0 cost space over entering 1 cell that is 1 cost, right? So we need to decide on a trade off between minimum length and reasonable cost to travel. We do that with the traversal function of cost_to_travel = cell_length * (1.0 + cost / 254 * weight). That makes us balance the cost to travel by both the length of the primitive with the normalized, weighted cost. A higher cost weight would make traveling in higher cost spaces more expensive. Figure 5 of this paper highlights how the change in cost penalty changes behavior.

Looking at your example, it seems like the extra ~+2m to go around it isn't proportionate to the extra cost from such a small obstacle (its only 1-2 pixels thick). I might expect a different result if your virtual obstacle there was filled. What you show is more or less expected and good behavior. If you wanted that are to be not traversed at all, you should mark it with lethal cost via whatever custom mechanism you've added that with. Though at least from your snippet, it looks like possibly just a user error that it really is lethal space but you have your obstacle_layer after your inflation_layer in your configs. Those are ordered; make sure your inflation layer is last. That very well may resolve your concern.

Note: In general, please don't post pictures of parameters, include them as code snippets for the sections that are important.

from navigation2.

SteveMacenski avatar SteveMacenski commented on May 28, 2024

Its unclear from your diagram: is that present in the global costmap used for planning or the local costmap used for control, or both?

That's doesn't look like a lethal obstacle to me (yeah?), that's just a higher cost region as evidenced that there is no inflation around it. The cost functions weight distance with cost, so in this situation, it was better to go through 1-2 cells of higher cost than to diverge dozens. Thus, this looks fine to me.

from navigation2.

anath93 avatar anath93 commented on May 28, 2024

Yes it is present in the global costmap, and its not lethal, as you said higher cost but shouldn't Smac Hybrid planner plan around it based on the cost penalty with conjunction of global costmap ?
This is my below global and local costmap setup so far,
image
image
image

from navigation2.

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.