Coder Social home page Coder Social logo

Comments (7)

spuetz avatar spuetz commented on May 19, 2024 1

You are right. @corot You did that, right? It is highly problematic. We should find a better way for do replanning on controller level. @alireza-hosseini Thank you for the issue! Also we should ensure that the robot has stopped in case of message loss.

from move_base_flex.

corot avatar corot commented on May 19, 2024 1

I agree... makes fully sense to send a zero velocity when interrupting the controller. But then we need a nice way to start following a new plan without stopping the controller. Maybe we can add another service: new_path that just pass the new path to the controller w/o stopping it, or does nothing if controller is not working.

For the stopMoving method... well, it actually stops motion by interrupting the controller thread. What do you mean exactly, @alireza-hosseini? What would you propose instead?

from move_base_flex.

alireza-hosseini avatar alireza-hosseini commented on May 19, 2024

@spuetz Thanks for your fast reply,
@corot About the stopMoving method, what I meant was since it's just interrupting the thread, the code inside the catch statement of the thread will be executed which stops the controller from planning not the robot itself, so it's a bit confusing. I think the solution can be simpler if we just publish the zero command velocity in case of preemption or even we can let the action client decide about that by adding a new boolean field for example to the ExePath action goal and only if the value is True it will publish the zero.

from move_base_flex.

spuetz avatar spuetz commented on May 19, 2024

@corot Should we comment-in that line for now, and rethink the replanning strategy here?

from move_base_flex.

corot avatar corot commented on May 19, 2024

for me , ok.

@alireza-hosseini, I agree is bad naming, but is coherent, because "moving" here really means "controlling", not physical robot motion

from move_base_flex.

corot avatar corot commented on May 19, 2024

Easy part done. For better handling replanning, we must either switch to normal action server (not simple) or open a secondary channel apart from the exe_path action to feed new plans without stopping it

from move_base_flex.

corot avatar corot commented on May 19, 2024

So merged the PR, I have restored the zero-velocity message when exe_path is stopped.
Next step is to retarget exe_path to follow new plans without stopping, actually without stopping and restarting the action, but for this we need the new advanced action server @spuetz is working on

from move_base_flex.

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.