Skip to content

Commit

Permalink
fix timestamp
Browse files Browse the repository at this point in the history
Signed-off-by: Yamato Ando <yamato.ando@tier4.jp>
  • Loading branch information
YamatoAndo committed Aug 23, 2024
1 parent 23e13fd commit b6881ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 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 @@ -961,7 +961,8 @@ void NDTScanMatcher::service_ndt_align_main(
diagnostics_ndt_align_->add_key_value("is_succeed_transform_initial_pose", true);

// transform pose_frame to map_frame
const auto initial_pose_msg_in_map_frame = transform(req->pose_with_covariance, transform_s2t);
auto initial_pose_msg_in_map_frame = transform(req->pose_with_covariance, transform_s2t);
initial_pose_msg_in_map_frame.header.stamp = req->pose_with_covariance.header.stamp;
map_update_module_->update_map(
initial_pose_msg_in_map_frame.pose.pose.position, diagnostics_ndt_align_);

Expand Down

0 comments on commit b6881ed

Please sign in to comment.