Skip to content
Snippets Groups Projects

Modify SmokeSensor demo + remove debug messages

Merged Mohcine Chraibi requested to merge issue255 into develop
9 files
+ 26
217
Compare changes
  • Side-by-side
  • Inline
Files
9
@@ -108,12 +108,13 @@ void SmokeSensor::execute(const Pedestrian * pedestrian, CognitiveMap& cognitive
item->GetCrossing()->GetCentre(),
pedestrian->GetGlobalTime()).GetKnotValue(pedestrian->GetPos()._x,
pedestrian->GetPos()._y);
std::cout << "\n =================================== \n";
std::cout << "Ped: " << pedestrian->GetID() << ", at (" << pedestrian->GetPos()._x << ", " << pedestrian->GetPos()._y << ")" << std::endl;
std::cout << "\tElevation: " << pedestrian->GetElevation() << std::endl;
std::cout << "\titem->GetCrossing()->GetCentre(): " << item->GetCrossing()->GetCentre()._x << ", " << item->GetCrossing()->GetCentre()._y << std::endl;
std::cout << "\t Time" << pedestrian->GetGlobalTime() << std::endl;
std::cout << "\tKnotValue: " << _FMStorage->GetFDSMesh(pedestrian->GetElevation(), item->GetCrossing()->GetCentre(), pedestrian->GetGlobalTime()).GetKnotValue(pedestrian->GetPos()._x, pedestrian->GetPos()._y) << std::endl;
// std::cout << "\n =================================== \n";
// std::cout << "Ped: " << pedestrian->GetID() << ", at (" << pedestrian->GetPos()._x << ", " << pedestrian->GetPos()._y << ")" << std::endl;
// std::cout << "\tElevation: " << pedestrian->GetElevation() << std::endl;
// std::cout << "\titem->GetCrossing()->GetCentre(): " << item->GetCrossing()->GetCentre()._x << ", " << item->GetCrossing()->GetCentre()._y << std::endl;
// std::cout << "\t Time" << pedestrian->GetGlobalTime() << std::endl;
// std::cout << "\tKnotValue: " << _FMStorage->GetFDSMesh(pedestrian->GetElevation(), item->GetCrossing()->GetCentre(), pedestrian->GetGlobalTime()).GetKnotValue(pedestrian->GetPos()._x, pedestrian->GetPos()._y) << std::endl;
weight = 1 + (1-RiskTolerance) * SmokeFactor ;
}
Loading