Skip to content
Snippets Groups Projects
Commit 498ec634 authored by Tobias Gröger's avatar Tobias Gröger
Browse files

Update logging inside teb

parent 9bce5d14
No related branches found
No related tags found
2 merge requests!68Add human tracking,!28Draft: Dev -> Main
......@@ -87,6 +87,7 @@ namespace armarx::navigation::local_planning
std::optional<LocalPlannerResult>
TimedElasticBands::plan(const core::GlobalTrajectory& goal)
{
TIMING_START(TEB_PLAN);
const core::Pose currentPose{scene.robot->getGlobalPose()};
// prune global trajectory
......@@ -112,13 +113,13 @@ namespace armarx::navigation::local_planning
}
catch (std::exception& e)
{
ARMARX_DEBUG << "Caugth exception while planning: " << e.what();
return {};
ARMARX_ERROR << "Caugth exception while planning: " << e.what();
return std::nullopt;
}
if (hcp_->getTrajectoryContainer().empty())
{
ARMARX_VERBOSE << "Did not find any trajectory!";
ARMARX_INFO << deactivateSpam(5) << "Did not find any trajectory!";
return std::nullopt;
}
......@@ -154,6 +155,7 @@ namespace armarx::navigation::local_planning
arviz.value().commit(layer);
}
TIMING_END_COMMENT_STREAM(TEB_PLAN, "Timer: teb planning", ARMARX_VERBOSE);
return {{.trajectory = best}};
}
......@@ -193,7 +195,7 @@ namespace armarx::navigation::local_planning
arviz.value().commit(visLayer);
}
ARMARX_INFO << "TEB: added " << obstManager.size() << " obstacles";
ARMARX_VERBOSE << "TEB: added " << obstManager.size() << " obstacles";
}
//export algorithms::Costmap to costmap type of teb local planner and provide costmap to planner
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment