diff --git a/nebula_ros/src/hesai/decoder_wrapper.cpp b/nebula_ros/src/hesai/decoder_wrapper.cpp index 0ddfd599e..3046dc9c0 100644 --- a/nebula_ros/src/hesai/decoder_wrapper.cpp +++ b/nebula_ros/src/hesai/decoder_wrapper.cpp @@ -247,10 +247,12 @@ void HesaiDecoderWrapper::ProcessCloudPacket(std::unique_ptr(pointcloud_ts); } + // A pointcloud is only emitted when a scan completes (e.g. 3599 packets do not emit, the 3600th emits one) if (pointcloud == nullptr) { - // todo - // RCLCPP_WARN_STREAM(logger_, "Empty cloud parsed."); + // Since this ends the function early, the `cloud_watchdog_` will not be updated. + // Thus, if pointclouds are not emitted for too long (e.g. when decoder settings are wrong or no packets come in), + // the watchdog will log a warning automatically return; };