Giter VIP home page Giter VIP logo

Comments (3)

SteveMacenski avatar SteveMacenski commented on May 30, 2024

Correct, we update settings.base_constraints with parameter inputs, not settings.constraints which is what is used for clipping (https://github.com/open-navigation/navigation2/blob/main/nav2_mppi_controller/src/optimizer.cpp#L76). This is done to decouple the parameters and allow for dynamic updates of the velocities via the speed limiter API (https://github.com/open-navigation/navigation2/blob/main/nav2_mppi_controller/src/optimizer.cpp#L419-L444) so we can store the "true" max velocity for setting percentage adjustments with respect to.

We do however sync them up when the controller is reset (https://github.com/open-navigation/navigation2/blob/main/nav2_mppi_controller/src/optimizer.cpp#L126) which happens when parameter updates are made in main https://github.com/open-navigation/navigation2/blob/main/nav2_mppi_controller/src/optimizer.cpp#L89.

It looks like that might need the following added to Humble's reset() method like we have in main. Can you test to verify that does what you need it to do then open a PR?

  settings_.constraints = settings_.base_constraints;

https://github.com/open-navigation/navigation2/commit/569f1672609c22bc52c4c4c486818fde3bd99646

from navigation2.

Huyhust13 avatar Huyhust13 commented on May 30, 2024

Thank for your replying @SteveMacenski.
I'll do test.

from navigation2.

Huyhust13 avatar Huyhust13 commented on May 30, 2024

It's correct, it works now @SteveMacenski
Thank you very much for your help.

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.