Skip to content

Commit

Permalink
[AgentPerceptionManager] add sensor infos
Browse files Browse the repository at this point in the history
  • Loading branch information
sarthou committed Aug 8, 2024
1 parent ba71900 commit f82174c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Perception/Managers/AgentPerceptionManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ namespace owds {
if(it_agent == agents_.end())
it_agent = createAgent(sensor->getAgentName(), type);
it_agent->second->setSensor(sensor);
ShellDisplay::info("[AgentPerceptionManager] Sensor " + sensor->id() + " has been setted for " + it_agent->second->getId());
ShellDisplay::info("[AgentPerceptionManager] Sensor " + sensor->id() + " has been setted for " + it_agent->second->getId() +
" with FoV " + sensor->getFieldOfView().toString());
return it_agent->second;
}
else
Expand All @@ -115,7 +116,7 @@ namespace owds {
std::string frame_id = getOntoValue(onto_res, std::string(""));
onto_res = onto_->individuals.getOn(sensor_id, "isStatic");
bool is_static = getOntoValue(onto_res, true);

auto* sensor = new Sensor(sensor_id, frame_id, is_static, getFov(sensor_id));
if(!agent_name.empty())
sensor->setAgentName(agent_name);
Expand Down

0 comments on commit f82174c

Please sign in to comment.