We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50d00a3 commit 845c30fCopy full SHA for 845c30f
nav2_planner/src/planner_server.cpp
@@ -643,6 +643,7 @@ void PlannerServer::isPathValid(
643
* The lethal check starts at the closest point to avoid points that have already been passed
644
* and may have become occupied
645
*/
646
+ std::unique_lock<nav2_costmap_2d::Costmap2D::mutex_t> lock(*(costmap_->getMutex()));
647
unsigned int mx = 0;
648
unsigned int my = 0;
649
for (unsigned int i = closest_point_index; i < request->path.poses.size(); ++i) {
0 commit comments