Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do only consider enabled costmap plugins/filters in the isCurrent() method of a LayeredCostmap #3356

Merged
merged 2 commits into from
Jan 10, 2023

Commits on Jan 10, 2023

  1. Do only consider enabled costmap plugins/filters in the isCurrent() m…

    …ethod of a LayeredCostmap
    
    When clearing entirely a costmap (see the `clear_entirely_*` service),
    its layers are reset. This sets their `current_` attribute to False,
    until they are updated (`updateCosts()`). However, for disabled
    plugins/filters, the `updateCosts()` is bypassed so that the `current_`
    attribute is never reset to True, and the costmap never becomes
    "current" again; because of that the controller_server used to get stuck
    in an endless loop (see `while (!costmap_ros_->isCurrent())`
    in `ControllerServer::computeControl()`).
    
    This patch fixes that by adding a condition for not considering disabled
    plugins/filters in the `LayeredCostmap::isCurrent()`.
    milidam committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    e2e3737 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    83511da View commit details
    Browse the repository at this point in the history