32 using namespace gtsam;
 
   66   typedef BatchFixedLagSmoother::KeyTimestampMap Timestamps;
 
   84     Timestamps newTimestamps;
 
   88     newTimestamps[key0] = 0.0;
 
   91     fullinit.
insert(newValues);
 
   94     smoother.
update(newFactors, newValues, newTimestamps);
 
  109     Timestamps newTimestamps;
 
  113     newTimestamps[
key2] = double(
i);
 
  116     fullinit.
insert(newValues);
 
  119     smoother.
update(newFactors, newValues, newTimestamps);
 
  135     Timestamps newTimestamps;
 
  140     newTimestamps[
key2] = double(
i);
 
  143     fullinit.
insert(newValues);
 
  146     smoother.
update(newFactors, newValues, newTimestamps);
 
  161     Timestamps newTimestamps;
 
  165     newTimestamps[
key2] = double(
i);
 
  168     fullinit.
insert(newValues);
 
  171     smoother.
update(newFactors, newValues, newTimestamps);
 
  186     Timestamps newTimestamps;
 
  192     newTimestamps[
key2] = double(
i);
 
  195     fullinit.
insert(newValues);
 
  198     smoother.
update(newFactors, newValues, newTimestamps);
 
  215     Timestamps emptyNewTimestamps;
 
  217     size_t factorIndex = 6; 
 
  219     factorToRemove.push_back(factorIndex);
 
  224     smoother.
update(emptyNewFactors, emptyNewValues, emptyNewTimestamps,factorToRemove);
 
  228     for(
size_t i=0; 
i< smootherFactorsBeforeRemove.
size(); 
i++){
 
  230       if(smootherFactorsBeforeRemove[
i] && 
i != factorIndex){