Skip to content

Commit

Permalink
Add roslog INFO traces to measure time spent initializing PTGs
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Sep 23, 2024
1 parent 3d7521c commit a972d29
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mrpt_tps_astar_planner/src/mrpt_tps_astar_planner_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,12 @@ void TPS_Astar_Planner_Node::initialize_planner()
this->get_logger(), "Loaded these planner params:" << planner_->params_as_yaml());

mrpt::config::CConfigFile cfg(ptg_ini_file_);
RCLCPP_INFO_STREAM(this->get_logger(), "Initializing PTGs...");

ptgs_.initFromConfigFile(cfg, "SelfDriving");

RCLCPP_INFO_STREAM(this->get_logger(), "PTGs initialized.");

costMapParams_ = mpp::CostEvaluatorCostMap::Parameters::FromYAML(
mrpt::containers::yaml::FromFile(costmap_params_file_));
}
Expand Down

0 comments on commit a972d29

Please sign in to comment.