Skip to content

Commit

Permalink
fix(path_optimizer): solve issue with time keeper (#9483)
Browse files Browse the repository at this point in the history
solve issue with time keeper

Signed-off-by: Daniel Sanchez <[email protected]>
  • Loading branch information
danielsanchezaran authored Nov 27, 2024
1 parent ddff5c2 commit 24ef1f9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions planning/autoware_path_optimizer/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 24ef1f9

Please sign in to comment.