Skip to content

Commit 4d1fc10

Browse files
committed
fix: fix bug in euclidean_cluster
Signed-off-by: kminoda <koji.minoda@tier4.jp>
1 parent f829880 commit 4d1fc10

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

perception/euclidean_cluster/src/voxel_grid_based_euclidean_cluster_node.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,7 @@ void VoxelGridBasedEuclideanClusterNode::onPointCloud(
7676
cluster_pub_->publish(output);
7777

7878
// build debug msg
79-
if (debug_pub_->get_subscription_count() < 1) {
80-
return;
81-
}
82-
{
79+
if (debug_pub_->get_subscription_count() <= 1) {
8380
sensor_msgs::msg::PointCloud2 debug;
8481
convertObjectMsg2SensorMsg(output, debug);
8582
debug_pub_->publish(debug);

0 commit comments

Comments
 (0)