Skip to content

Commit

Permalink
Merge pull request #1058 from tier4/tmp/v0.7.3_ndt_empty_data
Browse files Browse the repository at this point in the history
feat: add message
  • Loading branch information
keita1523 authored Dec 6, 2023
2 parents 1f2d472 + a0d1939 commit 3ed71e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion localization/ndt_scan_matcher/src/ndt_scan_matcher_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,10 @@ void NDTScanMatcher::callback_sensor_points(
{
// mutex ndt_ptr_
std::lock_guard<std::mutex> lock(ndt_ptr_mtx_);
if (sensor_points_sensorTF_msg_ptr->data.empty()) return;
if (sensor_points_sensorTF_msg_ptr->data.empty()) {
RCLCPP_INFO(get_logger(), "Points are empty.");
return;
}

const auto exe_start_time = std::chrono::system_clock::now();
const rclcpp::Time sensor_ros_time = sensor_points_sensorTF_msg_ptr->header.stamp;
Expand Down

0 comments on commit 3ed71e5

Please sign in to comment.