Skip to content

Commit

Permalink
fix: pointcloud_octomap_updater not cleaning objects at max_range (#3294
Browse files Browse the repository at this point in the history
) (#3304)

(cherry picked from commit bb7463a)

Co-authored-by: Marco Magri <94347649+MarcoMagriDev@users.noreply.github.com>
  • Loading branch information
mergify[bot] and MarcoMagriDev authored Feb 4, 2025
1 parent 291d159 commit f846188
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ void PointCloudOctomapUpdater::cloudMsgCallback(const sensor_msgs::msg::PointClo
/* compute the free cells along each ray that ends at a clipped cell */
for (const octomap::OcTreeKey& clip_cell : clip_cells)
{
free_cells.insert(clip_cell);
if (tree_->computeRayKeys(sensor_origin, tree_->keyToCoord(clip_cell), key_ray_))
free_cells.insert(key_ray_.begin(), key_ray_.end());
}
Expand Down

0 comments on commit f846188

Please sign in to comment.