Tango: added GPS to default status when saved, reduced to 1 sec for GPS too old

This commit is contained in:
matlabbe
2017-09-29 12:45:02 -04:00
parent b187409e59
commit 6da7788f61
3 changed files with 25 additions and 17 deletions

View File

@@ -848,7 +848,7 @@ SensorData CameraTango::captureImage(CameraInfo * info)
}
data.setGroundTruth(odom);
if(lastKnownGPS_.stamp() > 0.0 && rgbStamp-lastKnownGPS_.stamp()<2.0)
if(lastKnownGPS_.stamp() > 0.0 && rgbStamp-lastKnownGPS_.stamp()<1.0)
{
data.setGPS(lastKnownGPS_);
}