Skip to content

Commit

Permalink
Update theta_star_planner.cpp (ros-navigation#3918) (ros-navigation#3922
Browse files Browse the repository at this point in the history
)

(cherry picked from commit 0629ff3)

Co-authored-by: Steve Macenski <stevenmacenski@gmail.com>
  • Loading branch information
2 people authored and redvinaa committed Nov 20, 2023
1 parent 9898534 commit 8679fc6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nav2_theta_star_planner/src/theta_star_planner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ nav_msgs::msg::Path ThetaStarPlanner::createPlan(
nav_msgs::msg::Path global_path;
auto start_time = std::chrono::steady_clock::now();

std::unique_lock<nav2_costmap_2d::Costmap2D::mutex_t> lock(*(planner_->costmap_->getMutex()));

// Corner case of start and goal beeing on the same cell
unsigned int mx_start, my_start, mx_goal, my_goal;
if (!planner_->costmap_->worldToMap(
Expand Down

0 comments on commit 8679fc6

Please sign in to comment.