Skip to content

Commit

Permalink
add explicit call to ros::Timer::stop in the destructor (#984)
Browse files Browse the repository at this point in the history
Co-authored-by: Dima Dorezyuk <[email protected]>
  • Loading branch information
dorezyuk and Dima Dorezyuk authored Apr 17, 2020
1 parent 3372226 commit 9368db2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions costmap_2d/src/costmap_2d_ros.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ void Costmap2DROS::setUnpaddedRobotFootprintPolygon(const geometry_msgs::Polygon

Costmap2DROS::~Costmap2DROS()
{
timer_.stop();

map_update_thread_shutdown_ = true;
if (map_update_thread_ != NULL)
{
Expand Down

0 comments on commit 9368db2

Please sign in to comment.