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

Commit

Permalink
style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dornhege committed Jul 21, 2016
1 parent fd6a020 commit 5b44738
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,16 @@ class OccupancyMapMonitor
}

/** \brief Enable sending diffs of the occupancy map */
void enableOctomapDiff(bool enable) { octomap_diff_enable = enable; }
void setOctomapDiff(bool enable)
{
octomap_diff_enable_ = enable;
}

/** \brief Returns if sending diffs of the occupancy map is enabled */
bool isOctomapDiffEnabled() const { return octomap_diff_enable; }
bool isOctomapDiffEnabled() const
{
return octomap_diff_enable_;
}

private:

Expand All @@ -147,7 +153,7 @@ class OccupancyMapMonitor

OccMapTreePtr tree_;
OccMapTreeConstPtr tree_const_;
bool octomap_diff_enable;
bool octomap_diff_enable_;

boost::scoped_ptr<pluginlib::ClassLoader<OccupancyMapUpdater> > updater_plugin_loader_;
std::vector<OccupancyMapUpdaterPtr> map_updaters_;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ void OccupancyMapMonitor::initialize()
tree_.reset(new OccMapTree(map_resolution_));
tree_const_ = tree_;

octomap_diff_enable = false;
if (nh_.getParam("octomap_diff", octomap_diff_enable))
octomap_diff_enable_ = false;
if (nh_.getParam("octomap_diff", octomap_diff_enable_))
{
if (octomap_diff_enable) ROS_INFO("Octomap diff enabled");
tree_->enableChangeDetection(octomap_diff_enable);
if (octomap_diff_enable_) ROS_INFO("Octomap diff enabled");
tree_->enableChangeDetection(octomap_diff_enable_);
}

XmlRpc::XmlRpcValue sensor_list;
Expand Down

0 comments on commit 5b44738

Please sign in to comment.