Skip to content

Commit

Permalink
unsubscribe in OrganizedStatisticalOutlierRemoval
Browse files Browse the repository at this point in the history
  • Loading branch information
knorth55 committed May 10, 2024
1 parent e884756 commit a89a193
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,15 @@ namespace jsk_pcl_ros

void OrganizedStatisticalOutlierRemoval::unsubscribe()
{
sub_.shutdown();
if (use_cpi_)
{
sub_cloud_.unsubscribe();
sub_cpi_.unsubscribe();
}
else
{
sub_.shutdown();
}
}

void OrganizedStatisticalOutlierRemoval::configCallback(Config &config, uint32_t level)
Expand Down

0 comments on commit a89a193

Please sign in to comment.