fix uninitialized variable Key first_pose

release/4.3a0
acxz 2020-05-06 23:49:51 -04:00
parent b4eb0c233d
commit 222e767e8d
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ void runIncremental()
cout << "Looking for first measurement from step " << firstStep << endl; cout << "Looking for first measurement from step " << firstStep << endl;
size_t nextMeasurement = 0; size_t nextMeasurement = 0;
bool havePreviousPose = false; bool havePreviousPose = false;
Key firstPose; Key firstPose = 0;
while(nextMeasurement < datasetMeasurements.size()) while(nextMeasurement < datasetMeasurements.size())
{ {
if(BetweenFactor<Pose>::shared_ptr factor = if(BetweenFactor<Pose>::shared_ptr factor =