void objectUpdated(Object* object) { if (currentStepObject && *currentStepObject == *object) { currentStepObject.reset(object->clone()); if (isCurrentStepDone() && !currentStepRecorded) { inputPoints.push_back(currentStepObject->getPosition()); outputPoints.push_back(convert(getCurrentStepPosition())); currentStepRecorded = true; LOG4CPLUS_INFO( logger, "Obtained calibration point " << currentStep + 1 << ": " << currentStepObject->getPosition() << " -> " << convert(getCurrentStepPosition())); } } }