Skip to content

Commit

Permalink
Fixed OctoMap#19: genKey still used in OccupancyOctreeBase
Browse files Browse the repository at this point in the history
  • Loading branch information
Armin Hornung committed Feb 27, 2013
1 parent a5306eb commit 4264c26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion octomap/include/octomap/OccupancyOcTreeBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ namespace octomap {
bool ignoreUnknownCells=false, double maxRange=-1.0) const;


//-- set BBX limit (limits tree updates to this bounding box
//-- set BBX limit (limits tree updates to this bounding box)

/// use or ignore BBX limit (default: ignore)
void useBBXLimit(bool enable) { use_bbx_limit = enable; }
Expand Down
4 changes: 2 additions & 2 deletions octomap/include/octomap/OccupancyOcTreeBase.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -557,15 +557,15 @@ namespace octomap {
template <class NODE>
void OccupancyOcTreeBase<NODE>::setBBXMin (point3d& min) {
bbx_min = min;
if (!this->genKey(bbx_min, bbx_min_key)) {
if (!this->coordToKeyChecked(bbx_min, bbx_min_key)) {
OCTOMAP_ERROR("ERROR while generating bbx min key.\n");
}
}

template <class NODE>
void OccupancyOcTreeBase<NODE>::setBBXMax (point3d& max) {
bbx_max = max;
if (!this->genKey(bbx_max, bbx_max_key)) {
if (!this->coordToKeyChecked(bbx_max, bbx_max_key)) {
OCTOMAP_ERROR("ERROR while generating bbx max key.\n");
}
}
Expand Down

0 comments on commit 4264c26

Please sign in to comment.