Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion nav2_planner/src/planner_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ PlannerServer::on_cleanup(const rclcpp_lifecycle::State & /*state*/)
}

planners_.clear();
costmap_thread_.reset();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think its a better move to move the node thread creation into the configure function. Deleting the memory in the cleanup stage is the purpose of the stage so this is technically correct. I don't see any reason (do you?) why we couldn't create the thread in configure instead? That seems like it should work just as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I tested it, and It works the same way.

costmap_ = nullptr;
return nav2_util::CallbackReturn::SUCCESS;
}
Expand Down