Skip to content

Commit

Permalink
hubero_core - follow object BB: current goal location logged periodic…
Browse files Browse the repository at this point in the history
…ally
  • Loading branch information
rayvburn committed Feb 20, 2022
1 parent c385782 commit 9848515
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hubero_core/src/actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,14 @@ void Actor::bbMoveToGoal() {
void Actor::bbFollowObject() {
// evaluate, if plan is outdated and re-generation is required
if (mem_ptr_->getTimeSinceLastGoalUpdate() >= GOAL_UPDATE_PERIOD_DEFAULT) {
HUBERO_LOG(
"[%s] Follow object goal update: '%s' currently located at {x: %2.2f, y: %2.2f}\r\n",
actor_sim_name_.c_str(),
task_follow_object_ptr_->getFollowedObjectName().c_str(),
// task updates goal
mem_ptr_->getPoseGoal().Pos().X(),
mem_ptr_->getPoseGoal().Pos().Y()
);
// try to find reachable pose close to the goal
bool goal_found = false;
Pose3 goal_pose;
Expand Down

0 comments on commit 9848515

Please sign in to comment.