Giter VIP home page Giter VIP logo

Comments (5)

SteveMacenski avatar SteveMacenski commented on May 30, 2024 1

Yikes. Yeah. Please do look into that and let me know. I could dig into it too, but you have the reproduction case handy and I think that's going to be > 50% of the total debugging time just being able to trigger it. If you have questions or get into trouble, let me know and if you can give me a way to trigger it on the TB3 demo or something else I can setup, then I can dig into it

from navigation2.

Aposhian avatar Aposhian commented on May 30, 2024 1

Sure, I anticipate that I'll track down more info as I go. Just wanted to get the issue going to see if anyone else sees this behavior.

from navigation2.

SteveMacenski avatar SteveMacenski commented on May 30, 2024 1

@Aposhian I spent a little bit of time today looking into this. Humble does not appear to have the:

  if (!costmap->worldToMap(goal.pose.position.x, goal.pose.position.y, mx, my)) {
    throw nav2_core::GoalOutsideMapBounds(
            "Goal Coordinates of(" + std::to_string(goal.pose.position.x) + ", " +
            std::to_string(goal.pose.position.y) + ") was outside bounds");
  }

logic. Adding it here: #4224 that should resolve your problem

from navigation2.

SteveMacenski avatar SteveMacenski commented on May 30, 2024

If it is due to requesting out of bounds, then I'm not sure why this code doesn't already catch it:

  if (!costmap->worldToMap(goal.pose.position.x, goal.pose.position.y, mx, my)) {
    throw nav2_core::GoalOutsideMapBounds(
            "Goal Coordinates of(" + std::to_string(goal.pose.position.x) + ", " +
            std::to_string(goal.pose.position.y) + ") was outside bounds");
  }

I 100% agree, can you see why that is? I don't check bounds after the initial transition to map x,y coordinates because it shouldn't be necessary. While a traceback to find the exact line in resetObstacleHeuristic that fails would be great, I think the better use of time is seeing how we even got past this check. When you say "well out of bounds", do you mean multiples on the robot's diameter, or just a few meters?

from navigation2.

Aposhian avatar Aposhian commented on May 30, 2024

By well out of bounds, I mean that the costmap should only have 1000x1000 cells, but from the stacktrace it is requesting x=210373280, and y=32619.

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.