Skip to content

Commit

Permalink
[FakeHumanPerceptionModule] update unseen frames
Browse files Browse the repository at this point in the history
  • Loading branch information
sarthou committed Aug 8, 2024
1 parent 87a7353 commit 42b78e8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ namespace owds {

bool FakeHumanPerceptionModule::perceptionCallback(const overworld::AgentPose& msg)
{
setAllPerceptsUnseen();

for(auto& percept : percepts_)
percept.second.setSensorId(robot_agent_->getSensors().begin()->first); // we set a sensor by default but we must put the sensor which sees the percept.

if(msg.parts.size() == 0)
return false;

Expand All @@ -51,6 +54,7 @@ namespace owds {
else
part_in_map = part.pose;
it_percept->second.updatePose(part_in_map);
it_percept->second.setSeen();
}
catch(const tf2::TransformException& ex)
{
Expand Down

0 comments on commit 42b78e8

Please sign in to comment.