From 24ef1f93546bc3c3e1ac1b471860fe46b81e3957 Mon Sep 17 00:00:00 2001 From: danielsanchezaran Date: Wed, 27 Nov 2024 15:10:17 +0900 Subject: [PATCH] fix(path_optimizer): solve issue with time keeper (#9483) solve issue with time keeper Signed-off-by: Daniel Sanchez --- planning/autoware_path_optimizer/src/node.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/planning/autoware_path_optimizer/src/node.cpp b/planning/autoware_path_optimizer/src/node.cpp index 62a4882f8a4c1..98bc05d0fe1cf 100644 --- a/planning/autoware_path_optimizer/src/node.cpp +++ b/planning/autoware_path_optimizer/src/node.cpp @@ -222,7 +222,7 @@ void PathOptimizer::resetPreviousData() void PathOptimizer::onPath(const Path::ConstSharedPtr path_ptr) { - time_keeper_->start_track(__func__); + universe_utils::ScopedTimeTrack st(__func__, *time_keeper_); stop_watch_.tic(); // check if input path is valid @@ -277,8 +277,6 @@ void PathOptimizer::onPath(const Path::ConstSharedPtr path_ptr) autoware::motion_utils::convertToTrajectory(full_traj_points, path_ptr->header); traj_pub_->publish(output_traj_msg); published_time_publisher_->publish_if_subscribed(traj_pub_, output_traj_msg.header.stamp); - - time_keeper_->end_track(__func__); } bool PathOptimizer::checkInputPath(const Path & path, rclcpp::Clock clock) const