Skip to content

Commit

Permalink
fix(log-messages): lower some info msgs to debug
Browse files Browse the repository at this point in the history
Signed-off-by: AhmedEbrahim <ahmed.a.d.ebrahim@gmail.com>
  • Loading branch information
Ahmed Ebrahim authored and ahmeddesokyebrahim committed Feb 29, 2024
1 parent 0d76575 commit 8b8a2c5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion localization/localization_util/src/util_func.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ void output_pose_with_cov_to_log(
rpy.y = rpy.y * 180.0 / M_PI;
rpy.z = rpy.z * 180.0 / M_PI;

RCLCPP_INFO_STREAM(
RCLCPP_DEBUG_STREAM(
logger, std::fixed << prefix << "," << pose.position.x << "," << pose.position.y << ","
<< pose.position.z << "," << pose.orientation.x << "," << pose.orientation.y
<< "," << pose.orientation.z << "," << pose.orientation.w << "," << rpy.x
Expand Down
2 changes: 1 addition & 1 deletion localization/ndt_scan_matcher/src/map_update_module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ bool MapUpdateModule::update_ndt(const geometry_msgs::msg::Point & position, Ndt
const auto duration_micro_sec =
std::chrono::duration_cast<std::chrono::microseconds>(exe_end_time - exe_start_time).count();
const auto exe_time = static_cast<double>(duration_micro_sec) / 1000.0;
RCLCPP_INFO(logger_, "Time duration for creating new ndt_ptr: %lf [ms]", exe_time);
RCLCPP_DEBUG(logger_, "Time duration for creating new ndt_ptr: %lf [ms]", exe_time);
return true; // Updated
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ geometry_msgs::msg::PoseWithCovarianceStamped NDTScanMatcher::align_pose(
result_pose_with_cov_msg.pose.pose = best_particle_ptr->result_pose;

output_pose_with_cov_to_log(get_logger(), "align_pose_output", result_pose_with_cov_msg);
RCLCPP_INFO_STREAM(get_logger(), "best_score," << best_particle_ptr->score);
RCLCPP_DEBUG_STREAM(get_logger(), "best_score," << best_particle_ptr->score);

return result_pose_with_cov_msg;
}

0 comments on commit 8b8a2c5

Please sign in to comment.