Skip to content

Commit

Permalink
feat: add message
Browse files Browse the repository at this point in the history
Signed-off-by: keita1523 <[email protected]>
  • Loading branch information
keita1523 committed Dec 5, 2023
1 parent 1f2d472 commit a0d1939
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 a0d1939

Please sign in to comment.