Skip to content

Commit

Permalink
[PerceptionModule] use utility functions
Browse files Browse the repository at this point in the history
  • Loading branch information
sarthou committed Aug 8, 2024
1 parent 42b78e8 commit ba71900
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ namespace owds {

bool HumansEmulatedPerceptionModule::perceptionCallback(const std::vector<BodyPart*>& msg)
{
for(auto& percept : percepts_)
percept.second.setUnseen();
setAllPerceptsUnseen();

for(auto body_part : msg)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ namespace owds {

bool FakeObjectPerceptionModule::perceptionCallback(const overworld::EntitiesPoses& msg)
{
for(auto& percept : percepts_)
percept.second.setUnseen();
setAllPerceptsUnseen();

for(auto& obj : msg.entities)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ namespace owds {

bool ObjectsEmulatedPerceptionModule::perceptionCallback(const std::vector<Object*>& msg)
{
for(auto& percept : percepts_)
percept.second.setUnseen();
setAllPerceptsUnseen();

for(auto object : msg)
{
Expand Down

0 comments on commit ba71900

Please sign in to comment.