public TimestampedVelocityYoVariable(String name, String description, DoubleYoVariable positionToReferenceOnUpdate, DoubleYoVariable timeToReferenceOnUpdate, YoVariableRegistry registry,
double epsilonChange)
{
super(name, description, registry);
this.positionToReferenceOnUpdate = positionToReferenceOnUpdate;
this.updatedPosition = new DoubleYoVariable(name + "_position", registry);
this.previousPosition = new DoubleYoVariable(name + "_prevPosition", registry);
this.timeToReferenceOnUpdate = timeToReferenceOnUpdate;
this.updatedTimestamp = new DoubleYoVariable(name + "_timestamp", registry);
this.previousTimestamp = new DoubleYoVariable(name + "_prevTimestamp", registry);
this.hasBeenUpdated = new BooleanYoVariable(name + "_hasBeenUpdated", registry);
this.epsilonChange = epsilonChange;
reset();
}