Skip to content

Commit

Permalink
fix(ndt_scan_matcher): check first old_pose_msg for initialization
Browse files Browse the repository at this point in the history
Signed-off-by: melike tanrikulu <melike@leodrive.ai>
  • Loading branch information
meliketanrikulu committed Jan 17, 2023
1 parent 11c0c8d commit d8558e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion localization/ndt_scan_matcher/src/util_func.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void get_nearest_timestamp_pose(
const rclcpp::Time pose_time_stamp = output_new_pose_cov_msg_ptr->header.stamp;
if (pose_time_stamp > time_stamp) {
// TODO(Tier IV): refactor
if (pose_time_stamp.seconds() == 0.0) {
if (output_old_pose_cov_msg_ptr->header.stamp.sec == 0.0) {
output_old_pose_cov_msg_ptr = output_new_pose_cov_msg_ptr;
}
break;
Expand Down

0 comments on commit d8558e4

Please sign in to comment.