29 if (currentValue->getType() != initialValue->getType())
39 int newValue =
dataHistory.rbegin()->second->getInt() - initialValue->getInt();
40 newVariant =
new Variant(newValue);
44 long newValue =
dataHistory.rbegin()->second->getLong() - initialValue->getLong();
45 newVariant =
new Variant(newValue);
50 dataHistory.rbegin()->second->getFloat() - initialValue->getFloat();
51 newVariant =
new Variant(newValue);
56 dataHistory.rbegin()->second->getDouble() - initialValue->getDouble();
57 newVariant =
new Variant(newValue);
65 Eigen::Vector3f newValue = vec->toEigen() - intialVec->toEigen();
72 FramedPositionPtr::dynamicCast(currentValue->get<
FramedPosition>());
74 FramedPositionPtr::dynamicCast(initialValue->get<
FramedPosition>());
75 Eigen::Vector3f newValue = pos->toEigen() - intialPos->toEigen();
81 MatrixFloatPtr::dynamicCast(currentValue->get<
MatrixFloat>());
83 MatrixFloatPtr::dynamicCast(initialValue->get<
MatrixFloat>());
84 Eigen::MatrixXf newMatrix = matrix->toEigen() - initialMatrix->toEigen();
95 ParameterTypeList result;
120 initialValue = VariantPtr::dynamicCast(
dataHistory.begin()->second);