Skip to content
Snippets Groups Projects
Verified Commit bde33508 authored by Mohcine Chraibi's avatar Mohcine Chraibi
Browse files

check for empty vectors

related to #107
parent 53da2577
No related branches found
No related tags found
1 merge request!19107 method i z pos
Pipeline #20697 passed
......@@ -138,6 +138,11 @@ bool Method_I::Process(const PedData& peddata,const fs::path& scriptsLocation, c
vector<double> YInFrame = peddata.GetYInFrame(frameNr, ids, zPos_measureArea);
vector<double> ZInFrame = peddata.GetZInFrame(frameNr, ids, zPos_measureArea);
vector<double> VInFrame = peddata.GetVInFrame(frameNr, ids, zPos_measureArea);
if(XInFrame.size() == 0)
{
Log->Write("Warning:\t no pedestrians in frame <%d>", frameNr);
continue;
}
//vector int to_remove
//------------------------------Remove peds outside geometry------------------------------------------
for( int i=0;i<(int)IdInFrame.size();i++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment