Crash in TrackerReal::calculate?
I found the following comment stating that this code crashed due to invalid values, even though it looks like that should not happen. Was this already fixed or does this still occur?
if (((j-nrRew >= 0) && (j+nrFor == tsize)) || ((j-nrRew >= 0) && (nrRew < nrFor))) // nur oder eher in Vergangenheit hoeheninfo gefunden
{
//if (i == 175) // N:\tagDerNeugier\14.19.21.trc
//{
// debout << i+1 << endl;
// debout << (*tracker)[i] << endl;
// debout << (*tracker)[i].size() << endl;
// debout << j << " " << nrRew << endl;
//// (*tracker)[i]
//// 0 138.869 2927 2928 1 -1 -1 -1 2
//// 952.885 550.538 -1 -1 -1 100 0 0 -1 -1 -1
//// 965.469 564.862 104.295 28.3304 316.131 100 0 0 -1 -1 -1
//// i j nrRew:
//// 175 1 2
//}
// in diesem if kam es zum Absturz, da j = 1 und nrRew = 2
if(fabs((*tracker)[i].at(j-nrRew).sp().z()-(*tracker)[i].at(j).sp().z()) > nrRew*40.) // 40cm
{
(*tracker)[i][j].setSp((*tracker)[i].at(j).sp().x(),(*tracker)[i].at(j).sp().y(),(*tracker)[i].at(j-nrRew).sp().z());
debout << "Warning: Trackpoint smoothed height at the end or next to unknown height in the future for trajectory " << i+1 << " in frame " << j+firstFrame << "." << std::endl;
}
}