update
This commit is contained in:
@@ -157,6 +157,15 @@ namespace robot_nav_core_adapter
|
||||
robot::log_error_at(__FILE__, __LINE__, "Failed to load planner %s", planner_name.c_str());
|
||||
throw std::runtime_error("Failed to load planner " + planner_name);
|
||||
}
|
||||
if(tf_ == nullptr)
|
||||
{
|
||||
robot::log_error("[%s:%d]\n ERROR: tf is nullptr", __FILE__, __LINE__);
|
||||
throw std::runtime_error("Failed to create the tf");
|
||||
}
|
||||
else
|
||||
{
|
||||
robot::log_info("[%s:%d]\n INFO: tf is not nullptr", __FILE__, __LINE__);
|
||||
}
|
||||
new_planner->initialize(private_nh_, planner_name, tf_, costmap_robot_);
|
||||
planner_ = new_planner;
|
||||
planner_loader_ = new_loader;
|
||||
|
||||
Reference in New Issue
Block a user