From 52d55436470b8b72cb92cba22331d90facf6f0ff Mon Sep 17 00:00:00 2001 From: Guillaume Sarthou Date: Sat, 14 Sep 2024 18:47:26 +0200 Subject: [PATCH] [HumansPerceptionManager] update human sensors --- src/Perception/Managers/HumansPerceptionManager.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Perception/Managers/HumansPerceptionManager.cpp b/src/Perception/Managers/HumansPerceptionManager.cpp index 7d1d4b39..0bdc6790 100755 --- a/src/Perception/Managers/HumansPerceptionManager.cpp +++ b/src/Perception/Managers/HumansPerceptionManager.cpp @@ -73,6 +73,15 @@ namespace owds { inner_it->second->updatePose(percept.second->pose(), percept.second->lastStamp()); } } + else + { + auto sensors = agent->getSensors(); + for(auto& eye : sensors) + { + if(percept.second->isLocated()) + eye.second->updatePose(percept.second->pose(), percept.second->lastStamp()); + } + } } } }