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

navigation/costmap_2d/plugins /static_layer.cpp StaticLayer::onInitialize can't return #1249

Open
qq779527421 opened this issue Sep 1, 2023 · 0 comments

Comments

@qq779527421
Copy link

qq779527421 commented Sep 1, 2023

There was an issue with a robot getting stuck while switching maps. Log analysis show that calling /start_costmap cannot end. So Using the gdb --pid XXX connecting move_base node, is stucking in StaticLayer: : onInitialize() at static_layer.cpp:94. while (!map_received_ && g_nh.ok()) { ros::spinOnce(); r.sleep(); }
I thik the reason is that the execution order of the two tasks for setting the member variable map_received_ is uncertain.

https://github.com/ros-planning/navigation/blob/noetic-devel/costmap_2d/plugins/static_layer.cpp set map_received_ =
false on line 91 and map_received_ = true on line 216

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

No branches or pull requests

1 participant