Skip to content
This repository has been archived by the owner on Nov 13, 2017. It is now read-only.

Commit

Permalink
Added compatibility with #602
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBrewCrew committed Aug 13, 2015
1 parent 1496260 commit 389613b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ void planning_scene_monitor::PlanningSceneMonitor::clearOctomap()
if (octomap_monitor_){
occupancy_map_monitor::WriteLock lock = octomap_monitor_->writingMap();
octomap_monitor_->getOcTreePtr()->clear();
octomap_monitor_->getOcTreePtr()->resetChangeDetection();
}
}

Expand Down Expand Up @@ -1063,6 +1064,7 @@ void planning_scene_monitor::PlanningSceneMonitor::octomapUpdateCallback()
const Eigen::Affine3d rt = scene_->getCurrentState().getGlobalLinkTransform(robot_model_->getRootLinkName());
{
occupancy_map_monitor::WriteLock lock = octomap_monitor_->writingMap();
octomap_monitor_->getOcTreePtr()->enableChangeDetection(false);
octomap_monitor_->getOcTreePtr()->setBBXCenter(rt.translation().x(), rt.translation().y(), rt.translation().z());
octomap_monitor_->getOcTreePtr()->pruneBBX();
}
Expand Down

0 comments on commit 389613b

Please sign in to comment.