This repository was archived by the owner on Nov 13, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed
perception/occupancy_map_monitor
include/moveit/occupancy_map_monitor Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -123,10 +123,16 @@ class OccupancyMapMonitor
123
123
}
124
124
125
125
/* * \brief Enable sending diffs of the occupancy map */
126
- void enableOctomapDiff (bool enable) { octomap_diff_enable = enable; }
126
+ void setOctomapDiff (bool enable)
127
+ {
128
+ octomap_diff_enable_ = enable;
129
+ }
127
130
128
131
/* * \brief Returns if sending diffs of the occupancy map is enabled */
129
- bool isOctomapDiffEnabled () const { return octomap_diff_enable; }
132
+ bool isOctomapDiffEnabled () const
133
+ {
134
+ return octomap_diff_enable_;
135
+ }
130
136
131
137
private:
132
138
@@ -147,7 +153,7 @@ class OccupancyMapMonitor
147
153
148
154
OccMapTreePtr tree_;
149
155
OccMapTreeConstPtr tree_const_;
150
- bool octomap_diff_enable ;
156
+ bool octomap_diff_enable_ ;
151
157
152
158
boost::scoped_ptr<pluginlib::ClassLoader<OccupancyMapUpdater> > updater_plugin_loader_;
153
159
std::vector<OccupancyMapUpdaterPtr> map_updaters_;
Original file line number Diff line number Diff line change @@ -87,11 +87,12 @@ void OccupancyMapMonitor::initialize()
87
87
tree_.reset (new OccMapTree (map_resolution_));
88
88
tree_const_ = tree_;
89
89
90
- octomap_diff_enable = false ;
91
- if (nh_.getParam (" octomap_diff" , octomap_diff_enable ))
90
+ octomap_diff_enable_ = false ;
91
+ if (nh_.getParam (" octomap_diff" , octomap_diff_enable_ ))
92
92
{
93
- if (octomap_diff_enable) ROS_INFO (" Octomap diff enabled" );
94
- tree_->enableChangeDetection (octomap_diff_enable);
93
+ if (octomap_diff_enable_)
94
+ ROS_INFO (" Octomap diff enabled" );
95
+ tree_->enableChangeDetection (octomap_diff_enable_);
95
96
}
96
97
97
98
XmlRpc::XmlRpcValue sensor_list;
You can’t perform that action at this time.
0 commit comments