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

Move Base: Does clearCostmapsService reset the costmap in planner_? #1162

Open
Ducanor opened this issue Aug 13, 2021 · 1 comment
Open

Move Base: Does clearCostmapsService reset the costmap in planner_? #1162

Ducanor opened this issue Aug 13, 2021 · 1 comment

Comments

@Ducanor
Copy link

Ducanor commented Aug 13, 2021

Hi,
im using move base as global planner in a training procedure with multiple randomly generated ros maps.
I publish the ros maps to the topic "map" and use the clearCostmapsService afterwards. The costmap gets reset successfully and adapts to the new published map.
The problem is the behavior of the global planner. Sometimes the global plan runs through walls (2-3 out of 10 times).
Screenshot 2021-08-13 162259
My guess is that while the clearCostmapsService resets the global controller_costmap_ros_ and planner_costmap_ros_, it does not change the planner_costmap_ros_ in planner_ (used while initialization).

I also checked whether the global planner works properly without changing maps and yes it does. 100 % of the global plans generated by move base when only using the same randomly generated map are correct and efficient.

I searched the github repo but could not find where planner_->makePlan(...) was defined and thus could not understand the way makePlan(...) works and what role planner_costmap_ros_ plays in there.

Im thankful for any advices!

@mikeferguson
Copy link
Contributor

There is only a single instance of the global costmap AFAIK - so this sounds more like it might be a locking issue where the costmap is not properly locked during the full update of the costmap?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants