atf icon indicating copy to clipboard operation
atf copied to clipboard

Code duplication in TF metrics

Open LoyVanBeek opened this issue 3 years ago • 0 comments

The metrics related to TF (distance, jerk, velocity, length) have a lot of code duplication between them.

In eg. CalculateTfAccelerationTranslation, vs CalculateTfDistanceTranslation only a few members are added and a few lines in get_data are different but mostly the same. Some basic inheritance can reduce a lot of duplication and reduce maintenance.

Might be related to https://github.com/floweisshardt/atf/issues/58 as well.

LoyVanBeek avatar Mar 02 '21 09:03 LoyVanBeek