ethz-asl / data-driven-dynamics

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

Failure on using quadrotor model with plot enabled #180

Closed Jaeyoung-Lim closed 2 years ago

Jaeyoung-Lim commented 2 years ago

Problem Description The default quadrotor model seems to fail when plotting is enabled @pascalau @manumerous FYI

Steps to reproduce

make estimate-model plot=True

Result:

-------------------------------------------------------------------------------
                            Optimization Metrics                               
-------------------------------------------------------------------------------
R2: 0.9988242776510149
RMSE: 0.18842649109103482

-------------------------------------------------------------------------------
Complete results saved to: 
model_results/multirotor_model_2022-01-03-13-12-09.yaml
-------------------------------------------------------------------------------
Traceback (most recent call last):
  File "Tools/parametric_model/generate_parametric_model.py", line 117, in <module>
    start_model_estimation(**vars(arg_list))
  File "Tools/parametric_model/generate_parametric_model.py", line 99, in start_model_estimation
    model.compute_residuals()
  File "/home/jaeyoung/dev/data-driven-dynamics/Tools/parametric_model/src/models/dynamics_model.py", line 487, in compute_residuals
    error_y_moments = y_moments_pred - self.y_moments
AttributeError: 'MultiRotorModel' object has no attribute 'y_moments'
Makefile:35: recipe for target 'estimate-model' failed
make: *** [estimate-model] Error 1

Expected outcome Plots show up with the estimation results