Skip to content

Commit

Permalink
Updated to new iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
danielduberg committed Mar 6, 2020
1 parent 39e42c1 commit a185e7b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
13 changes: 7 additions & 6 deletions ufomap_rviz_plugin/src/octree_display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,13 @@ void OctreeDisplay::update(float wall_dt, float ros_dt)
ufomap::Point3 min_coord = ufomap_.getMax();
ufomap::Point3 max_coord = ufomap_.getMin();

for (auto it = ufomap_.begin_leafs_bbx(min_value, max_value,
render_type_[UFOMAP_OCCUPIED]->getBool(),
render_type_[UFOMAP_FREE]->getBool(),
render_type_[UFOMAP_UNKNOWN]->getBool(),
false, depth_property_->getInt()),
end = ufomap_.end_leafs_bbx();
for (auto it = ufomap_.begin_leafs_bounding(
ufomap_geometry::AABB(min_value, max_value),
render_type_[UFOMAP_OCCUPIED]->getBool(),
render_type_[UFOMAP_FREE]->getBool(),
render_type_[UFOMAP_UNKNOWN]->getBool(), false,
depth_property_->getInt()),
end = ufomap_.end_leafs();
it != end; ++it)
{
// TODO: Check visibility - no, bad idea!
Expand Down
13 changes: 7 additions & 6 deletions ufomap_rviz_plugin/src/octree_rgb_display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,13 @@ void OctreeRGBDisplay::update(float wall_dt, float ros_dt)
ufomap::Point3 min_coord = ufomap_.getMax();
ufomap::Point3 max_coord = ufomap_.getMin();

for (auto it = ufomap_.begin_leafs_bbx(min_value, max_value,
render_type_[UFOMAP_OCCUPIED]->getBool(),
render_type_[UFOMAP_FREE]->getBool(),
render_type_[UFOMAP_UNKNOWN]->getBool(),
false, depth_property_->getInt()),
end = ufomap_.end_leafs_bbx();
for (auto it = ufomap_.begin_leafs_bounding(
ufomap_geometry::AABB(min_value, max_value),
render_type_[UFOMAP_OCCUPIED]->getBool(),
render_type_[UFOMAP_FREE]->getBool(),
render_type_[UFOMAP_UNKNOWN]->getBool(), false,
depth_property_->getInt()),
end = ufomap_.end_leafs();
it != end; ++it)
{
// TODO: Check visibility - no, bad idea!
Expand Down

0 comments on commit a185e7b

Please sign in to comment.