ethz-asl / data-driven-dynamics

Data Driven Dynamics Modeling for Aerial Vehicles
Other
99 stars 14 forks source link

Move prepare_regression_matrices to parent class #128

Closed Jaeyoung-Lim closed 3 years ago

Jaeyoung-Lim commented 3 years ago

Problem Description Each model type had it's own version of prepare_regression_matrices leading to inconsistent implementations of each model.

What only needs to be model specific is the force and moment matrices and not the whole construction of the regression matrix

Proposed Solution This PR moves prepare_regression_matrices to the DynamicsModel(which is the parent class) in order to reduce repeated code and retain consistency between models.

If either of the prepare_force_regression_matrices or prepare_moment_regression_matrices are not implemented in the dynamics model, this throws a not implemented exception.

Additional Context